You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, October 31st 2016, 7:41am

Building and compiling QT project on a windows machine

Hi ,

I am trying to compile and build ( a Qt .pro file ) ,
I am trying t link a lib (lib4cxx.lib) to my QTlib (LoggerLib)


Help will be appriciated

I am facing the next linkage error: (What am i missing?)


LINK : warning LNK4001: no object files specified; libraries used
LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
debug\LoggerLib.dll : fatal error LNK1120: 1 unresolved externals



This is my .pro file:



#-------------------------------------------------
#
# Project created by QtCreator 2016-10-14T03:25:26
#
#-------------------------------------------------


QT -= gui


TARGET = LoggerLib
TEMPLATE = lib
CONFIG += debug


HEADERS += logger.h
win32 {
message(Build win32 Logger Lib)


contains(QMAKE_HOST.arch, X86_64) {
QMAKE_LFLAGS += /MACHINE:X64
} else {
QMAKE_LFLAGS += /MACHINE:X86
}






QMAKE_CXXFLAGS_DEBUG += /MTd
QMAKE_CXXFLAGS_RELEASE += /MT



win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../TcpComp/3rdParty/log4cxx/log4cxx/projects/release/ -llog4cxx
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../TcpComp/3rdParty/log4cxx/log4cxx/projects/Debug/ -llog4cxx


INCLUDEPATH += $$PWD/../../../TcpComp\3rdParty\log4cxx\log4cxx\src\main\include
DEPENDPATH += $$PWD/../../../TcpComp/3rdParty/log4cxx/log4cxx/projects/Debug


}

Similar threads