Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fatal error c1083 cannot open precompiled header file
Message
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00737936
Message ID:
00738109
Views:
18
>I am a C++ Newbie. I was asked to write a VFP COM object. The programmer who is going to use it will call it from C++. We don't have any problem calling it from VFP. We put together a test program in C++ to instantiate the object.
>
>Upon attempting to compile it we get the error:
>
>Fatal Error c1083
>Cannot open precompiled header file: debug/call_ar_com_object.pch No such file or directory
>
>As I said, I am very new at c++. So I don't even know what a PCH file is. I'm guessing this is something c++ wants for debugging purposes?
>
>TIA

A PCH is a Precompiled Header file. It sounds like you've got an #INCLUDE somewhere that wants something defined in this header. Are you doing a "Build"? The compiler should normally create the PCH files for you, if you're building the solution. If you don't want to use PCH's, you can tell the compiler to not use them by going into the project settings and unselecting the Precompiled heading option (depending on the version of the compiler, it's in a different spot). The only downside to doing this is that it will slow down your builds.

This link might also help:

http://www.west-wind.com/presentations/c_com/c_com.htm
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform