[PB] Compiling on MacOS X (source was written for winblow...)
Philip J Robar
philip.robar at gmail.com
Sat Nov 25 13:25:20 PST 2006
On Nov 25, 2006, at 1:09 PM, Eric F Crist wrote:
> Please help me understand the following output:
>
> root# gcc *.c -o test
> /usr/bin/ld: Undefined symbols:
> _mysql_close
> _mysql_error
> _mysql_fetch_row
> _mysql_field_count
> _mysql_free_result
> _mysql_init
> _mysql_num_fields
> _mysql_num_rows
> _mysql_options
> _mysql_query
> _mysql_real_connect
> _mysql_select_db
> _mysql_store_result
> _mysql_use_result
> collect2: ld returned 1 exit status
>
> How do I fix this?
You don't have the MySQL database installed, or at least it's
libraries are not in the default/specified location(s). Assuming that
you're trying to compile an Open Source program, it should include a
README or INSTALL file that talks about the program's dependencies.
By the way, a better place to ask questions like this would be the
themacintoshguy's x-unix mailing list.
Also, if this is an Open Source program, you might also check to see
if it is supported in MacPorts, (http://www.macports.org/), which
would simplify getting, compiling, installing and resolving dependency
issues like this.
Phil
--
The opposite of pro is con.
That fact is clearly seen.
If progress means move forward.
Then what does Congress mean?
-- Nipsey Russell
More information about the PowerBook
mailing list