Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

![]() |
![]() |
![]() |

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