2

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.

anatolyg
28.5k9 gold badges66 silver badges149 bronze badges
asked Jun 6, 2014 at 15:50
8
  • Be specific, what is missing?? Commented 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 support Commented 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 feature Commented Jun 6, 2014 at 17:04
  • According to TCC website, nothing much in C99 are supported thought Commented 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 windows Commented Jun 6, 2014 at 17:11

2 Answers 2

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.

answered Jun 7, 2014 at 16:20
Sign up to request clarification or add additional context in comments.

Comments

0

Try Visual Studio Express Edition for 'C'.It's free and IDE is more developed than TCC

answered Jun 6, 2014 at 15:53

8 Comments

Hehe, no, not for C99 :)
@Hans Why not?VS C++ 2013 supports C99
"Microsoft has made it clear that they see no strong push from the market to allocate resources to support C99 in MSVC, so it's almost certain that the only parts of C99 you'll see in MSVC's C compiler mode are those that get brought in because of C++." stackoverflow.com/questions/9610747/…
@LưuVĩnhPhúc That second quote is from 2012. VS2013 does add many C99 features that previous versions of the VC compiler lacked.
|

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.