Hello,

I use the attached makefile to link one of my code and got many link errors,
such as:
~~~~~~~~~~~~~~~~~~~

/home/xub/CXX/getfem++-2.0/src/getfem_assembling.h:587: undefined reference
to
`getfem::context_dependencies::add_dependency(getfem::context_dependencies
const&)'
poroelastic.o(.gnu.linkonce.t._ZN19poroelastic_problemD1Ev+0x218): In
function `poroelastic_problem::~poroelastic_problem [in-charge]()':
/home/xub/CXX/getfem++-2.0/src/gmm_blas.h:1766: undefined reference to
`getfem::mesh_fem::~mesh_fem [in-charge]()'
poroelastic.o(.gnu.linkonce

~~~~~~~~~~~~~~~~~~~~~~

Could someone help me ?
Thanks

--
Best regards,

Bin
  LIBS    =  -L/home/xub/CXX/getfem++-2.0/src/.libs/libgetfem.la \
                                         
-L/home/xub/CXX/getfem++-2.0/src/.libs/libgetfem.a \
             -L/home/xub/CXX/getfem++-2.0/BLAS/blas_LINUX.a \
             -lg2c -lm -rdynamic
  MODULE  =  poroelastic
  OBJECTS =  $(MODULE).o
  SRC     =  $(MODULE).cc
  INCLUDE = -I/home/xub/CXX/getfem++-2.0/src
  CFLAGS  =  -g -Wall -W -fmessage-length=0  \
             -ftemplate-depth-40 -pedantic    \
             -Wshadow -Wpointer-arith         \
             -Wcast-qual -Wwrite-strings      \
             -Wconversion -Wredundant-decls   \
             -Wno-long-long                   
        
  $(OBJECTS): $(SRC)
        g++ -c $(CFLAGS) $(INCLUDE) $(SRC)
  $(MODULE): $(OBJECTS)
        g++ -o $(MODULE) $(OBJECTS) $(LIBS)
  all: $(MODULE)

  clean:
        rm -f $(OBJECTS) $(MODULE) 
  
              
_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to