Not sure if I'm doing something wrong or what but with this simple code:
Code: Select all
ImportC "/System/Library/Frameworks/OpenGL.framework/OpenGL"
glCullFace( mode.l )
EndImport
Debug "@glCullFace(): "+ Hex(@glCullFace())
PureBasic - Assembler error
purebasic.asm:119:error: macho: sorry, cannot apply 32 bit absolute relocations in 64 bit mode, consider "[_symbol wrt rip]" for mem access, "qword" and "dq_foo" for pointers.
If I try to directly use glCullFace() then I get an "Invalid memory access."
I'm using PB x64 bit compiler on Mac OS X Yosemite v10.10.4.
Any idea what's going wrong ? (Or what I'm doing wrong ?)
(the same code works correctly on Windows & Linux with proper library path)
Cheers,
Guy.

