Re: C++ Program Not Compiling Due to Fatal Error C1010




http://msdn.microsoft.com/academic/techdown/techprod/vsnet/vs03acstudenttools/default.aspx



"przemeklach" <przemeklach@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C9952EA3-E5C4-45E9-AA7B-544345832534@xxxxxxxxxxxxxxxx
> 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.
>


.



Relevant Pages

  • C++ Program Not Compiling Due to Fatal Error C1010
    ... and no luck. ... reason my laptop install of Visual Studio 2003 does not have that template. ... Additional options: precompiled header ... Source Files ...
    (microsoft.public.vstudio.general)
  • Re: Blank Page or Template
    ... The default template is the Global.mpt file. ... Normal User, when either opening a current project or new project, gets a ... Re-registererd srchui and jscript dlls as per KB - as administrator. ... No luck. ...
    (microsoft.public.project)
  • Re: Where can I get a 5x8 Card Template for Word 2003?
    ... You can create a template for this custom size, ... much luck unless your printer supports it. ... Set reasonable margins and fill the card with dummy text (see ... you'll need to create your template on Letter ...
    (microsoft.public.word.pagelayout)
  • Re: unable to insert symbol with latest version of Office
    ... No luck with anything I've tried. ... Tried renaming Normal Template in Word X to "old normal," then ... than root/library fonts. ... I assume that based on what Elliott posted ...
    (microsoft.public.mac.office.word)
  • Re: What is this thing spidering my site?
    ... Good night Roy and good luck with your crawler dude. ... I template as much as I can. ...
    (alt.internet.search-engines)