Multiple Definition(Database)[Link Error]

Linux specific forum
SunSatION
User
User
Posts: 85
Joined: Tue Jun 21, 2005 7:26 pm
Location: Malta

Multiple Definition(Database)[Link Error]

Post 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
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Could you paste the full error message ? Note: you need the IODBC-dev package to be able to use the database lib.
kalaharix
New User
New User
Posts: 8
Joined: Sat Aug 04, 2007 4:05 pm
Location: Buckinghamshire, UK

Post 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?
SunSatION
User
User
Posts: 85
Joined: Tue Jun 21, 2005 7:26 pm
Location: Malta

Post 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
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Ha, you're right, it will be fixed with the next beta release.
kalaharix
New User
New User
Posts: 8
Joined: Sat Aug 04, 2007 4:05 pm
Location: Buckinghamshire, UK

Post 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!)
Post Reply