On 30.11.2024 22:31, avih wrote:
c:/path/to/tcc.exe -shared -o libtcc.dll libtcc.o tccpp.o tccgen.o tccdbg.o 
tccelf.o tccasm.o tccrun.o i386-gen.o i386-link.o i386-asm.o tccpe.o -static -s
tcc: error: library 'msvcrt' not found
tcc: error: library 'kernel32' not found
tcc: error: library 'user32' not found
tcc: error: library 'gdi32' not found
make: *** [Makefile:307: libtcc.dll] Error 1

Seems the '-static' should not be there on the link command.
Comes from a mistake in 'configure' where 'cc_name' is tested
before it was set.

Then again I think that tcc probably should not even try to find
static versions of msvcrt, kernel32, etc. either.

-- grischka

Similar, but more errors when building out-of-tree (mingw gcc 32
works, tcc32 previously worked, including tests, but now doesn't):

mkdir build && cd build
../configure --cc=c:/path/to/tcc.exe --cpu=i386
make -j8
...
c:/path/to/tcc.exe -shared -o libtcc.dll libtcc.o tccpp.o tccgen.o tccdbg.o 
tccelf.o tccasm.o tccrun.o i386-gen.o i386-link.o i386-asm.o tccpe.o -static -s
tcc: error: library 'msvcrt' not found
tcc: error: library 'kernel32' not found
tcc: error: library 'user32' not found
tcc: error: library 'gdi32' not found
tcc: error: undefined symbol '_GetSystemDirectoryA@8'
tcc: error: undefined symbol 'strlen'
tcc: error: undefined symbol 'memcpy'
tcc: error: undefined symbol 'strchr'
(many more symbols missing)
make: *** [Makefile:307: libtcc.dll] Error 1



_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to