View previous topic :: View next topic |
Author |
Message |
ec-hasslau.de
Joined: 10 Jan 2007 Posts: 6
|
Posted: Wed Jan 10, 2007 2:43 pm Post subject: link mysql lib |
|
|
Hi @all.
I don't know if I'm right at this place. Sorry if not...
I wan't to write a program that parse my apache log files an put them into a mysql db.
The parsing works very well but I don't get any connection to mysql. I know that I have to link the libmysql.lib but I have no idea how to do. There is always this error...
Code: | OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
test.obj(test)
Error 42: Symbol Undefined _mysql_init
--- errorlevel 1 |
I also tried:
Code: | dmd test.d -L"C:\libmysql.lib" |
but also no success:
Code: | C:\Programme\d\dmd\bin\..\..\dm\bin\link.exe test,,,user32+kernel32/noiC:\libmysql.lib;
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
OPTLINK : Warning 9: Unknown Option : NOIC
:\libmysql.lib
Warning 2: File Not Found :\libmysql.lib
test.obj(test)
Error 42: Symbol Undefined _mysql_init
--- errorlevel 1 |
Can anybody help me?
(sorry for my bad english - normally I speak german )
Thanks, Andreas |
|
Back to top |
|
|
ec-hasslau.de
Joined: 10 Jan 2007 Posts: 6
|
Posted: Sun Jan 14, 2007 9:14 am Post subject: |
|
|
Ok guys, here is a solution, but not only for gdc...
Code: | gdc -o test test.d mysql.d -Xlinker c:\programme\d\dmd\lib\libmysql.dll |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|