News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Why link to VC98?

Started by hillyuan, April 22, 2006, 03:18:35 PM

Previous topic - Next topic

hillyuan

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?

thomas

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."