let's say the following batch file
Code: Select all
ECHO PRINT "Hello World!" > test.bas
REM this will generate test.asm file
FBC -rr -RR test.bas
REM tcc only allows *.s files for assembly
RENAME test.asm test.s
REM this generates test.o
TCC -c test.s
REM this should link test.o into test.exe
TCC -o test.exe test.o
What I am getting as result is tcc: error: undefined symbol 'main'
From what I guess, some libraries are needed, but I am clueless about which, so far, running TCC very verbose, it shows is attempting to link with libtcc1-32.a and crt1.o but still fails looking for the "main" symbol.
Any ideas? thanks.