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 > ::_Exit has not been declared.

::_Exit has not been declared.
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2009
Status: Offline
Reply With Quote
Jun 2, 2009, 11:39 AM
 
Trying to build a ppc binary for 10.3.9 systems with a custom Makefile, and getting the following errors on compiling:

/usr/include/c++/4.0.0/cstdlib:165: error: ‘::_Exit’ has not been declared
/usr/include/c++/4.0.0/cstdlib:205: error: ‘__gnu_cxx::_Exit’ has not been declared

This is run from the Makefile
Code:
export MACOSX_DEPLOYMENT_TARGET=10.3 export NEXT_ROOT=$(PPC_SDK) export SDKROOT=$(PPC_SDK) /usr/bin/sudo gcc_select gcc33
Using the following (which I've pieced together from multiple sources)
Code:
PPC_SDK = /Developer/SDKs/MacOSX10.3.9.sdk PPC_CPPFLAGS = -arch ppc -isystem $(PPC_SDK)/usr/include -F$(PPC_SDK)/System/Library/Frameworks -B$(PPC_SDK)/usr/include/gcc -B$(PPC_SDK)/usr/lib/gcc PPC_LDFLAGS = $(PPC_CPPFLAGS) -W1,-syslibroot,$(PPC_SDK) -L$(PPC_SDK)/usr/lib/gcc/darwin/3.3
Build machine is OSX 10.5.7, i386, Xcode 3.1.2 installed.

The i386 build works fine, using /Developer/SDKs/MacOSX10.4u.sdk and gcc 4.0.


Ideas?
     
   
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 05:07 AM.
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