[ADMB Users] update for previous poster: admb make command errors

John Ancheta jnancheta at gmail.com
Fri Apr 10 19:40:56 PDT 2009


Never mind.  I was able to duplicate the problem on another machine.
Working on a solution now.

On Apr 10, 3:40 pm, John Ancheta <jnanch... at gmail.com> wrote:
> Try this,  edit %ADMB_HOME%\bin\mygccs
>
> and add option -U__WIN32 (note the TWO underscores) so that it looks
> like
>
> g++ simple.cpp -I. -fpermissive -IC:\ADMB\MinGW/include  -LC:\ADMB
> \MinGW/lib -DUSE_LAPLACE -D__GNUDOS__ -Dlinux -U__WIN32 -O3 -ldf1b2s -
> ladmod -ladt  -lads -ldf1b2s -ladmod -ladt -lads -osimple
>
> then try mygccs simple
>
> On Apr 10, 3:14 pm, liuw... at msu.edu wrote:
>
> > Hi,
> > Since I have the older version of ADMB7.1 on my XP, so first removed  
> > the old one by changing their folder names for both admb and minGw,  
> > now the make error for new version ADMB9.0 changed from the previous  
> > poster, it said cann't find the windows.h file. Following is the  
> > output after I compile a simple.tpl file. It is the same error message  
> > while I run the make command for the examples under ADMB command prompt.
>
> > But this windows.h was also in the older version of fvar.hpp, at that  
> > time, it runs ok, it means the older version can find it without  
> > problem.
>
> > C:\test>mygccs simple
> > C:\test>rem # for compiling from tpl2rem
> > C:\test>rem if [ ! -n "$ADMB_HOME" ]; then
> > C:\test>rem     echo you must define the environment string ADMB_HOME
> > C:\test>rem else
> > C:\test>g++ simple.cpp -I. -fpermissive -IC:\ADMB\MinGW/include  
> > -LC:\ADMB\MinGW/
> > lib -DUSE_LAPLACE -D__GNUDOS__ -Dlinux -O3 -ldf1b2s -ladmod -ladt  
> > -lads -ldf1b2s
> >   -ladmod -ladt -lads -osimple
> > In file included from  
> > C:/ADMB/MinGW/tools/MinGW/bin/../lib/gcc/mingw32/3.4.5/../
> > ../../../include/c++/3.4.5/backward/strstream:51,
> >                   from C:/ADMB/MinGW/include/fvar.hpp:446,
> >                   from C:/ADMB/MinGW/include/admodel.h:71,
> >                   from simple.cpp:1:
> > C:/ADMB/MinGW/tools/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3
> > .4.5/backward/backward_warning.h:32:2: warning: #warning This file  
> > includes at l
> > east one deprecated or antiquated header. Please consider using one of  
> > the 32 he
> > aders found in section 17.4.1.2 of the C++ standard. Examples include  
> > substituti
> > ng the <X> header for the <X.h> header for C++ includes, or <iostream>  
> > instead o
> > f the deprecated header <iostream.h>. To disable this warning use  
> > -Wno-deprecate
> > d.
>
> > In file included from C:/ADMB/MinGW/include/admodel.h:71,
> >                   from simple.cpp:1:
> > C:/ADMB/MinGW/include/fvar.hpp:7560:21: windows.h: No such file or directory
> > In file included from C:/ADMB/MinGW/include/admodel.h:71,
> >                   from simple.cpp:1:
> > C:/ADMB/MinGW/include/fvar.hpp:7564: error: `DWORD' does not name a type
> > C:/ADMB/MinGW/include/fvar.hpp:7565: error: `DWORD' does not name a type
> > C:\test>rem fi
>
> > Is there any clue for this problem?
>
> > weihai
>
> > _______________________________________________
> > Users mailing list
> > Us... at admb-project.orghttp://lists.admb-project.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> Us... at admb-project.orghttp://lists.admb-project.org/mailman/listinfo/users



More information about the Users mailing list