Google Groups

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


dave fournier Mar 7, 2012 4:50 PM
Posted in group: admb-users
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.


_______________________________________________
Users mailing list
Us...@admb-project.org
http://lists.admb-project.org/mailman/listinfo/users