[ADMB Users] vectoizing pow for random effects

Mollie Brooks mbrooks at ufl.edu
Mon Jul 11 16:41:05 PDT 2011


Hi,
I attempted to make my own library for the following versions of pow()
df1b2vector pow(const dvector&, const df1b2variable&)
df1b2vector pow(const dvector&, const df1b2vector&)


I didn't attempt adjoint code, or anything fancy. See the attached files. 

When I try to use the functions I get the following errors
bash-3.2$ admb testHill 

*** tpl2cpp testHill

*** CXXFLAGS="" adcomp testHill
g++ -c -O3 -Wno-deprecated -D__GNUDOS__ -Dlinux -DOPT_LIB -DUSE_LAPLACE -fpermissive -I. -I/usr/local/admb/include testHill.cpp

*** LDFLAGS=" " adlink testHill
g++ -L/usr/local/admb/lib testHill.o -ldf1b2o -ladmod -ladt -lado -ldf1b2o -ladmod -ladt -lado -o testHill
Undefined symbols:
  "pow(dvector const&, dvar_vector const&)", referenced from:
      Hill(dvector const&, dvar_vector const&, dvar_vector const&, dvar_vector const&)in testHill.o
      Hill(dvector const&, dvar_vector const&, dvar_vector const&, dvar_vector const&)in testHill.o
      Hill(dvector const&, prevariable const&, dvar_vector const&, dvar_vector const&)in testHill.o
      Hill(dvector const&, prevariable const&, dvar_vector const&, dvar_vector const&)in testHill.o
      Hill(dvector const&, dvar_vector const&, prevariable const&, dvar_vector const&)in testHill.o
      Hill(dvector const&, dvar_vector const&, prevariable const&, dvar_vector const&)in testHill.o
      Hill(dvector const&, prevariable const&, prevariable const&, dvar_vector const&)in testHill.o
      Hill(dvector const&, prevariable const&, prevariable const&, dvar_vector const&)in testHill.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Error: could not create testHill


 Am I doing something wrong?
thanks,
Mollie




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/8de8454a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pow_vectorized_RE.cpp
Type: application/octet-stream
Size: 587 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/8de8454a/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/8de8454a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Hill.cpp
Type: application/octet-stream
Size: 10269 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/8de8454a/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/8de8454a/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testHill.tpl
Type: application/octet-stream
Size: 1021 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/8de8454a/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/8de8454a/attachment-0003.html>


More information about the Users mailing list