Author Topic: Why link to VC98?  (Read 4050 times)

hillyuan

  • Guest
Why link to VC98?
« on: April 22, 2006, 03:18:35 pm »
This is my first try to using Code::Blocks. It sounds good to be able using different compiler at one IDE.

My first program has been compiler successfully using GCC compiler. But failed when using other compilers. When using OpenWatcom, for example, a error happened in xstddef defined in the folder of Microsoft Studio\VC98\include, which is definitely not what I expected.

My question is: how to avoid such kind of error linking?

Thank you very much?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Why link to VC98?
« Reply #1 on: April 22, 2006, 03:47:52 pm »
That looks like compiler include paths are not being set correctly.

Different compilers/linkers need different headers/libraries to work properly. You cannot necessarily use one with the other (different headers might work if you're lucky, but usually will not).

Set up the correct paths for each compiler (and linker) and you should be fine.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."