Author Topic: trivial errors with ms C toolkit  (Read 4525 times)

Offline hckr83

  • Multiple posting newcomer
  • *
  • Posts: 38
trivial errors with ms C toolkit
« on: December 24, 2005, 07:38:11 pm »
I am having some problems with the C toolkit
when i compile anything it gives a very weird and many errors
these are the errors but they are for watcom so why is that

C:\watcom\h\nt\winerror.h(2232) : warning C4068: unknown pragma
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(141) : warning C4616: #pragma warning : warning number '6059' out of range, must be between '4001' and '4999'
C:\watcom\h\nt\basetsd.h(121) : warning C4068: unknown pragma

edit:
that was onyl a feew, there are over 100 errors

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: trivial errors with ms C toolkit
« Reply #1 on: December 24, 2005, 08:12:59 pm »
I am having some problems with the C toolkit
when i compile anything it gives a very weird and many errors
these are the errors but they are for watcom so why is that

C:\watcom\h\nt\winerror.h(2232) : warning C4068: unknown pragma
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(141) : warning C4616: #pragma warning : warning number '6059' out of range, must be between '4001' and '4999'
C:\watcom\h\nt\basetsd.h(121) : warning C4068: unknown pragma

edit:
that was onyl a feew, there are over 100 errors

These are not errors, but warnings :). If I have good understood you would like to use M$ Toolkit 2003, right? I think that your problem is that M$ Toolkit 2003 is using include files from OpenWatcom and not its include files. I have had these problem too, the first time I have installed OpenWatcom. In fact, M$ Toolkit 2003 used wrong include files and generated a lot of errors. My solution was very easy :D. I have uninstalled OpenWatcom and clean the system path from its presence (and, if I remember, deleted OpenWatcom generated environmental variables). Then all worked fine.

If you want to use both....hmmm...I am not sure. :? Try to check which path OpenWatcom has put in the system path and remove them (but make a security copy if you would like to re-put them :wink:). In C::B, try to move in the first position the include path of M$ Toolkit 2003. Check also the forum for useful posts which may help you to solve your problems.

Michael

Offline hckr83

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: trivial errors with ms C toolkit
« Reply #2 on: December 25, 2005, 03:31:51 am »
the INLCUDE user level enviromental var is the problem deleting it fixes everything

and now i figured out that ms toolkit dont come with windows.h and presumably not the windows lib

so where can i get these?

krysa

  • Guest
Re: trivial errors with ms C toolkit
« Reply #3 on: December 25, 2005, 09:13:20 am »
<...> i figured out that ms toolkit dont come with windows.h and presumably not the windows lib
so where can i get these?
You must get Platform SDK. I'd also suggest you to get .NET framework SDK.
You can get them from MSDN. Here are the direct links:
Platform SDK, .NET Framework (runtime) v1.1 or v2.0, .NET Framework SDK v1.1 or v2.0.