Mike Holmquist writes:
> Ok, i downloaded the mysql++-1.7.8-1.i386.rpm
> <ftp://ftp.rpmfind.net/linux/MySQL/mysql++/mysql++-1.7.8-1.i386.rpm> rpm
> file from RpmFind.net. I have mysql installed already on my machine, o
> ya and im running linux. I have gcc installed, version 2.96, i think
> everything installed correctly when i ran the rpm. But i am not sure. I
> made a simple program, here it is:
>
> #include <sqlplus.hh>
>
> int main() {
>
>
> return 0;
> }
>
> When i tried to compile it using "g++ mysql.cpp" i got a bunch of errors
> saying "mysql.h not found" (errors are printed on bottom of email). So i
> tried doing a "locate mysql.h" and it only found the mysql.h file from
> my windows partition (i have mysql++ installed on windows...).
>
> I am not sure if its my compiler, or the version of mysql++ i installed.
>
> Another question i have is it says to reset my database using reset-db,
> where would i do that? The mysql command line?
>
> If anyone can help me, give me some ideas if my install went wrong, or
> if i need to update gcc, or get a different compiler (i dont know any
> for linux yet! ) id appreciate it very much!
>
> ~Mike
>
>
HI!
The errors are caused by MySQL++ not seeing MySQL++ include directory.
In your Makefile add -I.. directive for include directory and
-L.. directive for lib directory.
--
Regards,
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php