Hi. 

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.


Anaël. 

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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to