Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

A Stupid Compilation err

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Clocker - 28 Jul 2005 08:26 GMT
Hello,
I never practiced C++ development in VC++.net before. (only Unix)
what does the error:
d:\C++\UMath\UAlgebra.cpp(71): fatal error C1010: unexpected end of file
while looking for precompiled header directive

mean ?, and how do I fix it ?

Thank you !
Marcus Heege - 28 Jul 2005 10:44 GMT
How to fix it:

Add
#inlcude "stdafx.h"
as the first line of your file.

Background:
For faster compilation, VC++ provides precompiled headers.

The file stdafx.cpp which contains only the include directive for stdafx.h,
is compiled with /Yc"stdafx.h". When this file is compiled the compiler
builds it's table for macros, typedefs, ... and stores these tables into a
file named stdafx.pch. (AFAIK, this is done by just maping the compiler's
virtual memory into a file.)

All other files are by default compiled with /Yu"stdafx.h". This means they
expect the include line for stdafx.h as the first line and load the
definitions from stdafx.pch instead of really including stdafx.h and all
it's headers.

This can increase compilation time drastically.

Marcus Heege

> Hello,
> I never practiced C++ development in VC++.net before. (only Unix)
[quoted text clipped - 5 lines]
>
> Thank you !

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.