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!

PreCompiled Header - Header Directive missing problem

Status
Not open for further replies.

TheMillionDollarMan

Programmer
Jun 10, 2002
132
US
Hi,

If I change the settings on one of the implementation files in my project
From:
Use precompiled header file
To:
Not Using precompiled header file

My error when trying to compile changes
From:
d:\projects\vc\oci\test2\cdemo6.cpp(316) : fatal error C1010: unexpected end of file while looking for precompiled header directive

To:
d:\projects\vc\oci\test2\cdemo6.h(77) : error C2065: 'oparse' : undeclared identifier
d:\projects\vc\oci\test2\cdemo6.h(82) : error C2065: 'obndrn' : undeclared identifier
d:\projects\vc\oci\test2\cdemo6.h(88) : error C2065: 'odefin' : undeclared identifier
d:\projects\vc\oci\test2\cdemo6.h(92) : error C2065: 'odescr' : undeclared identifier
d:\projects\vc\oci\test2\cdemo6.h(95) : error C2065: 'oexec' : undeclared identifier
d:\projects\vc\oci\test2\cdemo6.h(97) : error C2065: 'ofetch' : undeclared identifier
d:\projects\vc\oci\test2\cdemo6.h(42) : error C2011: 'connection' : 'class' type redefinition
d:\projects\vc\oci\test2\cdemo6.h(69) : error C2011: 'cursor' : 'class' type redefinition
d:\projects\vc\oci\test2\cdemo6.h(113) : error C2011: 'CORADB' : 'class' type redefinition

What kind of Header directive do I need in order to build this exe?

This is an example taken from the Oracle Call Interface examples (in C) and adapted to VC++.

Thanks

 
You have to include 'stdafx.h&quot; in all the source files if you are going to use that option or the header file you specified is <through header> edit lines in C/C++ tab->precompiled headers [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
You can also mark particular files as 'not using precompiled headers'. This comes in handy when using 3rd party tools like oci.h.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top