digitalmars.D.learn - Re: MySQL
- DNewbie <run3 myopera.com> Jan 22 2012
- "Mars" <- -.-> Jan 22 2012
On Sun, Jan 22, 2012, at 12:11 AM, Ali =C3=87ehreli wrote:On 01/21/2012 06:28 PM, Mars wrote:On Sunday, 22 January 2012 at 00:50:28 UTC, Ali =C3=87ehreli wrote:Are you also including the library on the command line with -L-l? For example, for ncurses: dmd ... -L-lncurses ... And if needed, also -L-L to specify the location of library files for the linker. Ali
Yes, I am including it. Tried pragma and command line. And I don't get a message that the lib couldn't be found. What exactly is -L-l supposed to do? Is this valid in DMD 2.057? I get an error with it (Unknown Option). Mars
-L is dmd's the linker flag option. Anything after that is passed to the=
linker. So -L-l passes -l to the linker: =20 http://www.d-programming-language.org/dmd-linux.html =20 Ali =20
I've took a look at MySQL headers, the functions use __stdcall, but in libm= ysql.dll exports table they are not decorated.
Jan 22 2012
On Sunday, 22 January 2012 at 10:21:29 UTC, DNewbie wrote:I've took a look at MySQL headers, the functions use stdcall, but in libmysql.dll exports table they are not decorated.
This means...? Shouldn't it at least compile, if they are listed in the def file, coming from the lib?
Jan 22 2012