[vtkusers] undefined reference to_imp___ZN9vtkCamera9SetViewUpEddd

Xiaofeng Zhao xf10036 at hotmail.com
Tue Feb 7 20:00:32 EST 2006


That's what I was trying to say in my previous respose.  The two compilers, 
VC++ and gcc are not binary compatible.  They decrate the identifiers 
differently.

xz
http://www.xzing.org


----- Original Message ----- 
From: "Martin Baumann" <mailsgetlost at web.de>
To: "Martin Baumann" <mailsgetlost at web.de>
Cc: <vtkusers at vtk.org>
Sent: Tuesday, February 07, 2006 6:33 PM
Subject: Re: [vtkusers] undefined reference 
to_imp___ZN9vtkCamera9SetViewUpEddd


>I cannot find the problem. Can this be caused by two different compiler?
>
> I used MsVisual C++ to compile VTK5.0 and MinGW in a MSYS environment for 
> my project.
>
> The libs seem to be found but no VTK function are found.
> It makes me wonder, that the symbols of the libs (-> nm) don't include the 
> symbols that are missed by the compiler.
>
> Hmmm ... any idea?
>
>
> Thanks, MB
>
>
> Martin Baumann schrieb:
>
>> Hi,
>>
>> I have problems compiling a program that uses VTK-5.0 to MS Windows.
>> I use makefiles, MSYS and MinGW as compiler.
>>
>>
>>
>> At linking time I get the following messages:
>>
>> undefined reference to `_imp___ZN9vtkCamera9SetViewUpEddd´
>>
>> and ot more like this
>>
>> When I enter
>>
>> nm vtkRendering.lib I get
>>
>> ?SetViewUp at vtkCamera@@QAEXNNN at Z
>> ___imp_?SetViewUp at vtkCamera@@QAEXNNN at Z
>>
>> Does this look ok?
>>
>>
>> When I enter the same on my Linux machine, I get different hits.
>>
>>
>>
>>
>>
>> General Question:
>> What are the correct libraries for Windows? *.lib? *.dll?
>> And what do I have to enter in the makefile: -lvtkCommon or -vtkCommon 
>> or -vtkCommon.dll or vtkCommon.lib
>>
>>
>>
>> Thanks, MB
>> _______________________________________________
>> 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
>>
> _______________________________________________
> 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
> 



More information about the vtkusers mailing list