GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 21-Jan-2005, 21:04
gh0st16 gh0st16 is offline
New Member
 
Join Date: Jan 2005
Posts: 1
gh0st16 is on a distinguished road

Compiling Help


Ok, so i'm new to C++, and I was looking for a good visual C++ comiler, I was recommended Visual C++ 2005 Express edition beta, I also downloaded and installed some SDK 2.0 beta or whatever, dunno. Anyways, I start everything fine, write a quick hello program and run it, and I get this:

Code:
------ Build started: Project: Project1, Configuration: Debug Win32 ------ Compiling... stdafx.cpp c:\Documents and Settings\Owner\My Documents\Visual Studio\Projects\Project1\Project1\stdafx.h(28) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio\Projects\Project1\Project1\Debug\BuildLog.htm" Project1 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It says it cant find windows.h, how can I get this to somewhere it will find it?

Note: I searched my computer for it, and I have it and a ton of other header files installed in a different compiler I tried before this one, dunno if I could use them or whatever.

Anyway, I would really appriciate if anyone could help me.
  #2  
Old 22-Jan-2005, 06:45
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,303
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold
Quote:
Originally Posted by gh0st16
Ok, so i'm new to C++, and I was looking for a good visual C++ comiler, I was recommended Visual C++ 2005 Express edition beta, I also downloaded and installed some SDK 2.0 beta or whatever, dunno. Anyways, I start everything fine, write a quick hello program and run it, and I get this:

Code:
------ Build started: Project: Project1, Configuration: Debug Win32 ------ Compiling... stdafx.cpp c:\Documents and Settings\Owner\My Documents\Visual Studio\Projects\Project1\Project1\stdafx.h(28) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio\Projects\Project1\Project1\Debug\BuildLog.htm" Project1 - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It says it cant find windows.h, how can I get this to somewhere it will find it?

Note: I searched my computer for it, and I have it and a ton of other header files installed in a different compiler I tried before this one, dunno if I could use them or whatever.

Anyway, I would really appriciate if anyone could help me.


You need to install a current "Platform SDK" to get the proper header files and libraries. Other header files from a different computer probably won't work.

Go to www.msdn.com and search for 'Platform SDK" Here's a link that I used for Windows XP: http://msdn.microsoft.com/library/de...art_pag e.asp

Regards,

Dave
 
 

Recent GIDBlogInstall Adobe Flash - Without Administrator Rights by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Errors ToddSAFM C++ Forum 22 18-Dec-2004 11:42
compiling error 25jenny C++ Forum 8 04-Sep-2004 11:19
error when compiling avi C Programming Language 2 11-Aug-2004 03:17
kernel compiling & Geforce updating crystalattice Computer Software Forum - Linux 5 16-Jun-2004 07:38
compiling a program within another (C++) Siphiro C++ Forum 5 06-Feb-2004 15:35

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:36.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.