Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode search Path



  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: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.