So the latest version of TCC supposedly has some of the features of C99 implemented, however, I have found that it does not include C99's Math library.
Is there a way I can get it to use more of C99's libraries on windows? I googled around and found some advice mostly pertaining to Linux, but for this project I need to get it to work on windows.
EDIT: This is not a question about getting 'any' compiler on the windows platform. I realize that there are many compilers. I specifically need to get TCC to do this.
EDIT: The project needs to do some on the fly C compilation, and we would like to see if we can use TCC for this feature.
-
Be specific, what is missing??Hans Passant– Hans Passant2014年06月06日 16:07:31 +00:00Commented Jun 6, 2014 at 16:07
-
Why do you use TCC for a large project? Its optimizer are not good and most probably used for small scale purpose. GCC and Clang have rather good C99 supportphuclv– phuclv2014年06月06日 16:21:39 +00:00Commented Jun 6, 2014 at 16:21
-
The project needs to do some on the fly C compilation, and we would like to see if we can use TCC for this featuretimsbleung– timsbleung2014年06月06日 17:04:00 +00:00Commented Jun 6, 2014 at 17:04
-
According to TCC website, nothing much in C99 are supported thoughtphuclv– phuclv2014年06月06日 17:07:57 +00:00Commented Jun 6, 2014 at 17:07
-
yeah, that's why I was asking if anyone had experience integrating their own packages into the compiler. I know on linux some guy from a previous question was able to compile tcc himself adding in some of his own libs from /usr/lib/. I would like to know if anyone had done anything similar in windowstimsbleung– timsbleung2014年06月06日 17:11:18 +00:00Commented Jun 6, 2014 at 17:11
2 Answers 2
The documentation for Windows indicates that the TCC installation on Windows deploys a minimal set of MinGW headers. Copy the headers you need from MinGW into the tcc/include/winapi (i.e. place them under tcc-build-root/win32/include/winapi) and then build tcc with build-tcc.bat.
Comments
Try Visual Studio Express Edition for 'C'.It's free and IDE is more developed than TCC