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

FreeBSD MySQL++ (not from ports)

Reply to Message Icon

Original Message
Name: endymion2k5
Date: March 13, 2007 at 12:15:40 Pacific
Subject: FreeBSD MySQL++ (not from ports)
OS: FreeBSD 6.2
CPU/Ram: Dual p3
Model/Manufacturer: 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.


Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: FreeBSD MySQL++ (not from ports)

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge