Request: help with compiler test on Windows

13 views
Skip to first unread message

Kyle Baron

unread,
Aug 11, 2016, 10:13:10 AM8/11/16
to mrgsolve
I put some test code up on the mrgsolve github wiki page that will help people test to see if the compiler is correctly installed (https://github.com/metrumresearchgroup/mrgsolve/wiki/Compilers-and-mrgsolve#test-your-compilers).  This test code has nothing to do with mrgsolve but will only succeed if the compilers are installed properly. 

I'm wondering if a Windows user out there would be kind enough to run the tests and report back with the output that you get?  I'm asking for the compiler output that shows up on the R console.  For example, I got this when I compiled C++ code on Unix:




g
++ -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-
security
-Werror=format-security -D_FORTIFY_SOURCE=2 -g -c R_Cpp_Test.cpp -o R_Cpp_Test.o g++ -shared -L/usr/lib/R/lib
-Wl,-Bsymbolic-functions -Wl,-z,relro -o R_Cpp_Test.so R_Cpp_Test.o -L/usr/lib/R/lib -lR






Wondering if someone could post the equivalent for both the C++ code and the FORTRAN code on Windows.

Thanks,
Kyle








Yaming Su

unread,
Aug 11, 2016, 10:35:03 AM8/11/16
to mrgsolve
Kyle, I ran your two test codes on my Windows PC. I got the below results shown on R console.

1, test C++ compiler

c:/Rtools/mingw_64/bin/g++  -I"C:/Users/YSU/R-33~1.1/include" -DNDEBUG     -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c R_Cpp_Test.cpp -o R_Cpp_Test.o
c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o R_Cpp_Test.dll tmp.def R_Cpp_Test.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/Users/YSU/R-33~1.1/bin/x64 -lR

2, test FORTRAN compiler

c:/Rtools/mingw_64/bin/gfortran      -O2  -mtune=core2 -c R_FORTRAN_Test.f -o R_FORTRAN_Test.o
c:/Rtools/mingw_64/bin/gcc -shared -s -static-libgcc -o R_FORTRAN_Test.dll tmp.def R_FORTRAN_Test.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -lgfortran -lm -lquadmath -LC:/Users/YSU/R-33~1.1/bin/x64 -lR

Kyle Baron

unread,
Aug 11, 2016, 10:39:57 AM8/11/16
to Yaming Su, mrgsolve
Thank you, Yaming!

--
MetrumRG Website: http://www.metrumrg.com/opensourcetools.html
---
You received this message because you are subscribed to the Google Groups "mrgsolve" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mrgsolve+unsubscribe@metrumrg.com.
To post to this group, send email to mrgs...@metrumrg.com.
Visit this group at https://groups.google.com/a/metrumrg.com/group/mrgsolve/.



--
Kyle Baron
Reply all
Reply to author
Forward
0 new messages