[Top][All Lists]

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

Re: [Tinycc-devel] TinyCC problem with SDL2 library

From: anael seghezzi
Subject: Re: [Tinycc-devel] TinyCC problem with SDL2 library
Date: Fri, 23 Nov 2018 21:40:12 +0100
User-agent: Roundcube Webmail/1.1.5


Use -Ldir to Specify an additional static library path for the -l option. The default library paths are /usr/local/lib, /usr/lib and /lib.


ps: If you want to see an example of tcc integrated with a game platform, have a look a C-Toy: https://github.com/anael-seghezzi/CToy



Le 2018-11-22 23:38, Arion Deno a écrit :

hello ,  im a begginer with tcc,  so por testing, for small projects, in my university.   and home works.   im tryng compile a small projetct with SDL2 lib.   SDL2 its a famous game hug byValve.

so i doing a small game window  , its work  fine with gcc, but when trynng to compile with tinycc, no find the library. 

i  the download version for mingw for windows, put  headers ans libs in the folders.

in the windows command line :    tcc main_game.c -lSDL2main -lSDL2 -o small_game.exe  

the error tcc :  tcc/libSDL2.a: erros: invalid object file
tcc: error: 'SDL2'  not found

what i doing ? wrong?  please helpe
thanks all

Tinycc-devel mailing list



reply via email to

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