<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV>I'm trying to run some of the examples (i.e. cone) included in the vtkQt
package by<BR>Matthias Koenig on Windows and for some reason I have to use
Visual C++ 6 (cannot switch to VC .Net), and I am having trouble<BR>linking
them. I am using qmake to create a Visual C++ project.<BR><BR>Here is my qmake
setup for the Cone.cxx example:<BR></DIV><FONT size=2>
<P>SOURCES = Cone.cxx</P>
<P>CONFIG = qt thread opengl</P>
<P>DEFINES = QT_DLL</P>
<P>INCLUDEPATH = .. $(VTKDIR)/Graphics $(VTKDIR)/Imaging $(VTKDIR)/Common
$(VTKDIR)/Patented $(VTKDIR)/Rendering $(VTKDIR)/Filtering $(VTKDIR)</P>
<P>TMAKE_LIBS = -L.. -lvtkqt -L$(VTKBIN) -lvtkGraphics -lvtkImaging -lvtkCommon
-lvtkRendering -lvtkFiltering</P>
<P>TARGET = Cone</P>
<DIV></FONT><FONT size=3>Here are the errors I get when compiling with Visual
C++ 6:<BR>Compiling...<BR>Cone.cxx<BR>C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\istream(547) : warning C4530: C++ exception handler used,
but unwind semantics are not enabled. Specify
-GX<BR>C:\Qt\vtkqt\examples\Cone.cxx(44) : warning C4508: 'main' : function
should return a value; 'void' return type assumed<BR>C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\ostream(234) : warning C4530: C++ exception handler
used, but unwind semantics are not enabled. Specify
-GX<BR> C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\ostream(229) : while compiling class-template member
function 'class std::basic_ostream<char,struct std::char_traits<char>
> &__thiscall std::basic_ostream<char,struct
std::char_traits<ch<BR>ar> >::put(char)'<BR>C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\ostream(234) : warning C4530: C++ exception handler
used, but unwind semantics are not enabled. Specify
-GX<BR> C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\ostream(229) : while compiling class-template member
function 'class std::basic_ostream<unsigned short,struct
std::char_traits<unsigned short> > &__thiscall
std::basic_ostream<unsigned sh<BR>ort,struct std::char_traits<unsigned
short> >::put(unsigned short)'<BR>C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\istream(46) : warning C4530: C++ exception handler used, but
unwind semantics are not enabled. Specify
-GX<BR> C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\istream(41) : while compiling class-template member
function 'bool __thiscall std::basic_istream<char,struct
std::char_traits<char> >::ipfx(bool)'<BR>C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\istream(46) : warning C4530: C++ exception handler
used, but unwind semantics are not enabled. Specify
-GX<BR> C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\istream(41) : while compiling class-template member
function 'bool __thiscall std::basic_istream<unsigned short,struct
std::char_traits<unsigned short> >::ipfx(bool)'<BR>C:\Program
Files\Microsoft Visual Studio\VC98\INCLUDE\xstring(525) : warning C4530: C++
exception handler used, but unwind semantics are not enabled. Specify
-GX<BR> C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\xstring(521) : while compiling class-template member
function 'void __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char>
>::_Copy(unsigned int)'<BR>C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\xstring(525) : warning C4530: C++ exception handler used,
but unwind semantics are not enabled. Specify
-GX<BR> C:\Program Files\Microsoft
Visual Studio\VC98\INCLUDE\xstring(521) : while compiling class-template member
function 'void __thiscall std::basic_string<unsigned short,struct
std::char_traits<unsigned short>,class std::allocator<unsigned
short<BR>> >::_Copy(unsigned
int)'<BR>Linking...<BR>vtkqt.lib(vtkQtRenderWindow.obj) : warning LNK4044:
unrecognized option
"alternatename:__imp_??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z=__imp_??6std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV<BR></FONT><A
href="mailto:10@PBD@Z"><FONT size=3>10@PBD@Z</FONT></A><FONT size=3>";
ignored<BR>LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of
other libs; use /NODEFAULTLIB:library<BR>vtkqt.lib(vtkQtRenderWindow.obj) :
error LNK2001: unresolved external symbol "__declspec(dllimport) </FONT><A
href="mailto:??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z"><FONT
size=3>??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z</FONT></A><FONT
size=3>" (</FONT><A
href="mailto:__imp_??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ost"><FONT
size=3>__imp_??$?6U?$char_traits@D@std@@@std@@YAAAV?$basic_ost</FONT></A><BR><A
href="mailto:ream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z"><FONT
size=3>ream@DU?$char_traits@D@std@@@0@AAV10@PBD@Z</FONT></A><FONT
size=3>)<BR>vtkqt.lib(vtkQtRenderWindowInteractor.obj) : error LNK2001:
unresolved external symbol "void * __cdecl operator new[](unsigned int)"
(</FONT><A href="mailto:??_U@YAPAXI@Z"><FONT
size=3>??_U@YAPAXI@Z</FONT></A><FONT
size=3>)<BR>vtkqt.lib(vtkQtRenderWindowInteractor.obj) : error LNK2001:
unresolved external symbol "void __cdecl operator delete[](void *)" (</FONT><A
href="mailto:??_V@YAXPAX@Z"><FONT size=3>??_V@YAXPAX@Z</FONT></A><FONT
size=3>)<BR>Debug/Cone.exe : fatal error LNK1120: 3 unresolved
externals<BR>Error executing link.exe.</FONT></DIV>
<DIV><FONT face=Arial size=3></FONT> </DIV>
<DIV>Cone.exe - 4 error(s), 10 warning(s)<BR></DIV>
<DIV><FONT face=Arial size=2>Has anybody come across the same problem?
</FONT><FONT face=Arial size=2>any idea what might be causing this and how can I
fix it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Amir <BR>Medical Computing Lab<BR>School of
Computing<BR>Queen's University<BR>Goodwin Hall<BR>Kingston,
ON<BR></FONT></DIV></FONT></DIV></BODY></HTML>