Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

aufgehaben

macrumors newbie
Original poster
Mar 17, 2010
2
0
I get several linking errors when trying to build a project in xcode, after including glew.h and calling glewInit();.

I've installed glew with macports, without complaint, the .h, .a and .dylib files exist in the correct places, the compiler finds glew.h, but the linker cannot find the library.

libGLEW.a is added to the libraries in the project, it has the correct target set, -lGLEW is added to the linker flags, the paths to the libs are set as recursive, still it cannot find the library.

Anybody got any tips or ideas?

/ Aufgehaben
 
Have the error text? Is it possible it's not linking to GLEW that is issue, but GLEW trying to link to things it depends on?
 
No, it actually seems like it cannot find the library.

Code:
"_glewInit", referenced from:
rp::FilmMDAS::initGPUResources(int, char**)in integrationmdas.o
"___glewGenFramebuffersEXT", referenced from:
___glewGenFramebuffersEXT$non_lazy_ptr in integrationmdas.o
ld: symbol(s) not found

Still haven't solved it.

/ Aufgehaben
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.