Computing.Net > Forums > Unix > FreeBSD MySQL++ (not from ports)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FreeBSD MySQL++ (not from ports)

Reply to Message Icon

Name: endymion2k5
Date: March 13, 2007 at 12:15:40 Pacific
OS: FreeBSD 6.2
CPU/Ram: Dual p3
Product: Proliant
Comment:

Im trying to write some sort of server that waits for incomming connections and checks for a Login/Password. This is based on C++. The server side isnt the problem, its working like a charm. Altho i want to check the Login/Password against a MySQL database. This is where it goes wrong.

Ive compiled the newest MySQL++ version without any problems. I just cant figure out how to include it. Ive tried most examples that MySQL++ delivers, wich do not even compile. Ive tried various codes based on the MySQL++ and neither will compile. Ive tried various ways including these "#include <mysql++.h>","#include <sqlplus.hh>","g++ -I/usr/local/share/mysql++ filename.cpp -o filename". If i give up the full path to the file "#include "/usr/local/include/mysql++/mysql++.h"" it seems to work, but when i add the MySQL code it wont compile hanging on everything not defined (the whole mysql code).

Since the examples do not compile, and cant even find the mysql++.h, i guess that somehow gcc does not see the <files> that are included, wich means i got to change all the <> to full paths.

Is there any thing im overlooking? Anybody with experience in this area?

Thanks in advance.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: FreeBSD MySQL++ (not from ports)

install freebsd 5.0 with intel 875P www.computing.net/answers/unix/install-freebsd-50-with-intel-875p/5514.html

script for reading directly from port www.computing.net/answers/unix/script-for-reading-directly-from-port/272.html

Move x11 from 6000 to another port www.computing.net/answers/unix/move-x11-from-6000-to-another-port/3651.html