hello, after reading every bit of freepascal + mysql5 i could find on the net, i have still some problems getting this to run on OSX. i've installed mysql-5.0.45 and as i'm developing mainly with PHP and i compiled PHP with mysql support on my own, everything regarding mysql needed for developing with freepascal should be installed already. i've tried with the example posted on this mailinglist a while ago: http://article.gmane.org/gmane.comp.compilers.free-pascal.general/11357 however, i don't get it to work -- i get error messages from the linker:
Free Pascal Compiler version 2.2.0 [2007/08/30] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Darwin for i386 Compiling materialize.pas Assembling materialize Linking materialize ld64: warning: option -s is obsolete and being ignored Undefined symbols: "_mysql_refresh", referenced from: MYSQL50_MYSQL_RELOAD$PMYSQL$$LONGINT in mysql50.o "_mysql_fetch_row", referenced from: _PASCALMAIN in materialize.o "_mysql_close", referenced from: _PASCALMAIN in materialize.o "_mysql_query", referenced from: _PASCALMAIN in materialize.o "_mysql_real_connect", referenced from: _PASCALMAIN in materialize.o "_mysql_init", referenced from: _PASCALMAIN in materialize.o "_mysql_select_db", referenced from: _PASCALMAIN in materialize.o "_mysql_store_result", referenced from: _PASCALMAIN in materialize.o ld: symbol(s) not found Error: Error while linking Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) any ideas why freepascal complains about undefined symbols? regards, harald lapp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal