[vtkusers] vtkandqt library conflicts

Seema Jaisinghani seemri at yahoo.com
Wed Mar 26 17:33:35 EST 2003


Hello,

I have been trying to use vtkandqt classes( by jan
Stifler) to combine vtk 4.0 and qt2.3 applications.
Both Vtk 4.0 and qt are running fine on my system (I
am working on Windows XP), but I am unable to link all
of them together in VC++. I am getting errors
regarding conflict between libraries (an msvcrt
conflict warning and then 15errors).In my project
settings, I have given link input to vtk .libs  and to
libs in qt/lib/ along with debug multithreaded dll
option in C/C++ code generation. 
These errors are related to the vtkandqt classes. I
have tried both including and excluding the vtkandqt
.cpp files in my project, but hasn't worked.
 
Could anyone please give me some pointers or hints how
to get it working.

Thanks for the help,

Seema 

Generating Code...
Linking...
MSVCRTD.lib(cinitexe.obj) : warning LNK4098:
defaultlib "msvcrt.lib" conflicts with use of other
libs; use /NODEFAULTLIB:library
interactormain.obj : error LNK2001: unresolved
external symbol "private: static struct QStringData *
QString::shared_null"
(?shared_null at QString@@0PAUQStringData@@A)
renderwindowinteractor.obj : error LNK2001: unresolved
external symbol "protected: virtual void __thiscall
RenderWindowInteractor::initMetaObject(void)"
(?initMetaObject at RenderWindowInteractor@@MAEXXZ)
renderwindowinteractor.obj : error LNK2001: unresolved
external symbol "public: virtual char const *
__thiscall
RenderWindowInteractor::className(void)const "
(?className at RenderWindowInteractor@@UBEPBDXZ)
renderwindowinteractor.obj : error LNK2001: unresolved
external symbol "public: static class QMetaObject *
__cdecl
RenderWindowInteractor::staticMetaObject(void)"
(?staticMetaObject at RenderWindowInteractor@@SAPAVQMetaObject@@XZ)
renderwindowinteractor.obj : error LNK2001: unresolved
external symbol "protected: void __thiscall
RenderWindowInteractor::Released(int,int)"
(?Released at RenderWindowInteractor@@IAEXHH at Z)
renderwindowinteractor.obj : error LNK2001: unresolved
external symbol "protected: void __thiscall
RenderWindowInteractor::ActorRotated(float,float)"
(?ActorRotated at RenderWindowInteractor@@IAEXMM at Z)
renderwindowinteractor.obj : error LNK2001: unresolved
external symbol "protected: void __thiscall
RenderWindowInteractor::ActorRolled(float)"
(?ActorRolled at RenderWindowInteractor@@IAEXM at Z)
renderwindow.obj : error LNK2001: unresolved external
symbol "protected: virtual void __thiscall
RenderWindow::initMetaObject(void)"
(?initMetaObject at RenderWindow@@MAEXXZ)
renderwindow.obj : error LNK2001: unresolved external
symbol "public: virtual char const * __thiscall
RenderWindow::className(void)const "
(?className at RenderWindow@@UBEPBDXZ)
renderwindow.obj : error LNK2001: unresolved external
symbol "public: static class QMetaObject * __cdecl
RenderWindow::staticMetaObject(void)"
(?staticMetaObject at RenderWindow@@SAPAVQMetaObject@@XZ)
renderwindow.obj : error LNK2001: unresolved external
symbol __imp__glColor3f at 12
renderwindow.obj : error LNK2001: unresolved external
symbol __imp__glClearColor at 16
renderwindow.obj : error LNK2001: unresolved external
symbol _gluOrtho2D at 32
renderwindow.obj : error LNK2001: unresolved external
symbol __imp__glLoadIdentity at 0
renderwindow.obj : error LNK2001: unresolved external
symbol __imp__glMatrixMode at 4
Debug/interactor.exe : fatal error LNK1120: 15
unresolved externals
Error executing link.exe.

interactor.exe - 16 error(s), 1 warning(s)


__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com



More information about the vtkusers mailing list