Archived

This topic is now archived and is closed to further replies.

cclements

ddutil.cpp compile error when using stdafx.h precompiled header.

Recommended Posts

I used the WIN32 App wizard in VC 6.0 to create a standard "hello world" window from which I can write my map editor. When I add ddutil.cpp to the project and compile ddutil.cpp errors on unexpected end of file. After some research I found that this is related to the use of the precompiled heder stdafx.h Is there some way to let these files get along in a project created by the app wizard? -Chris

Share this post


Link to post
Share on other sites
Yes. Go into the project options, and select JUST the file you need to fix (ddutil.cpp in this case) from the tree showing all the files in your projects, and go to the Precompiled Header section (I think it''s on the C/C++ tab) and then click "Do not use Precompiled headers with this file" or something like that.

Hope this helps!

------------------------------
Jonathan Little
invader@hushmail.com
http://www.crosswinds.net/~uselessknowledge

Share this post


Link to post
Share on other sites
You were correct friend! I had tried this but ! didn''t know that you could set properties for individual files. I removed the precompiled header for ddutil and it worked perfectly! Thanks!

--Chris

Share this post


Link to post
Share on other sites