Advertisement

Mac OS X, Cocoa, stuck on a linker error

Started by September 20, 2003 05:07 AM
0 comments, last by MatrixCubed 20 years, 11 months ago
Hey all, I'm porting my app to Mac OS X (which uses OpenGL, GLUT, GLUI, and MySQL). I've had a rough time of it (having never used the OS in-depth before today), but I've got my project down to one linker error... unfortunately I am out of ideas! The app is a Cocoa app linked with OpenGL and GLUT Frameworks, GLUI code is directly in the project, and not much else is in use. The error I get is:

/usr/bin/ld: /Users/proj/libmysqlclient.a(my_compress.o) illegal reference to symbol: _compress defined in indirectly referenced dynamic library /usr/lib/libz.1.1.3.dylib
 
I tried downloading the code for MySQL and compiling with static libraries instead, but I get an error indicating that libm.a is not located in the usual directories (/lib or /usr/lib). The configure option I use is: ./configure --with-client-ldflags=-all-static The version of MySQL is 3.26, though I haven't tried a later version. Willing to try anything at this point. Feel like I've been google-ing for ever. Any ideas on how to deal with the initial problem are most appreciated! MatrixCubed
http://MatrixCubed.cjb.net [edited by - MatrixCubed on September 20, 2003 6:08:13 AM]
Fixed it ... added a linker switch -lz



MatrixCubed
http://MatrixCubed.cjb.net

This topic is closed to new replies.

Advertisement