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 > Compile Old Code in RC

Compile Old Code in RC
Thread Tools
Fresh-Faced Recruit
Join Date: Feb 2001
Location: OR
Status: Offline
Reply With Quote
Mar 22, 2001, 11:31 PM
 
I'm having some problems compiling old ObjC code (written for Public Beta) in the Release Candidate. In almost every example included with the developer CD, I get an error saying "Build failed (see build log for details)." Here is the build log for a "BasicSquare" app (which I know compiles fine in public beta):

Code:
/usr/bin/jam -d1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=- build ACTION=build TARGETNAME=BasicSquare NATIVE_ARCH=ppc BUILD_STYLE=Development "CPP_HEADERMAP_FILE=/Users/rbates/Programming/OpenGL/BasicSquare/build/intermediates/BasicSquare.build/Headermaps/BasicSquare.hmap" DSTROOT=/ "OBJROOT=/Users/rbates/Programming/OpenGL/BasicSquare/build/intermediates" "SRCROOT=/Users/rbates/Programming/OpenGL/BasicSquare" "SYMROOT=/Users/rbates/Programming/OpenGL/BasicSquare/build" warning: <BasicSquare>BasicSquare.app depends on itself ...updating 9 target(s)... BuildPhase BasicSquare.app Completed phase <CopyHeaders> for BasicSquare.app BuildPhase BasicSquare.app Completed phase <CopyResources> for BasicSquare.app CompileC /Users/rbates/Programming/OpenGL/BasicSquare/build/intermediates/BasicSquare.build/Objects/ppc/GameView.o BuildPhase BasicSquare.app Completed phase <DeriveAndCompileSources> for BasicSquare.app StandaloneExecutable /Users/rbates/Programming/OpenGL/BasicSquare/build/BasicSquare.app/Contents/MacOS/BasicSquare /usr/bin/ld: warning prebinding disabled because of undefined symbols /usr/bin/ld: Undefined symbols: _glBegin _glClear _glClearColor _glColor3f _glEnd _glFlush _glVertex3f "/usr/bin/cc" -o "/Users/rbates/Programming/OpenGL/BasicSquare/build/BasicSquare.app/Contents/MacOS/BasicSquare" "-L/Users/rbates/Programming/OpenGL/BasicSquare/build" "-F/Users/rbates/Programming/OpenGL/BasicSquare/build/ProjectHeaders" "-F/Users/rbates/Programming/OpenGL/BasicSquare/build" -filelist "/Users/rbates/Programming/OpenGL/BasicSquare/build/intermediates/BasicSquare.build/Objects/LinkFileList" "-arch" "ppc" "-prebind" "-framework" "Cocoa" ...failed StandaloneExecutable.LinkUsingFileList /Users/rbates/Programming/OpenGL/BasicSquare/build/BasicSquare.app/Contents/MacOS/BasicSquare ...
It seems to only happen when I include functions from outside of the Cocoa framework. The "BasicSquare" includes some OpenGL functions. When I take all of the OpenGL code out, it compiles fine. Anyone else having this problem? Any Suggestions? Thanks in advance.

Ryan
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Mar 23, 2001, 01:27 AM
 

Is OpenGL.framework in the list of frameworks in the project? It seems like it would need to be. If not, I suppose it's possible that Cocoa.framework (or AppKit.framework) automatically also linked in OpenGL.framework in Public Beta but has since changed, which would explain why it worked before.

If OpenGL.framework is included in your project... then I have no idea.
     
Fresh-Faced Recruit
Join Date: Feb 2001
Location: OR
Status: Offline
Reply With Quote
Mar 23, 2001, 09:27 AM
 
Wow, that was it! Thanks! For some reason it never struck me that it could be the problem. Hmm, I don't remember OpenGL being linked to the Cocoa framework in the public beta, wonder how it worked before.

Ryan
     
   
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 09:46 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