Re: [Dev-C++] Compiling QT programs with devcpp
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2006-02-20 14:41:52
|
A note about your makefile. -L should be used to specify a library directory, i.e. a directory to search for named library files. -l is used to specify the name of libraries to include in the linking. Finally, it is possible to specify the full name (including path) of a library without any parameter at all, i.e. just like object files are specified. MinGW can make use of both libxx.a and xx.lib libraries. The important factor is how the symbols in the library are exported. Naming and calling conventions, memory layout etc. normally vary between compilers unless the exported symbols are specified to use a commonly agreed about standard. /Per W On Mon, 20 Feb 2006, Bernd Muent wrote: > Hi, > I download qt for windows and I have all the includes in c:\qt\include > and libraries in c:\qt\lib: qtmain.lib and qt-mt230nc.lib and qutil.lib. > > I created a simple hello world and tried to compile. > Compilation is ok, but linking throws a lot of unresolved symbols for > all qt specific things. > Although there is in my Makefile > > LIBS =3D -L"c:/Dev-Cpp/lib" -L"c:/QT/lib" -L"c:/QT/lib/qt-mt230nc.lib" > -L"c:/QT/lib/qtmain.lib" -L"c:/QT/lib/qutil.lib" > INCS =3D -I"k:/Dev-Cpp/include" -I"K:/QT/include" > > Searching with Google I found out that these .lib files are for MSVC and > Borland C++ only. And the solution was: compile qt on your own. > Esspecially I'm not able to get the sources of qt-win from cvs, because > this is not allowed by our company's firewall. > Are there any places to download it via http or ftp? > > Are there any other solutions? > > Thanks for tips, Bernd > > > -- > Bernd M=FCnt Durchwahl: 030/69032-509 > euroscript Deutschland GmbH Zentrale: 030/69032-300 > Abteilung IT-Management Fax: |