Skip to content

[Rcpp-devel] Fwd: Re: Filling a big.matrix in Rcpp

2 messages · Aileen Lin, Dirk Eddelbuettel

#
Aileen Lin

View my profile: au.linkedin.com/in/aileen2
---------- Forwarded message ----------
From: "Aileen Lin" <aileenshanhong.lin at gmail.com>
Date: 15 Mar 2013 10:44
Subject: Re: [Rcpp-devel] Filling a big.matrix in Rcpp
To: "Dirk Eddelbuettel" <edd at debian.org>
Cc:

I tried your source code and had two warning messages:

g++  -I"C:/R/R-215~1.2/include" -DNDEBUG
-I"C:/R/R-2.15.2/library/Rcpp/include"
-I"H:/R/win-library/2.15/bigmemory/include"      -O2 -Wall  -mtune=core2 -c
rcpp_bm_test.cpp -o rcpp_bm_test.o
In file included from
H:/R/win-library/2.15/bigmemory/include/boost/smart_ptr/detail/spinlock_sync.hpp:18:0,
                 from
H:/R/win-library/2.15/bigmemory/include/boost/smart_ptr/detail/spinlock.hpp:38,
                 from
H:/R/win-library/2.15/bigmemory/include/boost/smart_ptr/detail/spinlock_pool.hpp:25,
                 from
H:/R/win-library/2.15/bigmemory/include/boost/smart_ptr/shared_ptr.hpp:37,
                 from
H:/R/win-library/2.15/bigmemory/include/boost/shared_ptr.hpp:17,
                 from
H:/R/win-library/2.15/bigmemory/include/bigmemory/BigMatrix.h:6,
                 from
H:/R/win-library/2.15/bigmemory/include/bigmemory/MatrixAccessor.hpp:4,
                 from rcpp_bm_test.cpp:7:
H:/R/win-library/2.15/bigmemory/include/boost/smart_ptr/detail/yield_k.hpp:58:48:
warning: declaration of 'void boost::detail::Sleep(unsigned int)' with C
language linkage [enabled by default]
H:/R/win-library/2.15/bigmemory/include/boost/interprocess/detail/win32_api.hpp:382:49:
warning: conflicts with previous declaration 'void
boost::interprocess::winapi::Sleep(long unsigned int)' [enabled by default]
g++ -shared -s -static-libgcc -o sourceCpp_24751.dll tmp.def rcpp_bm_test.o
C:/R/R-2.15.2/library/Rcpp/lib/i386/libRcpp.a -LC:/R/R-215~1.2/bin/i386 -lR

Do you have the same warning messages? Do you know how to get rid of it?
Thank you.
On 15 March 2013 05:33, Dirk Eddelbuettel <edd at debian.org> wrote:

            

  
    
#
On 15 March 2013 at 11:12, Aileen Lin wrote:
| Do you have the same warning messages?

No. 

And I compile with maximum warning levels by using -Wall -pedantic.

| Do you know how to get rid of it? 

No idea besides stop using Windows. It's an interaction between Boost and
your Windows headers.  Maybe the Boost documentation / lists / ... can help.

Dirk