Re: Lost Header Files
From: Peter Hall (anonymous_at_discussions.microsoft.com)
Date: 05/22/04
- Next message: Stephen Howe: "Re: Lost Header Files"
- Previous message: Pieter: "Re: Compile time string literal substitution to external data file"
- In reply to: Stephen Howe: "Re: Lost Header Files"
- Next in thread: Stephen Howe: "Re: Lost Header Files"
- Reply: Stephen Howe: "Re: Lost Header Files"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 May 2004 12:26:02 -0700
The first attempt using the WROX example called for std and iostream and they were included. However on the grounds that the program was generic and not particularly specific to the VC++v6 compiler, I started again using just the Visual C++ program to create an application using only facilities within the program. I typed nothing in other than the name of the application.
So, answering the request for more precise data about the second attempt using
only VC++v6 to set up a simple application:
I opened Visual C++ v6.0
File/New
choice was Simple Win32 Console Application
named it prh3 (the only thing I typed)
choice was: Simple Hello World program
with (according to VC++v6...)
Main prh3.cpp
and
Precompiled Headre stdafx.h and stdafx.cpp
The file view gave the listing as:
// prh3.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int main(int argc, char* argv[])
{
printf("Hello World!\n");
return 0;
}
on using the Build tool, the error messages were:
--------------------Configuration: prh3 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
c:\program files\prh3\stdafx.h(15) : fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
Error executing cl.exe.
prh3.exe - 1 error(s), 0 warning(s)
- Next message: Stephen Howe: "Re: Lost Header Files"
- Previous message: Pieter: "Re: Compile time string literal substitution to external data file"
- In reply to: Stephen Howe: "Re: Lost Header Files"
- Next in thread: Stephen Howe: "Re: Lost Header Files"
- Reply: Stephen Howe: "Re: Lost Header Files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|