[ADMB Users] ADMB with ADMB-IDE
Arni Magnusson
arnima at hafro.is
Thu May 20 10:33:45 PDT 2010
Hi Benedikt, my recommendation is this:
1. Remove all traces of ADMB, Emacs, and GCC on your machine (optional).
2. Download and install ADMB-IDE using the automatic installer
(http://code.google.com/p/admb-project/downloads/list?q=ide*exe).
Everything should work out of the box.
I can tell from the directory names that you have not set ADMB-IDE up with
the automatic installer. The directory names are hardwired in the
installer to make it feasible to assist users via email.
Arni
On Wed, 12 May 2010, Benedikt Gehr wrote:
> Hi
>
> I'm having problems using ADMB from emacs-ADMB-IDE. I can open a xxx.tpl
> file with emacs in ADMB mode. Then when I first pressed the BUILD button
> I got the error:
>
> 'xxx' is not recognized as an internal or external command, operable
> program or batch file.
>
> so I changed the PATH environment variable to "C:\ADMB\MinGW\bin" where
> the compilation programs and the scripts are. After that I could "Build"
> the model but when I "Run" it I got the error:
>
> 'xxx' is not recognized as an internal or external command, operable
> program or batch file.
>
> so I added to the PATH environment variable the directory
> "C:\ADMB\MinGW\utilities\MinGW\bin" while separating the two directories
> by a semi colon ;
>
> The thing then looked like this:
> "C:\ADMB\MinGW\bin;C:\ADMB\MinGW\utilities\MinGW\bin"
>
> After that when I press "Build" I get a whole bunch of error messages:
>
> *** adcomp xxx
> g++ -c -O3 -Wno-deprecated -D__GNUDOS__ -Dlinux -DOPT_LIB -DUSE_LAPLACE
> -fpermissive -I. -I/include xxx.cpp
> xxx.cpp:1:21: admodel.h: No such file or directory
> In file included from xxx.cpp:6:
> ./xxx.htp:4: error: expected class-name before '{' token
> ./xxx.htp:5: error: `data_int' does not name a type
> ./xxx.htp:6: error: `data_int' does not name a type
> ./xxx.htp:7: error: `data_matrix' does not name a type
> .....
> .....
> .....
>
> *** adlink xxx
> g++ -s -L/lib xxx.o -ldf1b2stub -ladmod -ladt -lado -ldf1b2stub -ladmod
> -ladt -lado -o xxx
> g++: xxx.o: No such file or directory
>
> What am I doing wrong? By the way running the models from the admb-command
> file works fine.
>
> Thanks you very much for the help
>
> cheers
>
> Benedikt
>
More information about the Users
mailing list