C++ Program Not Compiling Due to Fatal Error C1010
- From: "przemeklach" <przemeklach@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 24 Apr 2005 16:49:01 -0700
Hi this is going to be long because I am totally out of ideas on how to get
this working. I've searched forums and I've spent over an hour with my prof
and no luck. I am new to Visual Studio. I am using Visual Studio .NET 2003
and here is my problem.
I need to create C++ applications for my class work. On the school computers
there is a Project Type Template called C/C++ Application that I am able to
use. I am able to create my programs and run them with no problem. For some
reason my laptop install of Visual Studio 2003 does not have that template.
I've tried finding a dir on the school computer where the template may be but
no luck.
I have created a project with the following setup options:
******************************************
Project Type: Visual C++ Porjects/Win32
Template: Win32 Project
Application Type: Consol application
Add support for: MFC
Additional options: precompiled header
******************************************
When the solution opens I have the following folder layer
******************************************
Solution 'labs' (1 project)
Bicycle
References
Source Files
stdafx.cpp
Bicycle.cpp
Header Files
stdafx.h
Resource.h
Bicycle.h
Resource Files
Bicycle.rc
ReadMe.txt
******************************************
For this program I need my Bicycle.h (header), Bicycle.cpp (class) and a
Main.cpp which is the driver for my program. I procedd to del all the other
..cpp and .h files so the I only have the following structure:
******************************************
Solution 'labs' (1 project)
Bicycle
References
Source Files
Main.cpp
Bicycle.cpp
Header Files
Bicycle.h
Resource Files
Bicycle.rc
ReadMe.txt
******************************************
When I go to build my solution I get the following error:
******************************************
------ Build started: Project: Bicycle, Configuration: Debug Win32 ------
Compiling...
Bicycle.cpp
d:\School\Comp 160\Labs\Bicycle\Bicycle.cpp(82) : fatal error C1010:
unexpected end of file while looking for precompiled header directive
Main.cpp
c:\Documents and Settings\Przemek\Desktop\Main.cpp(98) : fatal error C1010:
unexpected end of file while looking for precompiled header directive
Generating Code...
Build log was saved at "file://d:\School\Comp
160\labs\Bicycle\Debug\BuildLog.htm"
Bicycle - 2 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
******************************************
I have tried several other ways of doing this but I always get stuck. I have
tried to look online for the template that I am missing but no luck. I have
tried other templates but no luck. Like I said at the top I also tried to
talk to my prof but he couldn't figure it out either.
Please let me know how to fix this. Please use noob terms becuase I won't
understand quick techi answers. If you need to see my source code please let
me know it and I will either post it or e-mail it to you. Thanks in advance.
.
- Follow-Ups:
- Prev by Date: RE: Suggestions for programming paradigm to use for specific appli
- Next by Date: Re: C++ Program Not Compiling Due to Fatal Error C1010
- Previous by thread: Can Visual Studio handle Unix-style line-ends?
- Next by thread: Re: C++ Program Not Compiling Due to Fatal Error C1010
- Index(es):
Relevant Pages
|