tinycc-devel
[Top][All Lists]
Advanced

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

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


From: david . koch
Subject: [Tinycc-devel] Re : Re : Re : Re: [BUG] 0.9.28.pre - Cannot link due to : undefined symbol 'main'
Date: Wed, 22 Dec 2021 11:40:37 +0100 (CET)

This may be of some help (despite TCC doesn't do C++) :

https://github.com/can1357/linux-pe

----- Mail d'origine -----
De: david koch <david.koch@libertysurf.fr>
À: tinycc-devel@nongnu.org
Envoyé: Mon, 22 Nov 2021 22:46:39 +0100 (CET)
Objet: [Tinycc-devel] Re :  Re : Re:  [BUG] 0.9.28.pre - Cannot link due to : 
undefined symbol 'main'

Ok, I took the "SDL_main.c" route.

It works.

Thanks.

Any plan on supporting COFF ?

Regards.

PS : SDL wasn't accepted as a lib, it was a mistake on my side.

----- Mail d'origine -----
De: david koch <david.koch@libertysurf.fr>
À: tinycc-devel@nongnu.org
Envoyé: Mon, 22 Nov 2021 18:15:12 +0100 (CET)
Objet: [Tinycc-devel] Re : Re:  [BUG] 0.9.28.pre - Cannot link due to : 
undefined symbol 'main'

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


_______________________________________________
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]