It cannot find WinMain

D:\hg\fast_io\.tmp\news>g++ -o a a.cc -Ofast -std=c++20 -s -flto -fuse-ld=lld 
-march=native -fno-exceptions -fno-rtti -fno-unwind-tables 
-fno-asynchronous-unwind-tables
lld-link: error: undefined symbol: WinMain
>>> referenced by ../../../../../mingw-w64/mingw-w64-crt/crt\crt0_c.c:18
>>>               libmingw32.a(lib64_libmingw32_a-crt0_c.o):(.text.startup)
collect2.exe: error: ld returned 1 exit status


Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to