PDA

View Full Version : Problem with making .lib file



k.qasempour
27th August 2012, 06:44
hi all... Im trying to build a .lib file from my C++ library project in qt. So from >>>"other projects" i choose the >>>C++ library Project and then i set the type-combobox to >>> statical linked library
.... when i build the project i expect that there would be a .lib file in debug folder >> debug .... but there was just to file with .a and .o .....
who knows whats the problem?
Im using:
Windows 7 ultimate - 64bit
Qt creator 2.4.1
beside Qt 4.8.1 for desktop_ mingW

Many thanks

here is the .pro file ::



QT -= gui

TARGET = untitled
TEMPLATE = lib
CONFIG += staticlib

SOURCES += untitled.cpp

HEADERS += untitled.h
unix:!symbian {
maemo5 {
target.path = /opt/usr/lib
} else {
target.path = /usr/lib
}
INSTALLS += target
}

ChrisW67
27th August 2012, 09:37
There is no problem. The MingW tool chain uses GCC and ld which produc static libraries named libname.a.

k.qasempour
27th August 2012, 09:51
thanks.. i got it.... then how can i produce .lib file

ChrisW67
27th August 2012, 10:09
Use the Microsoft compiler suite.