tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Re : Re: [BUG] 0.9.28.pre - Cannot link due to : undefin


From: david . koch
Subject: [Tinycc-devel] Re : Re: [BUG] 0.9.28.pre - Cannot link due to : undefined symbol 'main'
Date: Mon, 22 Nov 2021 18:15:12 +0100 (CET)

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 <grishka@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.koch@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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]