Portál AbcLinuxu, 15. července 2025 08:11
touch windows.exe
bin/i386-mingw32msvc-gcc -o hello.exe hello.cpp -L"lib" -lstdc++ -r
/home/lubos/tmp/ccfh2Iyb.o(.eh_frame+0x11):hello.cpp: \ undefined reference to `__gxx_personality_v0'
$ cd /usr/local/cross-tools $ bin/i386-mingw32msvc-g++ \ -o /tmp/hello.exe /home/lubos/hello.cpp -L"lib" -lstdc++ $ wine /tmp/hello.exe Warning: the specified System directory \ L"C:\\windows\\system" is not accessible. Hello world!
err:module:map_image Section \ .comment too large (ffc00000+1f/1d5000) wine: could not load L"E:\\Documents \ and Settings\\Lubo\0161 Dole\017eel\\Dokumenty\\Visual\ Studio Projects\\TSTP_svr\\TSTP_svr.exe" as Win32 binaryKdyž to zkompiluju zapomoci stejného Makefile (pouze změněné cesty) na stejné verzi MinGW pod Windows, tak má výsledek 1MB a funguje...
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.