[ADMB Users] GCC win7 - 64bits building ADMB shared DLL
nassar.naji at orange.fr
Tue Mar 27 17:24:02 PDT 2012
Sorry, but I'm completely novice in compiling issues.
Do you know how to create shared library with GCC under windows 7 / 64?
As I was unable to get this fixed using MSVC (SDK7.1), I'm trying under GCC
by modifying the .bat (admb, adcomp, adlink)
Given my knowledge for such issues, I would need a step by step
Thanks in advance
De : users-bounces at admb-project.org [mailto:users-bounces at admb-project.org]
De la part de dave fournier
Envoyé : jeudi 8 mars 2012 01:51
À : users at admb-project.org
Objet : [ADMB Users] was Re: Printing a vector in a row format -- Change to
I checked out the bimix DLL example with the current admb sofware and R.
Thing to do is to add -fPIC option when building the libraries and also when
creating the shared library under gcc.
To create a shared library add the --shared option and get the bimix.so
library with the -o$1.so option
g++ --shared -fPIC -ggdb -w -fpermissive -DUSE_LAPLACE -Dlinux
-D__GNUDOS__ -o$1.so $1.cpp
The code seems to be reentrant for this example.
Users mailing list
Users at admb-project.org
More information about the Users