Page 1 of 1
Multiple Definition(Database)[Link Error]
Posted: Fri Aug 03, 2007 1:13 pm
by SunSatION
When I'm calling a Database function, i'm getting 'multiple definition' of all database functions, This happens when i had the iodbc-dev installed and after i have removed it.
Running Ubuntu 7.04
PureBasic Demo 4.01
Posted: Sat Aug 04, 2007 11:53 am
by Fred
Could you paste the full error message ? Note: you need the IODBC-dev package to be able to use the database lib.
Posted: Sat Aug 04, 2007 4:16 pm
by kalaharix
Hi
I have been trying to get a database working with the Linux PB demo and feel I am quite close now.
I too had the same error message (I think while using a Postgresql database).
Now I am not sure the odbc.ini entry I had made for the database was correct.
Have you tested the ODBC entry with iodbctest?
Posted: Sat Aug 04, 2007 6:22 pm
by SunSatION
Sorry for the screenshot, but i'm not experienced with linux and don't know how to get the text.
http://img464.imageshack.us/img464/1134 ... rorjw6.jpg
I guess it's some kind of debugging problem because when I created an executable file, InitDatabase returned a success value.
iODBC
libiodbc2-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libxine-dev libsm-dev libice-dev x11proto-xext-dev libnfsidmap2
libatk1.0-dev libsdl1.2-dev x11proto-kb-dev libglib2.0-dev
x11proto-xinerama-dev libpango1.0-dev x11proto-render-dev
libgnomeprint2.2-dev libglib1.2-dev libxi-dev libevent1 libxrender-dev
libcairo2-dev mesa-common-dev libxdmcp-dev libglu1-xorg-dev libpng12-dev
libgssapi2 libfontconfig1-dev xtrans-dev libltdl3-dev x11proto-core-dev
libxcursor-dev libglu1-mesa-dev x11proto-randr-dev libgtk2.0-dev libxext-dev
zlib1g-dev libxml2-dev x11proto-input-dev libfreetype6-dev libart-2.0-dev
x11proto-fixes-dev libgnomecanvas2-dev libxau-dev libgtk1.2-dev
libgnomeprintui2.2-dev libgl1-mesa-dev libxrandr-dev libxvmc1 libexpat1-dev
libslang2-dev libxft-dev libpulse0 libx11-dev libxfixes-dev libxinerama-dev
libxine1
Posted: Sat Aug 04, 2007 7:43 pm
by Fred
Ha, you're right, it will be fixed with the next beta release.
Posted: Sat Aug 04, 2007 8:30 pm
by kalaharix
Thank You both !!
Needless to say that has sorted my problem out as well.
(I won't tell you how long I have been at it!)