opengl and code::blocks link error

Nibbie
Posts: 2
Joined: 2008.05
Post: #1
okay so tonight i managed to get some of my win32 opengl code ported to mac so at least it compiles, how ever it doesnt link.

I'm getting undefined references for example to:
_aglSetDrawable
_aglDestroyPixelFormat
_aglGetError

how do i link with these on mac? I've tried adding:
-framework Opengl -framework Carbon
as my linker options but this doesnt help.

Ideas?
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
-framework AGL might do the trick (in addition to the two you already have).
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
Don't use Carbon for new code, it's not available in 64-bit.
Quote this message in a reply
GAMERUP
Unregistered
 
Post: #4
Quote:Don't use Carbon for new code, it's not available in 64-bit.

I AGREESmile WITH OneSadCookie
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  ObjC/c code error with lists ededed 5 3,232 Jan 31, 2003 06:56 AM
Last Post: w_reade