Dear Hadley, Dirk removed 3/4 of my original message :) I just added it now 
after your email so that our discussion inherit from the past. 
There are details there but still I admit it lacks informations. 

Let me summarize: 

- When I run make from MinGW terminal in the src folder of the git web site 
this fails (the most important part of my log is reproduced in my initial 
message, I admit my error might come from my use of MinGW). Also I add to 
change the relative path in the makefile to reach this point (see my initial 
email) 

- When I run the knit function of Dirk (that of the knit.sh script) in R this 
produces a md file correctly. 

This is the reason why I said this has to do with my Path ... 

Best regards
Robin 

PS: I'm using RStudio, I hardly can use anything else now that I'm used to it, 
except for cpp code completion/syntax correction where StatET-Ecplise still is 
quite good héhé.  But with StatET-Eclipse I manage to do code 
correction/completion but not to compile my Rcpp package might it be the same 
problem ? that RStudio has some extra power it does not share :) ? 

----- Mail original -----
De: "Hadley Wickham" <[email protected]>
À: "Robin Girard" <[email protected]>
Cc: [email protected]
Envoyé: Mercredi 17 Avril 2013 21:48:36
Objet: Re: [Rcpp-devel] linking fail when building examples of my local copy of 
Rcpp gallery (windows)

> I know this has to do with my library path (and actually when I launch the 
> function "knit(input,output)" in R for a given Rcpp example this works and 
> generate the markdown file) but don't find where this comes from.

Could you be more explicit? How are you running make? And how are you
running knit? From the command line? From an R terminal? From the R
gui? From Rstudio?

You might also find it useful to run sessionInfo() in both
environments and compare the differences.

Hadley

--
Chief Scientist, RStudio
http://had.co.nz/



----- Mail original -----
De: "Robin Girard" <[email protected]>
À: [email protected]
Envoyé: Mercredi 17 Avril 2013 16:44:21
Objet: [Rcpp-devel] linking fail when building examples of my local copy of 
Rcpp gallery (windows)

Salut list,
I'm trying to become soon a (small) contributor to Rcpp Gallery and I would 
like to be able to visualize the result before pushing it. I'm on windows... 

I managed to install jeckyll and made it work (this 
http://bradleygrainger.com/2011/09/07/how-to-use-github-pages-on-windows.html 
helped me if other people want to do the same).
 
I removed all src that are  c++11 since I don't have it (that would be another 
question about having it on windows but I did not try yet) 

I did "make" in the src folder
but it appeared that I had to change the first two line, my dumb guess was that 
it did not like the relative path stuff, I changed the first two line of the 
makefile to
KNIT = /c/GitHub/rcpp-gallery/_scripts/knit.sh
POSTS_DIR = /c/GitHub/rcpp-gallery/_posts

then I did "make" again and got a lot of 
...
library/Rcpp/lib/i386/libRcpp.a(api.o):api.cpp:(.text+0x160c): undefined 
reference to `__gxx_personality_sj0'
library/Rcpp/lib/i386/libRcpp.a(api.o):api.cpp:(.text+0x162b): undefined 
reference to `_Unwind_SjLj_Register'
library/Rcpp/lib/i386/libRcpp.a(api.o):api.cpp:(.text+0x166f): undefined 
reference to `_Unwind_SjLj_Unregister'
library/Rcpp/lib/i386/libRcpp.a(api.o):api.cpp:(.text+0x1726): undefined 
reference to `_Unwind_SjLj_Resume'
... 
endding with 
make[1]: Entering directory `/tmp/RtmpIDf7mh/sourcecpp_15c479677107' g++  
-I"c:/R/R-215~1.2/include" -DNDEBUG     -I"c:/R/R-2.15.2/library/Rcpp/include"  
     -O2 -Wall  -mtune=core2 -c file15c426717ca8.cpp
-o file15c426717ca8.o g++ -shared -s -static-libgcc -o sourceCpp_78831.dll 
tmp.def file15c426717ca8.o c:/R/R-2.15.2/library/Rcpp/lib/i386/libRcpp.a 
-Lc:/R/R-215~1.2/bin/i386 -lR make[1]: Leaving directory `/
tmp/RtmpIDf7mh/sourcecpp_15c479677107'
Quitting from lines 11-56 ()
Erreur dans function (file = "", code = NULL, env = globalenv(), rebuild = 
FALSE,  :
  Error occurred building shared library.
Calls: knit ... block_exec -> in_dir -> <Anonymous> -> do.call -> <Anonymous>

I know this has to do with my library path (and actually when I launch the 
function "knit(input,output)" in R for a given Rcpp example this works and 
generate the markdown file) but don't find where this comes from.

any idea of what I'm doing wrong ? 

Best 
Robin 
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to