Cross Building with Mingw Problem

Please post support and help requests here.
Posts: 3
Joined: 17 Jan 2013, 21:31

Cross Building with Mingw Problem

Postby steve » 16 Apr 2013, 20:11

Having a problem cross building with mingw.

Built the POCO library with:
./configure --static --omit=Data/ODBC,Data/MySQL --no-tests --no-samples --config=MinGW-CrossEnv --cflags=-mthreads --cflags=-fexceptions

> i686-w64-mingw32-g++ --version
i686-w64-mingw32-g++ (rubenvb-4.8.0) 4.8.0

Compiling with:
i686-w64-mingw32-g++ -s -mthreads -fexceptions -Wall -c relay-ms.cpp \ (+ include directories)

get two compiler warnings like this one:
../../thirdParty/poco-1.4.6p1-all/Foundation/include/Poco/Timestamp.h:250:27: warning: 'static Poco::Timestamp::TimeVal Poco::Timestamp::resolution()' redeclared without dllimport attribute after being referenced with dll linkage [enabled by default]
inline Timestamp::TimeVal Timestamp::resolution()

and linking yields:
app-ms.o:app-ms.cpp:(.text+0xd2): undefined reference to `_imp___ZN4Poco4Util17ServerApplication3runEiPPc'
app-ms.o:app-ms.cpp:(.text$_ZN4Poco9MutexImpl8lockImplEv[__ZN4Poco9MutexImpl8lockImplEv]+0x135): undefined reference to `_imp___ZN4Poco15SystemExceptionC1ERKSsi'

Any help in sorting out how to link this would be highly appreciated.

Posts: 1375
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Cross Building with Mingw Problem

Postby alex » 16 Apr 2013, 22:56

looks like you configured static poco build but building your app with dynamic linking

Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests