Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Application fails to link using multithread
Application fails to link using multithread [message #3961] Tue, 11 July 2006 18:40 Go to next message
DuncanShortland is currently offline  DuncanShortland
Messages: 45
Registered: January 2006
Member
Trying to create a GUI application with the MT flag set. Mingw Debug compile using 605 version with MINGW download.

All modules compile correctly but the linker creates the following error.

Linking...
(option '-O 2' ignored)
___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
C:\upp\out\MINGW.Debug_full.Gui.Mt\Cserver.exe (13132672 B) linked in (0:01.70)

OK. (0:06.43)[/COLOR]

Any suggestions of possible ways forward welcome.
Re: Application fails to link using multithread [message #3963 is a reply to message #3961] Tue, 11 July 2006 19:02 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
DuncanShortland wrote on Tue, 11 July 2006 12:40

Trying to create a GUI application with the MT flag set. Mingw Debug compile using 605 version with MINGW download.

All modules compile correctly but the linker creates the following error.

Linking...
(option '-O 2' ignored)
___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
C:\upp\out\MINGW.Debug_full.Gui.Mt\Cserver.exe (13132672 B) linked in (0:01.70)

OK. (0:06.43)[/COLOR]

Any suggestions of possible ways forward welcome.



This is not error, just explanation message (sort of warning if you want) from our linker. The cause is mingw libraries contain duplicate '_main' definition - that has nothing to do with MT.

Mirek
Previous Topic: Example of Multi-Threading
Next Topic: method in separate process
Goto Forum:
  


Current Time: Sun Apr 28 21:25:35 CEST 2024

Total time taken to generate the page: 0.05452 seconds