image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old February 26th, 2004, 04:43 PM
Registered User
 
Join Date: Mar 2003
Location: Paris
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Belaran is on a distinguished road
Unhappy PB with the MySQL C API

Hi !

I would like to create a C applications working with MySQL database.
I downloaded the Ch api for iODBC provided by MySQL.com but somehow it doesn't seems to work out...
I can invoke ch ( i've to use the "sudo" command although) but when i try to compile one of the sample example of the package :

ld: Undefined symbols:
_SQLAllocHandle
_SQLError
_SQLFreeHandle
_SQLSetConnectAttr
_SQLSetEnvAttr

It seems that iODBC package isn't installed !

My questions are :
-Why did i do wrong ?
-MySQL says that C API are provided with the MySQL server, so how can we use it ?

Belaran

PS : I'm using a iMac G3 with 10.3 (panther).



Reply With Quote
  #2  
Old February 27th, 2004, 06:46 AM
rhg rhg is offline
Registered User
 
Join Date: Dec 2002
Location: Velbert, Germany
Posts: 220
Thanks: 0
Thanked 0 Times in 0 Posts
rhg is on a distinguished road
Did you link against the libiodbc.a?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 09:18 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.