Ok-ayyyyy, that makes sense. In a way. Quite strangely, TCC seems to accept SDL as a library though (either as SDL.lib or libSDL.a) if you remove the 'def' generation and inclusion during final linking.
Will try with SDLmain.c though. Thank for the feedback. Regards, David KOCH ----- Mail d'origine ----- De: grischka <gris...@gmx.de> À: tinycc-devel@nongnu.org Envoyé: Mon, 22 Nov 2021 17:38:27 +0100 (CET) Objet: Re: [Tinycc-devel] [BUG] 0.9.28.pre - Cannot link due to : undefined symbol 'main' david.k...@libertysurf.fr wrote: > 'GLFrontier-win32\src\lib\SDLmain.lib' contains an entry point to 'main' > > Yet is not recognized as a library. > > 'GLFrontier-win32\src\lib\libSDLmain.a' contains an entry point to > 'console_main' > > Both contains an entry point to 'WinMain@16', but this is "handled" by SDL. > > So, I'm running out of idea how to get this linked. "SDLmain.lib" and "libSDLmain.a" sounds like pre-made libraries for usage with MSVC rsp. MINGW-GCC. Both these binary formats are not compatible with tcc. See also "tcc-win32.txt -> Limitations". You'll need to get SDLmain.c and try to compile it from source using tcc (which may or may not cause additional compilcations ...) -- gr > > Your thought ? > > Regards, David KOCH > > _______________________________________________ > Tinycc-devel mailing list > Tinycc-devel@nongnu.org > https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel