• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems building Powerplant lib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems building Powerplant lib


  • Subject: Re: Problems building Powerplant lib
  • From: Eric Albert <email@hidden>
  • Date: Thu, 23 Mar 2006 09:18:41 -0800

On Mar 23, 2006, at 7:58 AM, Kurt Spaker wrote:

My first question has to do with header search paths. The imported project
didn't have any. As a result no system headers could be found, even though
they are located within the designated SDK, MacOSX10.4u.sdk. In order for
headers to be found, and NOT in some wacky location like the wx-2.5 folder, I
had to use the following header search paths:


/Developer/Headers/FlatCarbon/**
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/**
/Developer/SDKs/MacOSX10.4u.sdk/usr/include
$(HEADER_SEARCH_PATHS)

Does this look reasonable? Necessary? What exactly does
$(HEADER_SEARCH_PATHS) mean and why is it there?

You shouldn't include paths that start with /Developer/SDKs or with /usr/include in your search paths, so you should only need /Developer/Headers/FlatCarbon in here. You shouldn't need $(HEADER_SEARCH_PATHS) either -- that's the setting you're, well, setting.


Secondly, now that I no longer get all those "file not found" errors
precompiling the prefix file, I get an error precompiling <exception>,
included from LException.h. Specifically:

/Developer/SDKs/MacOSX10.4u.sdk/usr/include/c++/4.0.0/exception:42: error:
parse error before string constant


Which refers to the line: extern "C++" {

Any ideas why this won't compile?

Your precompiled header gets built for every language that's being built as part of your project. You have files ending in .c in your project, so a version of your precompiled header is being built for C. You have (at least) two options:
1) Set the "Compile Sources As" setting to "C++" instead of "According to File Type"
2) Surround the PowerPlant headers part of your prefix file with this:
#ifdef __cplusplus
...PowerPlant headers
#endif


Hope this helps,
Eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problems building Powerplant lib (From: Kurt Spaker <email@hidden>)

  • Prev by Date: Re: Problem using c++ functions with a custom framework
  • Next by Date: Re: Problem importing from CodeWarrior into Xcode (2.2.1)
  • Previous by thread: Re: Problems building Powerplant lib
  • Next by thread: Problem using c++ functions with a custom framework
  • Index(es):
    • Date
    • Thread