[Done] ld: framework 'AGL' not found - PureBasic 6.30 beta 7
Posted: Sun Jan 25, 2026 11:59 pm
PureBasic 6.30 beta 7 - C Backend (arm64) - OpenGLGadget.pb
PureBasic - Linker Error
ld: warning: ignoring duplicate libraries: '-lm', '-lpthread', '/Applications/PureBasic.app/Contents/Resources/compilers/debugger.a', '/Applications/PureBasic.app/Contents/Resources/compilers/objectmanager.a', '/Applications/PureBasic.app/Contents/Resources/compilers/systembase.a', '2DDrawing.a', '2DDrawingBase.a', 'Array.a', 'Cipher.a', 'CipherMD5.a', 'Cocoa.a', 'Date.a', 'Desktop.a', 'DragDrop.a', 'Event.a', 'FileSystem.a', 'Font.a', 'Gadget.a', 'GadgetOpenGL.a', 'Image.a', 'ImagePlugin.a', 'ImagePluginBMP.a', 'Internal.a', 'LinkedList.a', 'Map.a', 'Memory.a', 'Menu.a', 'Network.a', 'Requester.a', 'SimpleList.a', 'String.a', 'System.a', 'VectorDrawing.a', 'Window.a'
ld: framework 'AGL' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using a MacBook Pro M1 Max with the latest Tahoe 26.2
When trying to run the OpenGLGadget.pb file I get the 'framework 'AGL' not found' linker error. Any workarounds for this error on the Mac arm64 platform?
PureBasic - Linker Error
ld: warning: ignoring duplicate libraries: '-lm', '-lpthread', '/Applications/PureBasic.app/Contents/Resources/compilers/debugger.a', '/Applications/PureBasic.app/Contents/Resources/compilers/objectmanager.a', '/Applications/PureBasic.app/Contents/Resources/compilers/systembase.a', '2DDrawing.a', '2DDrawingBase.a', 'Array.a', 'Cipher.a', 'CipherMD5.a', 'Cocoa.a', 'Date.a', 'Desktop.a', 'DragDrop.a', 'Event.a', 'FileSystem.a', 'Font.a', 'Gadget.a', 'GadgetOpenGL.a', 'Image.a', 'ImagePlugin.a', 'ImagePluginBMP.a', 'Internal.a', 'LinkedList.a', 'Map.a', 'Memory.a', 'Menu.a', 'Network.a', 'Requester.a', 'SimpleList.a', 'String.a', 'System.a', 'VectorDrawing.a', 'Window.a'
ld: framework 'AGL' not found
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using a MacBook Pro M1 Max with the latest Tahoe 26.2
When trying to run the OpenGLGadget.pb file I get the 'framework 'AGL' not found' linker error. Any workarounds for this error on the Mac arm64 platform?