Dear Riccardo,

So, in my opinion, ... it should work. May be try to change the order of
the library in the compilation.
Try for instance

g++ -O3 laplacian.cc -lgetfem -lm -lmuparser -lblas -lmetis -llapack
-lgetfem

However, it seems to me that the order is correct ...

Do you use the same compiler for both the library and the program ?

Yves.


Le 02/10/2013 07:37, Riccardo Scorretti a écrit :
> In fact the library seems to contain the code:
>
> scorrett@vm-xubuntu:/usr/local/lib$ readelf -Ws libgetfem.so | grep
> is_zero_size
>   2567: 000000000030cdd0    79 FUNC    WEAK   DEFAULT   11
> _ZN6getfem10ATN_tensor12is_zero_sizeEv
>   4886: 00000000002fe660    27 FUNC    GLOBAL DEFAULT   11
> _ZN6getfem3ATN12is_zero_sizeEv
>   5230: 000000000030cdd0    79 FUNC    WEAK   DEFAULT   11
> _ZN6getfem10ATN_tensor12is_zero_sizeEv
>   7699: 00000000002fe660    27 FUNC    GLOBAL DEFAULT   11
> _ZN6getfem3ATN12is_zero_sizeEv
> scorrett@vm-xubuntu:/usr/local/lib$
>
>
> 2013/10/1 Yves Renard <[email protected]
> <mailto:[email protected]>>
>
>
>
>     Dear Riccardo,
>
>     The function getfem::ATN::is_zero_size() is defined in the file
>     getfem_assembling_tensor.cc. So I don't see where is the problem here.
>     Normally, the library should contain the code for this function. Could
>     you test it with a
>     nm -a libgetfem.a | grep is_zero_size
>     for instance, or
>     readelf -Ws libgetfem.so | grep is_zero_size
>     ?
>
>     Yves.
>
>
>
>
>
>
>
>     Le 01/10/2013 11:39, Riccardo Scorretti a écrit :
>     > Hi. I'm struggling to compile a simple test program with
>     getfem++ 4.2.
>     > Basically, I'm running xubuntu 11.10 and I managed to successfully
>     > compile/check/install the getfem++ with:
>     >
>     > ./configure --with-pic --enable-python=no --enable-mumps=no
>     > make
>     > make check
>     > make install
>     >
>     > All of the 27 tests are passed.
>     >
>     > Then I copied in another directory the test program
>     laplacian.cc, but
>     > when I try to compile I get the following error:
>     >
>     > scorrett@vm-xubuntu:~/Tmp/test_getfem$ g++ laplacian.cc -lgetfem -lm
>     > -lmuparser -lblas -lmetis -llapack
>     >
>     
> /tmp/ccRqHhaR.o:(.rodata._ZTVN6getfem18ATN_smatrix_outputIN3gmm10col_matrixINS1_8rsvectorIdEEEEEE[vtable
>     > for
>     getfem::ATN_smatrix_output<gmm::col_matrix<gmm::rsvector<double> >
>     > >]+0x28): undefined reference to `getfem::ATN::is_zero_size()'
>     >
>     
> /tmp/ccRqHhaR.o:(.rodata._ZTVN6getfem16ATN_array_outputISt6vectorIdSaIdEEEE[vtable
>     > for getfem::ATN_array_output<std::vector<double,
>     > std::allocator<double> > >]+0x28): undefined reference to
>     > `getfem::ATN::is_zero_size()'
>     >
>     
> /tmp/ccRqHhaR.o:(.rodata._ZTVN6getfem18ATN_smatrix_outputIN3gmm10row_matrixINS1_8rsvectorIdEEEEEE[vtable
>     > for
>     getfem::ATN_smatrix_output<gmm::row_matrix<gmm::rsvector<double> >
>     > >]+0x28): undefined reference to `getfem::ATN::is_zero_size()'
>     > collect2: ld a retourné 1 code d'état d'exécution
>     > scorrett@vm-xubuntu:~/Tmp/test_getfem$
>     >
>     > I really cannot understand where I'm wrong. Which is the
>     procedure to
>     > compile my own code and link it with getfem++? Thanks.
>     >
>
>
>     --
>
>       Yves Renard ([email protected]
>     <mailto:[email protected]>)       tel : (33) 04.72.43.87.08
>     <tel:%2833%29%2004.72.43.87.08>
>       Pole de Mathematiques, INSA-Lyon             fax : (33)
>     04.72.43.85.29 <tel:%2833%29%2004.72.43.85.29>
>       20, rue Albert Einstein
>       69621 Villeurbanne Cedex, FRANCE
>       http://math.univ-lyon1.fr/~renard
>     <http://math.univ-lyon1.fr/%7Erenard>
>
>     ---------
>
>
>     _______________________________________________
>     Getfem-users mailing list
>     [email protected] <mailto:[email protected]>
>     https://mail.gna.org/listinfo/getfem-users
>
>


-- 

  Yves Renard ([email protected])       tel : (33) 04.72.43.87.08
  Pole de Mathematiques, INSA-Lyon             fax : (33) 04.72.43.85.29
  20, rue Albert Einstein
  69621 Villeurbanne Cedex, FRANCE
  http://math.univ-lyon1.fr/~renard

---------

_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to