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 » Extra libraries, Code snippets, applications etc. » Applications created with U++ » why "___main: duplicate" ?
Re: why "___main: duplicate" ? [message #12769 is a reply to message #12723] Thu, 15 November 2007 13:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
alex100 wrote on Wed, 14 November 2007 05:45

Hi all,
I am new to U++ and I think it is a great TOOL!!

So I am trying my first programs (examples) e for several times when linking the folowing erro appear:

___main: duplicate
-> used: libmingw32.a:gccmain.o:1
-> discarded: libgcc.a:__main.o:1
1 undefined symbol(s):

Why compiling MyUppApp downloaded from the forum it also have this error! see output:



Actually, what is on your listing is a warning and an error.

The warning is normal: unfortanetely, it seems to be a problem in mingw ("main" is defined twice), which U++ linker detects and fixes by "discarding" one of definitions. Please ignore it.

The real error is the one after "1 undefined symbol(s):"

Mirek

[Updated on: Thu, 15 November 2007 13:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: RegComFiles tool...
Next Topic: Vega 5 RR
Goto Forum:
  


Current Time: Sun Aug 03 14:10:32 CEST 2025

Total time taken to generate the page: 0.06690 seconds