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!

VS.NET and C coding

Status
Not open for further replies.

RichieMac

Programmer
Aug 18, 2004
61
GB
Hi guys,

a quick question. Is it possible to get around his simple problem of mine. I'm trying to run c code using the VS.net 2003. The problem i'm getting is that when I try to compile my source I'm getting the following error message:

z:\RSCode\galois.c(16): fatal error C1853: 'Release/RSCode.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

So I suppose my question is how do I get my code to run without using this precompiled header and use my own header file.

Thanks all
Richie
 
Right click on the project, select Properties
Expand C/C++
Click on Precompiled Header
Change setting for Create/Use Precompiled header to Not using precompiled header.
 
Alternatively, put an extern "C" around all your code if _cplusplus is defined and switch on Compile as C++ (/Tp) from the Advanced option.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top