[Developers] bug in tpl2cpp

John Sibert sibert at hawaii.edu
Thu Jan 13 13:07:46 PST 2011


The running "admb t" on the attached tpl produces the following messages:
> $ admb t
>
> *** Parsing: tpl2cpp t
> warning -- creating unallocated matrix() at line 2
> warning -- creating unallocated 3darray() at line 3
>
> *** Compiling: adcomp t
> g++ -c -O3 -Wno-deprecated -DOPT_LIB -D__GNUDOS__ -Dlinux 
> -DUSE_LAPLACE -fpermissive -I. 
> -I/home/jsibert/admb/trunk/build/admb-linux-gcc4.4.3-64bit/dist/include t.cpp
> t.cpp: In constructor ‘model_data::model_data(int, char**)’:
> t.cpp:11: error: expected ‘;’ before ‘)’ token
> t.cpp:11: error: statement cannot resolve address of overloaded function
>
> Error: Failed to build executable.
> $ 
line 11 in t.cpp is
> d3.allocate);
Obviously the opening '(' is missing.

The context is
> model_data::model_data(int argc,char * argv[]) : ad_comm(argc,argv)
> {
> mat.allocate();
> d3.allocate);
> }
so the code for a dmatrix is correctly generated.

Perhaps someone who knows the lex code better than I can fix this?

Thanks,
John

-- 
John Sibert
Emeritus Researcher, SOEST
University of Hawaii at Manoa

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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: t.tpl
URL: <http://lists.admb-project.org/pipermail/developers/attachments/20110113/923c835d/attachment.ksh>


More information about the Developers mailing list