Hello, I'd like to crosscompile (from Linux for Windows) Matlab/Octave mex functions written in C with tcc. I can compile those files in Linux with
tcc -I/usr/include/octave-3.8.1/octave/ -lm -shared mexample.c -o mexample.mex 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
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
