Hi all
I’m looking for an elegant way in ADMB to print a vector in a column format, just to avoid loop
{
ofstream ofs("llik1.txt");
for (t=1;t<=nobs;t+=1)
{
ofs << llik(t) << endl;
}
}
ADMB DLL with MSVC.. I still don’t find a solution.. Any help is highly appreciated
Naji
_______________________________________________
Users mailing list
Us...@admb-project.org
http://lists.admb-project.org/mailman/listinfo/users
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.
Thanks Liu
The column_vector command is giving me what I want.
I forgot to say that a third party program (Gauss) is creating the bat files, and reading back the results files. The start command allows GAUSS to run other commands even if the ADMB applications hadn’t finished their estimation.. So I still have to use dos windows and their pop-up..
I still hadn’t succeed getting ADMB dll
Naji
De : weih...@gmail.com [mailto:weih...@gmail.com] De la part de Weihai Liu
Envoyé : mercredi 7 mars 2012 15:15
À : Naji Nassar
Cc : us...@admb-project.org
Objet : Re: [ADMB Users] Printing a vector in a row format
Hi BigA
In the early versions on ADMB (2004 and earlier), ADMB dll worked quite fine and I had been able to use them with third party programs.
For simulations, EM algorithms, where one has to run several times ADMB optimizations, and multithreading issues, I’d appreciate having DLL
Does anyone has the older version of ADMB/bin files for MSVC compliler?
Best
Naji
De : bigA [mailto:jaguar...@gmail.com]
Envoyé : mercredi 7 mars 2012 21:15
À : Weihai Liu
Cc : Naji Nassar; us...@admb-project.org
Objet : Re: [ADMB Users] Printing a vector in a row format
Perhaps I am missing something, but using dlls with admb is still a work in progress?
Hi BigA
In the early versions on ADMB (2004 and earlier), ADMB dll worked quite fine and I had been able to use them with third party programs.
For simulations, EM algorithms, where one has to run several times ADMB optimizations, and multithreading issues, I’d appreciate having DLL
Does anyone has the older version of ADMB/bin files for MSVC compliler?
Best
Naji
De : bigA [mailto:jaguar...@gmail.com]
Envoyé : mercredi 7 mars 2012 21:15
À : Weihai Liu
Cc : Naji Nassar; us...@admb-project.org
Objet : Re: [ADMB Users] Printing a vector in a row format
Perhaps I am missing something, but using dlls with admb is still a work in progress?
As I already posted the bimix example seems to compile and run fine with
R on Linux with gcc.