Code::Blocks Forums

User forums => Help => Topic started by: hckr83 on December 24, 2005, 07:38:11 pm

Title: trivial errors with ms C toolkit
Post by: hckr83 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
Title: Re: trivial errors with ms C toolkit
Post by: Michael 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
Title: Re: trivial errors with ms C toolkit
Post by: hckr83 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?
Title: Re: trivial errors with ms C toolkit
Post by: krysa 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 (http://www.msdn.com/). Here are the direct links:
Platform SDK (http://www.microsoft.com/downloads/details.aspx?FamilyID=eba0128f-a770-45f1-86f3-7ab010b398a3&DisplayLang=en), .NET Framework (runtime) v1.1 (http://www.microsoft.com/downloads/details.aspx?familyid=262D25E3-F589-4842-8157-034D1E7CF3A3&displaylang=en) or v2.0 (http://www.microsoft.com/downloads/details.aspx?familyid=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en), .NET Framework SDK v1.1 (http://www.microsoft.com/downloads/details.aspx?familyid=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en) or v2.0 (http://www.microsoft.com/downloads/details.aspx?familyid=FE6F2099-B7B4-4F47-A244-C96D69C35DEC&displaylang=en).