It is possible to use libtcc for a program compiled with tcc under win32.

If we use the standard script win32 (build_tcc.bat) libtcc.a is only usable for gcc and not tcc.

If we use a modified version of the build_tcc.bat script like the folowing :

:libtcc
copy ..\libtcc.h include\libtcc.h
copy ..\tests\libtcc_test.c examples
.\tcc.exe -c ..\libtcc.c  -o libtcc.o -I..
.\tiny_libmaker.exe lib\libtcc.a libtcc.o

after we can test with
tcc -o testlibtcc.exe  examples\libtcc_test.c -ltcc

and it works at least for the small test i did !

(i've tested with the latest master)




_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to