cdm319

Hi,

I have installed Visual C++ Express 2005, and I have installed the PSDK. I have followed all the guidelines on the website to configure VC++ for building Win32 Applications.

However, when I try to compile any Win32 Project that I have made, It always gives this error:

c:\program files\microsoft platform sdk for windows server 2003 r2\include\stddef.h(6) : fatal error C1021: invalid preprocessor command 'include_next'



Re: Visual C++ Express Edition Can't Compile anything...

iccle

Can you paste the entire top portion of the code your trying to compile, ie the part with all the includes you using




Re: Visual C++ Express Edition Can't Compile anything...

nobugz

Something went terribly wrong. stddef.h doesn't belong in the SDK include folder, it belongs in the vc\include sub-folder. More-over, it shouldn't contain anything like "include_next".





Re: Visual C++ Express Edition Can't Compile anything...

cdm319

Would it have anything to do with me having DEV-C++ installed as well

If not, is there any way to fix it





Re: Visual C++ Express Edition Can't Compile anything...

iccle

No it shouldnt have anything to do with you having dev c++ installed, i also have dev c++.

Best thing i can suggest is reinstall visual c++ and the platform sdk for x86





Re: Visual C++ Express Edition Can't Compile anything...

Ricks01

Hello Everyone,

I am having the same problem. My original installation of Visual C++ Express edition has worked fine until I wanted to compile a simple Windows ap that needed the windows.h header. The problem was that it couldn't find it, so I simply did a search, found it, and included the path in the search directories. The problem after that was that after compiling the application, when the linker was invoked, it generated a whole bunch of linker errors - can't resolve this symbol or that symbol, etc.

Afer messing around with this for a while I decided it was time to get back to my regular simple C++ program assignments I was working on.

To my horror, the same thing happened! On my projects that I create in a 'Console Application' with selecting 'Empty Project' I now get the same slew of linking errors!

Well, I decided to go in and delete the only line that I added to tell the compiler where to look for the windows.h header file. Well, I took that out and nothing happened; still the same thing.

My professor suggested reinstalling the software and jsut going with that. I thought the same thing. But, before I did that I thought doing a reinstall might tkae care of it and I did that Saturday night to no avail. So then last night I did a full uninstall and then reinstall of the Microsoft Visuall C++ express. Still the same thing.

I'm downloading the Express Edition Service Pack 1, and am hoping this fixes the problem.

Does anyone have any suggestions I'm taking a class in C++ and I need to get this working so I can complete homework!

Thanks,

Rick Stranberg






Re: Visual C++ Express Edition Can't Compile anything...

Ricks01

Well, lo and behold, I fixed it!

It turns out I had included an "extra" path in the "library files." I deleted it and all is fine for assignments now! What a relief!

I still would like to create an API app for my project however. Or does anyone know how to position the cursor in a "console app"

That would be perfect - then I could get my project done......






Re: Visual C++ Express Edition Can't Compile anything...

iccle

In the start menu entry for the platform SDK, did you guys run the entry "Visual Studio Registration -> Register PSDK Directories with visual studio" or did you manually edit the paths



Re: Visual C++ Express Edition Can't Compile anything...


Re: Visual C++ Express Edition Can't Compile anything...

Ricks01

Hi Iccle,

Thanks for the link! I actually don't think I have the PSDK installed. I may be misunderstanding what you mean however about registering the PSDK directories with visual studio.

I just downloaded the service pack 1 for Visual C++ and was hoping that it would fix the "can't find Windows.h problem" However! I just ran the file Visual C++ 2005 Express Edition SP1 file, VS80sp1-KB926748-X86-INTL.exe and it said the thing was nott a valid Win32 application!

My frustration resides in the fact that I'm on 28.8K dialup. My satellite provider has been down for the past month and a half.

Iccle, I have seen that type of code before and thank you, but my problem resides in the fat that it can't "find" the Windows.h file (and maybe others too - I don't know) and when I tried to add the paths to it I ended up with a slew of linker errors. Is this something that can be fixed by downloading teh PSDK as well (Do I already have it - not sure).

I was hoping the dumb service pack would fix that. That is so irritating.

If I do have the PSDK how do I Register PSDK directories with Visual studio through Visual Studio registeration

Thanks in advance.,

Rick






Re: Visual C++ Express Edition Can't Compile anything...

Ricks01

Hi Iccle,

Ok, I just went here: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx I just learned that I do not have the Platform SDK if not previously downloaded. And, I need that in order to build Win32 applications. And I see all of the additional steps that need to be performed, etc.

Mybe that's the problem. I hope that's it!

Well, I'll start the download, and get up in the morning and hopefully look at it's completion!

Thanks a lot, Iccle. Have a good night!

Rick