[ADMB Users] vectoizing pow for random effects

Mollie Brooks mbrooks at ufl.edu
Mon Jul 11 20:38:37 PDT 2011


I thought that pow was already overloaded for dvar_vectors. 
See http://admb-project.org/documentation/api/fvar_8hpp.html#aad01213052d6d5ea585a60b19ef16fa0
This function is suspicious though because there's no documentation.

I'm attaching a test file that sends a random effects vector to the function Hill(). It produces the same errors.

bash-3.2$ admb -r testHill_RE

*** tpl2rem testHill_RE

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

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

Error: could not create testHill_RE




On 11 Jul 2011, at 8:32 PM, Steve Martell wrote:

> I did not try and compile your code, but it appears you have overloaded the pow function as a df1b2vector only by you are passing it dvar_vectors.  
> 
> S.
> On 2011-07-11, at 4:41 PM, Mollie Brooks wrote:
> 
>> <pow_vectorized_RE.cpp><Hill.cpp>
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/d7911983/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testHill_RE.tpl
Type: application/octet-stream
Size: 1033 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/d7911983/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110711/d7911983/attachment-0001.html>


More information about the Users mailing list