Errors linking to stdarg.h and float.h
Errors linking to stdarg.h and float.h
- Subject: Errors linking to stdarg.h and float.h
- From: William DeShazer <email@hidden>
- Date: Sun, 20 Jun 2010 00:17:34 -0400
I am trying to migrate an application developed on OS X 10.4 to OS X
10.6. I am attempting to deploy a Universal Build. Previously, I was
using XCode 2.5 and GCC 3.0. After installing XCode 3.2.2, I opened
the .xcodeproj and tried to compile right off the bat. I got a ton of
errors and warnings. The first couple are very troubling, however,
since they arise from files that are called directly from
CoreFoundation. XCode is unable to find stdarg.h and float.h. I found
several versions poking around inside of the 10.4 SDK, so I am not
sure why it can't find it.
I somewhat understand that the statement:
#include_next <stdarg.h>
is trying to tell the compiler to go and look for the right version of
stdarg.h. That said, I don't understand what mechanism the compiler
uses to find the right file, therefore, I don't know how to fix it.
I have been poking around for hours trying to stumble on something to
help and the only info I found was:
1) A loosely related document discussing why the user couldn't use icc
to compile: http://software.intel.com/en-us/forums/showthread.php?t=69724
2) A related email thread discussing similar problems back in Jan
2009: http://lists.apple.com/archives/Xcode-users/2009/Jan/msg00409.html
3) Another loosely related document detailing tips on build settings
to set for universal deployment:
http://www.meandmark.com/xcodetips.html
4) A porting guide from GCC 3.3 to GCC 4.0 :
http://developer.apple.com/mac/library/releasenotes/DeveloperTools/GCC40PortingReleaseNotes/GCC40PortingReleaseNotes.pdf
Unfortunately, none of these has provided me with clear enough
guidance to fix the problem. I'm dying here, so any help to resolve
this problem would be appreciated.
I have appended a dump of my compiler messages. If more information is
needed, please let me know.
Regards,
Will DeShazer
ProcessPCH /var/folders/qG/qGb6mq2QG+ClUDZPXlCZXk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/SplitSpeech_Prefix-gqrqlqdugmzdtwbrdkugubxtitmb/SplitSpeech_Prefix.pch.gch
SplitSpeech_Prefix.pch normal ppc objective-c
com.apple.compilers.gcc.4_0
cd "/Users/deshazer/Programming/Audio/SplitSpeech 2"
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.0 -x objective-c-header -arch ppc
-fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks
-Os -mdynamic-no-pic -Wunused-variable -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -mtune=G5 -fvisibility=hidden
-gdwarf-2 "-I/Users/deshazer/Programming/Audio/SplitSpeech
2/build/SplitSpeech.build/SplitSpeech
Release/SplitSpeech.build/SplitSpeech.hmap"
"-F/Users/deshazer/Programming/Audio/SplitSpeech 2/build/SplitSpeech
Release" -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
"-I/Users/deshazer/Programming/Audio/SplitSpeech 2/build/SplitSpeech
Release/include" "-I/Users/deshazer/Programming/Audio/SplitSpeech
2/build/SplitSpeech.build/SplitSpeech
Release/SplitSpeech.build/DerivedSources/ppc"
"-I/Users/deshazer/Programming/Audio/SplitSpeech
2/build/SplitSpeech.build/SplitSpeech
Release/SplitSpeech.build/DerivedSources" -c
"/Users/deshazer/Programming/Audio/SplitSpeech
2/SplitSpeech_Prefix.pch" -o
/var/folders/qG/qGb6mq2QG+ClUDZPXlCZXk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/SplitSpeech_Prefix-gqrqlqdugmzdtwbrdkugubxtitmb/SplitSpeech_Prefix.pch.gch
In file included from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:12,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from /Users/deshazer/Programming/Audio/SplitSpeech
2/SplitSpeech_Prefix.pch:6:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error:
stdarg.h: No such file or directory
In file included from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from /Users/deshazer/Programming/Audio/SplitSpeech
2/SplitSpeech_Prefix.pch:6:
/Developer/SDKs/MacOSX10.4u.sdk/usr/include/float.h:8:24: error:
float.h: No such file or directory
In file included from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h:32,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:125,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h:8,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:104,
from
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from /Users/deshazer/Programming/Audio/SplitSpeech
2/SplitSpeech_Prefix.pch:6:
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:115:
error: syntax error before 'vector'
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:120:
error: syntax error before '}' token
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:123:
error: array type has incomplete element type
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h:124:
error: field 'VSCR' has incomplete type
_______________________________________________
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