[vtkusers] What am i doing wrong

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Jun 24 17:16:03 EDT 2004


Henry,

	I believe dl* function are in libdl, thus you need:

  -ldl

	in your gcc parameter.

If you were using cmake, you woudln't have to worry about this.
Mathieu

Henry J. Karpf wrote:
> Well I am trying to compile a program and I get:
> mpicc -O -g -I /usr/include -DLINUX -DVF_MPI -DLAM_BUILDING 
> -DEPETRA_ANSI_CPP -DEPETRA_MPI -DDPapi -DDOUBLE -I../../external/inc 
> -I../../external/vtk/include -Wno-deprecated -c cell_surface.c
> mpiCC  -g -L/usr/local/lf9561/lib -L../../external/lib/linux 
> -L../../external/vtk/lib chisel.o hash.o levelset.o surfs.o cells.o 
> functions.o zoltan.o view_factors.o btrm.o timer.o chemkindata.o 
> chemkin.o io.o transform.o btrm_solver.o update_aztec.o update_direct.o 
> vtkOut.o fortran.o myface.o skrat2.o
> cell_surface.o    -lzoltan -lzoltan_mem -lzoltan_comm -lmpi -llam 
> -lVFmp_dp -lchemkin -lfj9i6 -lfj9f6 -lfj9e6 -laztecoo -lepetra -lkomplex 
> -ltriutils -ly12m -llapack -lblas -lifpack -lg2c -ldlu -lvtkCommon 
> -lvtkexpat -lvtkFiltering -lvtkfreetype -lvtkftgl -lvtkGraphics 
> -lvtkImaging -lvtkIO -lvtkjpeg -lvtkpng -lvtkRendering -lvtktiff 
> -lvtkzlib -lm -o ../chisel_linux
> ../../external/vtk/lib/libvtkCommon.a(vtkDynamicLoader.o)(.text+0xe5): 
> In function `vtkDynamicLoader::OpenLibrary(char const*)':
> : undefined reference to `dlopen'
> ../../external/vtk/lib/libvtkCommon.a(vtkDynamicLoader.o)(.text+0xfb): 
> In function `vtkDynamicLoader::CloseLibrary(void*)':
> .....
> 
> I link in the files, and yet i get all these erros, the list is actually 
> about 10 times as long as above, any advice?
> --Henry Karpf
> 
> 
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list