Importing a C++ static lib on OSX

BlitzMax Forums/BlitzMax Programming/Importing a C++ static lib on OSX

JoshK(Posted 2011) [#1]
I am getting errors like below when I import a C++ static library in BlitzMax in OSX. My App Xcode project builds and runs fine, but building the static library project gives these errors when the library is loaded in BMX. The OpenAL framework is in the project file tree on the left, and OpenAL/al and alc.h are being included. The static lib is being compiled with x86 architecture for OSX 10.7:
"_alGenSources", referenced from:
le3::OpenALChannel::OpenALChannel()in libLeadwerks3D.a(OpenALChannel.o)
(maybe you meant: _pub_openal_alGenSources)
"_alDeleteSources", referenced from:
le3::OpenALChannel::~OpenALChannel()in libLeadwerks3D.a(OpenALChannel.o)
(maybe you meant: _pub_openal_alDeleteSources)
"_alSourcei", referenced from:
le3::OpenALChannel::Update(le3::OpenALSource*) in libLeadwerks3D.a(OpenALChannel.o)
le3::OpenALSource::SetLoopMode(bool const&)in libLeadwerks3D.a(OpenALSource.o)
(maybe you meant: _pub_openal_alSourceiv, _pub_openal_alSourcei )

Any ideas?

Last edited 2011