Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 5

Qt-interest Archive, May 2007
VS 2003 Qt 3-->4 migration issue: what to do with "qt-mtnc321.lib" references?


Message 1 in thread

Hi everyone,

I'm porting a Qt 3 project to Qt 4, and am having trouble with linking.  The 
Visual Studio 2003 project I inherited makes reference to a library file 
named "qt-mtnc321.lib", which I don't have, as I've only installed Qt4 on my 
desktop.  I do have qtmain.lib and Qt3Supportd4.lib in my linker paths. 
I've also run the qt3to4 porting tool on all source files.

If I remove qt-mtnc321.lib from the linker section of the project I get a 
slew of linker errors.  Stuff like:

error LNK2001: unresolved external symbol "__declspec(dllimport) public: 
__thiscall QBoxLayout::QBoxLayout(enum QBoxLayout::Direction,class QWidget 
*)"

pops up.  A ton of those messages.  Apparently I'm missing a library file 
somewhere, but am not sure what it might be.  If you have any ideas or leads 
on this I'd appreciate it.  Thanks!



--
 [ signature omitted ] 

Message 2 in thread

To me it looks like you are missing the qtgui lib :)
But then again I haven't used Qt 3, so I cannot tell you what 
qt-mtnc312.lib does without looking it up.

Regards,
Thomas

Jim Bancroft schrieb:
> Hi everyone,
> 
> I'm porting a Qt 3 project to Qt 4, and am having trouble with linking.  The 
> Visual Studio 2003 project I inherited makes reference to a library file 
> named "qt-mtnc321.lib", which I don't have, as I've only installed Qt4 on my 
> desktop.  I do have qtmain.lib and Qt3Supportd4.lib in my linker paths. 
> I've also run the qt3to4 porting tool on all source files.
> 
> If I remove qt-mtnc321.lib from the linker section of the project I get a 
> slew of linker errors.  Stuff like:
> 
> error LNK2001: unresolved external symbol "__declspec(dllimport) public: 
> __thiscall QBoxLayout::QBoxLayout(enum QBoxLayout::Direction,class QWidget 
> *)"
> 
> pops up.  A ton of those messages.  Apparently I'm missing a library file 
> somewhere, but am not sure what it might be.  If you have any ideas or leads 
> on this I'd appreciate it.  Thanks!
> 
> 
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 

--
 [ signature omitted ]