On Saturday 30 May 2009 12:00
matt...@workhorsy.org wrote:
> With ldc I am trying to do the same:
> gcc -g -c db.c -o db.o
> ar rcs db.a db.o
> ldc -g -of main db.d db.a main.d -lmysqlclient -L /usr/lib/mysql/
>
>
> Obviously that fails on the third steep, because it can't see the
> mysql libs. I read the man page like 4 times, with no luck. So what is
> the correct way to do this?
Can you post the error message? If it fails to link, try using -v to see the
arguments passed to the linker.
Also, don't you get "Unknown command line argument: -lmysqlclient"? It should
be -L-l and -L-L, since these need to be passed on to the linker.
Regards,
Christian