[ADMB Users] ADMB 9.0.202 release announcement

4 views
Skip to first unread message

Johnoel Ancheta

unread,
Apr 20, 2009, 10:11:57 PM4/20/09
to us...@admb-project.org
Hi all,

A new version of ADMB 9.0.202 is now available for download at

http://admb-project/downloads

Installation instructions can be found at

http://admb-project/documentation

For questions and support, email

us...@admb-project.org

Major Changes from 9.0.65
* ADMB setup windows setup files using Inno Setup Software (http://www.jrsoftware.org/isinfo.php)
* Added support for more compilers
  - Microsoft Visual C++ 2005 (32 bit)
  - Microsoft Visual C++ 2008 (32 bit)
  - Linux Gcc 4.1.2 (32 and 64 bit)
  - Linux Gcc 4.2.4 (32 and 64 bit)
* Corrected issues with windows batch files

ADMB Core Team

JohnS

unread,
Apr 21, 2009, 2:04:42 AM4/21/09
to us...@admb-project.org
Those URLs should, of course, include the .org suffix:

Dowloads: http://admb-project.org/downloads

Installation: http://admb-project.org/documentation

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

Johnoel Ancheta

unread,
Apr 22, 2009, 1:34:57 AM4/22/09
to us...@admb-project.org
Thanks Arni,

Use link below instead of zip because it contains all the packages needed.

http://code.google.com/p/admb-project/downloads/detail?name=admb-
9.0.202-win32.exe

I will need to update the install documentation for MinGW.

Johnoel

----- Original Message -----
From: Arni Magnusson <arn...@hafro.is>
Date: Tuesday, April 21, 2009 3:55 pm
Subject: Broken tpl2cpp in Windows
To: Johnoel Ancheta <joh...@hawaii.edu>
Cc: Hans Julius Skaug <Hans....@math.uib.no>, John Sibert <sib...@hawaii.edu>, Anders Nielsen <and...@nielsensweb.org>, Mark Maunder <mmau...@iattc.org>

> Hi everyone,
>
> The tpl2cpp.exe in the official ADMB for MinGW release
> (http://admb-project.googlecode.com/files/admb-9.0.202-mingw-
> gcc3.4.5.zip)
> is broken:
>
>    > tpl2cpp simple
>    'cat' is not recognized as an internal or external
> command,   operable program or batch file.
>    Error trying to create output file simple.cpp
>
> The tpl2cpp program has run independent of cat in all previous
> ADMB
> release, and I hope it will continue to do so. In my opinion, we
> shouldn't
> force the user to install anything except the ADMB core and a
> compiler.
> [For the same reason, I think asking the user to install
> gnuwin32 make
> adds an unnecessary layer of complexity, since the traditional
> makeadm
> simple is all that's required to test the installation - but we
> can save
> that discussion till later. The examples/admb/Makefile is of
> course a
> great bug test for the development team, on the other hand.]
>
> This problem with tpl2cpp.exe is a Windows feature and therefore
> partly on
> my watch, but I haven't figured out what has to be changed in
> the sources
> to make it independent again. A quick fix is to copy tpl2cpp.exe
> from
> http://admb-project.googlecode.com/files/admb-9.0.65.2-mingw32-
> gcc3.4.5.zip
> and release a patched version.
>
> Cheers,
>
> Arni

Arni Magnusson

unread,
Apr 22, 2009, 12:40:28 PM4/22/09
to Johnoel Ancheta, us...@admb-project.org
I finally found the problem. The broken tpl2cpp in ADMB for MinGW gets
created from the call:

gcc -I. -DUX mylex.c -otpl2cpp

The -DUX should only be used when compiling mylex.c->tpl2cpp on Linux. In
mylex.c, Dave Fournier defined a macro called UX that helps the compiler
choose the right lines of code, depending on whether mylex.c is being
compiled on Windows or Linux. By using -DUX it calls things appropriate
for Linux, while bypassing the code intended for Windows. In other words,
a healthy tpl2cpp for MinGW should be created with the call

gcc -I. mylex.c -otpl2cpp

or better still

gcc -s mylex.c -o tpl2cpp

for a leaner executable.

---

The problem lies in mingw.mak, which currently calls
optg32-rh8-laplace.mak. As the name implies, the latter makefile is
intended for Red Hat 8 Linux and is therefore not appropriate for making
ADMB for Windows.

The solution is to edit mingw.mak so that it calls a makefile intended for
making ADMB for Windows. This is a much better solution than making ADMB
for Windows dependent on cat.exe. Dave Fournier already did the hard work
creating the UX macro to make ADMB for Windows self-contained.

The same corrections need to be made for tpl2rem, which also uses Red Hat
8 Linux makefiles. It looks like the Windows makefiles will be very
similar, except no -DUX.

Quack,

Arni

Johnoel Ancheta

unread,
Apr 22, 2009, 3:21:28 PM4/22/09
to us...@admb-project.org
Thanks Arni,

Created the issue

http://code.google.com/p/admb-project/issues/detail?id=59

Target for next Milestone3.


Johnoel

----- Original Message -----
From: Arni Magnusson <arn...@hafro.is>
Date: Wednesday, April 22, 2009 6:40 am
Subject: Re: Broken tpl2cpp in Windows
To: Johnoel Ancheta <joh...@hawaii.edu>

John Sibert

unread,
Apr 22, 2009, 6:59:20 PM4/22/09
to Arni Magnusson, us...@admb-project.org
Well done, Duxman.
Thanks for making the effort.
John

--
Visit the ADMB project http://admb-project.org/

Reply all
Reply to author
Forward
0 new messages