PDA

View Full Version : Port Shared Library from Linux to Windows



calh1578
28th September 2009, 18:05
Hello,
I have created a shared library and an application that uses the shared library on Red Hat ES 4. I am now trying to port both the library and app over to Windows Xp. I can get hte library to compile into a .dll and the app to compile into a .exe, but when I try to run the app, I get:

The procedure entry point not be located X in the dynamic link library Y.

The X and Y depend on how I compile the app.

Here is my shared library .pro file:


QT += svg \
xml
TARGET = SimplifiedGraphicViewer
TEMPLATE = lib
DEFINES += SGV_LIBRARY
HEADERS += Header Files
SOURCES += Source Files


Here is my application .pro file:


QT += xml svg
FORMS += Window.ui
SOURCES += Source Files
HEADERS += Header Files
TEMPLATE = app
LIBS += -LC:\Shared_Lib -lSimplifiedGraphicViewer


Thanks

wysota
28th September 2009, 19:06
Do you have the necessary export macros in your classes?

calh1578
28th September 2009, 19:14
I have added them and that did the trick. In the linux version, I just need them main header file, but for Windows, I needed them in all the headers.

Problem Solved.