• 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
Xcode search Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode search Path


  • Subject: Xcode search Path
  • From: Mike Jackson <email@hidden>
  • Date: Fri, 4 Nov 2005 20:59:21 -0500

  I am having a problem with an Xcode project that uses OpenSceneGraph

I have a source folder that has my source code. At the same level as that folder I have another folder that contains the Xcode project file. I create my target (BSD Dylib) and drag the files from the finder into the Xcode project window. The Sheet pops down and I select to use a path "Relative to the Project" and create groups for added folders.

I have OSG installed in /usr/local/include and /usr/local/lib.
Now when I build I get the following errors..

/usr/local/include/osg/Math: In function 'float logf(float)':
/usr/local/include/osg/Math:49: error: 'log' was not declared in this scope
/usr/local/include/osg/Math: In function 'float fabsf(float)':
/usr/local/include/osg/Math:61: error: 'fabs' was not declared in this scope
/usr/local/include/osg/Math: In function 'bool osg::isNaN(float)':
/usr/local/include/osg/Math:168: error: '__isnanf' was not declared in this scope
/usr/local/include/osg/Math: In function 'bool osg::isNaN(double)':
/usr/local/include/osg/Math:169: error: '__isnand' was not declared in this scope


Now the interesting part. If I create a new project in the SAME folder as the source code then the project will build just fine. I have the settings for each target set to the exact same values. I am sure that I am just missing an include path or something, but this is just odd.

Upon further investigation Xcode is using another file called Math.h in another part of our source tree. For this target I do have "../" in the search path so that it can find the source files. Can some one explain why the compiler or Xcode selects a file in ../Usul/Math/ Math.h instead of /usr/include/math.h ?


-- OS X 10.4.3 and Xcode 2.1 ( Not ready to try 2.2 DPx yet)

THanks
---
Mike Jackson
mike _at_ bluequartz dot net

---
Mike Jackson
mike _at_ bluequartz dot net


_______________________________________________ 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
  • Follow-Ups:
    • Re: Xcode search Path
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: Warning: Possible Unwanted Assignment
  • Next by Date: Re: Xcode search Path
  • Previous by thread: Re: Warning: Possible Unwanted Assignment
  • Next by thread: Re: Xcode search Path
  • Index(es):
    • Date
    • Thread