[ADMB Users] was Re: Printing a vector in a row format -- Change to DLL something

dave fournier davef at otter-rsch.com
Wed Mar 7 16:50:53 PST 2012


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
  etc.

The code seems to be reentrant for this example.





More information about the Users mailing list