On 11/20/2014 07:15, Benjamin Dobell wrote: > Hi everyone, > > I'm having an issue using MinGW-w64 g++ - specifically linking. > > It's complaining WinMain is undefined for a simple Qt project using a Qt > static library (libqtmaind.a) that definitely defines WinMain. As can be > seen (link below) libqtmaind.a is clearly passed to g++ and should be > getting linked in: > > https://gist.github.com/Benjamin-Dobell/10ce0861eddc35a87c70 > > Results of running nm on libqtmaind.a shows the WinMain symbol is defined: > > https://gist.github.com/Benjamin-Dobell/ab938a4ebe716c83d7b0 > > $ g++ --version > g++.exe (i686-posix-dwarf-rev3, Built by MinGW-W64 project) 4.8.2 > > Are there any known symbol resolution issues in the linker? If not, any > suggestions as to how I could further debug this issue would be immensely > appreciated. >
You may need to add -lmingw32 before libqtmaind.a.
0xD4EBC740.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
