system
1
I’m tryng to write an OpenGL renderer in OSX using Xcode.
I build a Cocoa app and started writing my code. All was well until I tried using the cosf() function.
The code compiles just fine, but when I run my program the app quits. The debugger spits out this message…
ZeroLink: unknown symbol ‘_cosf’
Program received signal: “SIGABRT”.
What framework do I need to include in my project to use the cosf() function and all other functions in math.h?
Thanks in advance!
Chris
system
3
Thanks for the info!
Strangly enough the cos() function work, but the cosf() doesn’t.
I tried to edit that post when I made it, to say –
You may need to actually add /usr/lib/libmx.dylib to your project to get it to work with ZeroLink.
I’m guessing that “mx” means “math extension”, and that it’s a BSD thing… but I don’t really know.
system
Closed
5
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.