mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mingw-cross-env-list] Link errors in SDL/Qt project


From: Nikos Chantziaras
Subject: [Mingw-cross-env-list] Link errors in SDL/Qt project
Date: Fri, 16 Apr 2010 09:03:09 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100410 Thunderbird/3.0.4

I'm trying to build a Qt application that uses SDL with the development version of mingw-cross-env (fetches a few minutes ago). It builds fine in Linux. The project file has these entries:

  TEMPLATE = app
  CONFIG += qt release
  LIBS += -lSDL -lSDL_mixer

Builds fine with native Linux GCC/Qt/SDL, but barks out with "undefined symbol" errors at the link step with mingw-cross. The link command that is generated is:

i686-pc-mingw32-g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,windows -mthreads -Wl -o release/QTads.exe object_script.QTads.Release -L"/home/realnc/opt/mingw/usr/i686-pc-mingw32/lib" -lmingw32 -lqtmain -lSDL -lSDL_mixer -lQtGui -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore -lpng -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32 -lz

I am attaching the errors to this email.

Attachment: errors
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]