[Qt-interest] Qt 4.5+MinGW+ld.exe+DLL

alvaro algajard at gmail.com
Tue Aug 4 18:04:19 CEST 2009


Hi everyone,

I have a problem with MinGW. I have installed Qt-4.5 with MinGW and Qt 
creator and wrote a library (DLL) that a want to use in another project, 
actually another DLL library and this libraries i want to add to a Qt 
GUI application.

When compiling ld.exe do not find the DLL library that i want. This is 
my QMake project file.

# -------------------------------------------------

# Project created by QtCreator 2009-08-02T20:27:22

# -------------------------------------------------

QT -= core \

gui

CONFIG += no_lflags_merge

TARGET = datos

TEMPLATE = lib

DEFINES += DATOS_LIBRARY

SOURCES += datos.cpp \

sqlfactory.cpp \

sqlusuario.cpp

HEADERS += datos.h \

datos_global.h \

sqlfactory.h \

sqlusuario.h

INCLUDEPATH = -I"c:/Archivos de programa/postgreSQL/8.3/include" \

-I"d:/tesis/src/logica" \

"d:/tesis/src/datos"

win32:LIBS += -L"c:/Archivos de programa/postgreSQL/8.3/lib" \

-lpq \

-L"d:/tesis/src/logica" \
-llogica


And the compilers error is:

C:\Qt\2009.02\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: 
cannot find -llogica


Searching the web a found that ld.exe only look for files on the default 
paths. My library is not in the default path. I've add the path of the 
libraries to de Windows PATH but nothing.

Suggestions ?


Regards,

Alvaro.



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4302 (20090803) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





More information about the Qt-interest-old mailing list