Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > C++ help: illegal #include

C++ help: illegal #include
Thread Tools
Forum Regular
Join Date: Jul 2000
Location: Midwestia
Status: Offline
Reply With Quote
Oct 22, 2000, 10:22 AM
 
okay, why am I getting this when I #include "MacHeaders.h":

Error: illegal use of precompiled header
MacHeaders.h line 13 #include <MacHeadersPPC++>

Somehow I doubt there's some error in Metrowerks' header file. What do I have to do to make this #include legal?
     
brianp
Guest
Status:
Reply With Quote
Oct 22, 2000, 04:36 PM
 
there's a lot of potential problems here, but unless you're using powerplant, i'd stay away from MacHeaders.h.
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Oct 28, 2000, 01:18 AM
 
Hi witulski,

In case you haven't already found your answer, the MW CodeWarrior Error Reference ('Help|Error Reference') has this to say:-
...This error often occurs when the precompiled header file has already been ["included" via] the Prefix File field in the C/C++ Language settings panel. Or, when a precompiled header is #included after a function, variable, or type declaration...
Regards,

--Paul
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2