I have a program foo.exe, the main entry is int __cdecl wmain
(int, w_char*, w_char*). My libc.lib also has the symbol wmain, declared
in the same way. When foo is linking, linker choose wmain in libc.lib,
sure that is not what I expected. That wmain should be call when my
program main entry is main (. . .). How could I decide which symbol I
My linker options are:
Ld -subsystem console --entry=_mainCRTStartup --file-alignment
0x1000 --section-alignment 0x1000 -Map foo.map -o foo.exe
--start-group foo.o D:\_gnu_ix86.dbg\lib\libc.lib --end-group
_mainCRTStartup is in libc.lib also
foo.o has symbol wmain, so does libc.lib
Thanks for any tips.
Get latest updates about Open Source Projects, Conferences and News.