- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Connection to Mysql database from C or C++
Operating System - HP-UX
1821060
Members
2574
Online
109631
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2004 03:40 PM
тАО10-04-2004 03:40 PM
Connection to Mysql database from C or C++
Hi,
Has anyone tried connecting to Mysql database from C or C++. I have the code I am not sure how to make it work. Compile and execute.
I am on HP-UX 11.23i ,rx2600, 64 bit machine Itanium processor.
Any help appreciated.
Thank you,
Vinay
Has anyone tried connecting to Mysql database from C or C++. I have the code I am not sure how to make it work. Compile and execute.
I am on HP-UX 11.23i ,rx2600, 64 bit machine Itanium processor.
Any help appreciated.
Thank you,
Vinay
- Tags:
- mysql
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2004 05:15 PM
тАО10-05-2004 05:15 PM
Re: Connection to Mysql database from C or C++
Hi,
for me MySQL would be worthless without C interface.
I didn't test it with HPUX until now, but this works fine with LINUX :
CFG=/usr/bin/mysql_config
sh -c "gcc -o Prog.r '$CFG --cflags' Prog.c '$CFG --libs'"
where Prog.c is your source code.
Unfortunatley there is no precomiler in MySQL, yet (only experimental). So you must use c-libs in your code.
But speed is very nice !!
for me MySQL would be worthless without C interface.
I didn't test it with HPUX until now, but this works fine with LINUX :
CFG=/usr/bin/mysql_config
sh -c "gcc -o Prog.r '$CFG --cflags' Prog.c '$CFG --libs'"
where Prog.c is your source code.
Unfortunatley there is no precomiler in MySQL, yet (only experimental). So you must use c-libs in your code.
But speed is very nice !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 12:56 AM
тАО10-06-2004 12:56 AM
Re: Connection to Mysql database from C or C++
Werner,
I get the following error with the command.
$ sh "cc -o testmy `mysql_config --cflags` testmy.c `mysql_config --libs`"
ld: Can't find library or mismatched ABI for -lmysqlclient
Fatal error.
Is there anything wrong with thge library.
Thank You,
Vinay
I get the following error with the command.
$ sh "cc -o testmy `mysql_config --cflags` testmy.c `mysql_config --libs`"
ld: Can't find library or mismatched ABI for -lmysqlclient
Fatal error.
Is there anything wrong with thge library.
Thank You,
Vinay
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP