Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me please !!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I create a bunch of source code with the MFC AppWizard:

add 1 header file ID3v2Tag.h with content:

#ifndef __ID3V2TAG_H__
#define __ID3V2TAG_H__


class CID3v2Tag
{

};

#endif

add 1 C++ file ID3v2Tag.cpp with content:

#include "ID3v2Tag.h"

press compile and GET:

:\coding\four\id3v2tag.cpp(2) : fatal error C1010: unexpected end of file while looking for precompiled header directive

what am I doing wrong ?
 
The only thing in the cpp file is the include...

but I've found a solution !!

Insert > New Class

Class Type: Generic
and so on...


 
hi you:
Do below may solve your problem:
In Visual C++ ,open your project then Select Menu:
Project->Setting
In the opened Dialog chooce the "C/C++" Tab Page,
In the Category ComboBox Chooce "Precompiled Headers",
here you can chooce "not using precompiled headers".

Press "OK" & build your project now!

gzJungle
 
There is another solution... Just make sure that
Code:
#include
Code:
"stdafx.h"
is the first include directive in your source file(s). That should also alleviate the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top