|
From: Peter R. <p.r...@sh...> - 2010-10-28 13:38:34
|
On 28/10/2010 14:24, Andrea Galeazzi wrote: > Tor was right, I used g++ -e __Z12OmegaStartupv and it works. Now the > question is: do I to inspect the object file in order to know which > symbol must be specified to the -e linker option? It sounds me very > strange... > By the way thanks for the help! > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps& games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users I guess the question may be: If you specify an entry point on the command line as OmegaStartup, how does the compiler know how to mangle that parameter? It could get the 12 (by counting the number of characters). Maybe '__Z' is a conventional prefix (?). But how can it get the 'v' which relates to the argument list (one void type) of the function? I think it's just an information issue... >>do I to inspect the object file in order to know which symbol must be specified to the -e linker option? I suspect you have no option! I am curious: Why do you need to run your own init code? Peter |