They are runable with both, Matlab and Octave without any problems.
But what do I have to do to crosscompile it for windows?
If I tried a simple helloworld.c it ends in an error
tcc -nostdinc -I /usr/x86_64-w64-mingw32/include/ helloworld.c -o helloworld-tcc.exe
In file included from helloworld.c:1:
In file included from /usr/x86_64-w64-mingw32/include//stdio.h:9:
In file included from /usr/x86_64-w64-mingw32/include//crtdefs.h:10:
/usr/x86_64-w64-mingw32/include//_mingw.h:268: error: #error Only Win32 target is supported!
I'd tried to compile tcc itself with build_cross="yes" and tried
./x86_64-win32-tcc -nostdinc -I /usr/x86_64-w64-mingw32/include/ ../helloworld.c -o helloworld-gcc.exe
In file included from ../helloworld.c:1:
In file included from /usr/x86_64-w64-mingw32/include//stdio.h:9:
In file included from /usr/x86_64-w64-mingw32/include//crtdefs.h:10:
In file included from /usr/x86_64-w64-mingw32/include//_mingw.h:282:
/usr/x86_64-w64-mingw32/include//vadefs.h:33: error: #error VARARGS not implemented for this compiler
Thanks in advance!
Markus