[vtkusers] problem linking vtk library
Kundu, Sangeeta J.
KunduSJ at moffitt.usf.edu
Mon Feb 28 10:43:10 EST 2005
Hey,
Yes I'm compiling on Unix systems. I give the correct linking option too(as u mentioned -l<libname>), but i am constntly getting the same errors, "Cannot resolve symbol, <function name from the vtk lib> " during the linking process.
please help.
-SK
-----Original Message-----
From: ttickle [mailto:ttickle at cs.uno.edu]
Sent: Mon 2/28/2005 3:55 AM
To: Kundu, Sangeeta J.
Cc: ??; vtkusers at vtk.org
Subject: Re: [vtkusers] problem linking vtk library
Kundu, Sangeeta J. wrote:
>Hi,
>I'm a novice learner too, and while trying to run the examples, I could compile the code but I encounter linking errors, though the linking path is correct. If anyone encountered similar probs, please help.
>My lib is in archive format (eg. libvtkRendering.a)
>
>Thanks.
>-SK
>
>-----Original Message-----
>From: vtkusers-bounces at vtk.org on behalf of ??
>Sent: Sun 2/27/2005 9:48 PM
>To: vtkusers at vtk.org
>Subject: [vtkusers] (no subject)
>
>hi,
> i'm a new learner.when studying the examples in vtk source code(VTK\Examples\GUI\Win32\vtkMFC),i encounter an annoying problem.the compile progresse is ok.but when linking there are lots of problem similar to the one below:
>
><<<<vtkRendering.lib(vtkFreeTypeFontCache.obj) : error LNK2001: unresolved external symbol "public: __thiscall FTGLPixmapFont::FTGLPixmapFont(void)" (??0FTGLPixmapFont@@QAE at XZ)>>>>
>
>i don't kown why. i would be honored if someone could help me.
> ralph in china
>
>
>-----------------------------------------
>###########################################################################
>## This transmission may be confidential or protected from disclosure and
>is only for review and use by the intended recipient. Access by anyone else
>is unauthorized. Any unauthorized reader is hereby notified that any
>review, use, dissemination, disclosure or copying of this information, or
>any act or omission taken in reliance on it, is prohibited and may be
>unlawful. If you received this transmission in error, please notify the
>sender immediately. Thank you. #########################################
>####################################
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
>
>
You sound like you are using a unix based compiler (based upon the .a
extensions). You need to set the option flag for which libs you want to
use when compiling.
Example:
gcc -lvtkRendering helloworld.c
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.5.0 - Release Date: 2/25/2005
-----------------------------------------
###########################################################################
## This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by anyone else
is unauthorized. Any unauthorized reader is hereby notified that any
review, use, dissemination, disclosure or copying of this information, or
any act or omission taken in reliance on it, is prohibited and may be
unlawful. If you received this transmission in error, please notify the
sender immediately. Thank you. #########################################
####################################
More information about the vtkusers
mailing list