[vtkusers] undefined reference to _imp___ZN9vtkCamera9SetViewUpEddd

David Cole david.cole at kitware.com
Tue Feb 7 20:26:35 EST 2006


Unresolved externals can definitely be caused by two different compilers.

You should always use the same compiler (and the same compiler 
flags/settings even) for building VTK and for building clients that link 
to VTK.


David


Martin Baumann wrote:

> 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