On 18.05.2018 09:22, ExtremePasta wrote: > using -Xcompiler and removing some flag from $(shell $(R_HOME)/bin/R CMD > config CXXFLAGS) I tryed to make nvcc recognize all the gcc command but > I don't know if this allow nvcc run it perfectly. When running "make" > this is the error I get: > > nvcc parallel_for.cpp --std=c++11 -I../ -I../../ -I/usr/share/R/include > -I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include > -I/home/pesco/R/x86_64-pc-linux-gnu-library/3.2/RInside/include -g > -Xcompiler -fstack-protector-strong -Xcompiler -Wformat -Xcompiler > -Wdate-time -Xcompiler -D_FORTIFY_SOURCE=2 -O3 -g -DDEBUG -G > -D_FORCE_INLINES --expt-extended-lambda -x cu -o parallel_for_device [...]> /tmp/tmpxft_00000456_00000000-10_parallel_for.o: nella funzione > "Rcpp::Rstreambuf<false>::xsputn(char const*, long)": > /home/pesco/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include/Rcpp/iostream/Rstreambuf.h:56: > riferimento non definito a "REprintf"
In the compiler/linker call you are missing at least something like "-L/usr/lib/R/lib -lR", which is part of $(LDLIBS) via $(RLDFLAGS). Try to include $(LDLIBS) in the command used for compilation and linking. Greetings Ralf -- Ralf Stubner Senior Software Engineer / Trainer daqana GmbH Dortustraße 48 14467 Potsdam T: +49 331 23 70 81 66 F: +49 331 23 70 81 67 M: +49 162 20 91 196 Mail: ralf.stub...@daqana.com Sitz: Potsdam Register: AG Potsdam HRB 27966 P Ust.-IdNr.: DE300072622 Geschäftsführer: Prof. Dr. Dr. Karl-Kuno Kunze
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel