I think you need to do a couple of things here.
First, the patch should be one directory BELOW your mysql++ directory
Second, Do NOT rename your mysql++ directory after un-tarring the source
or the patch file will not find it.
third, cd into the mysql++-1.7.9 directory and do exactly this:
[root@surveys mysql++-1.7.9]# patch -p 1 < ../mysql++-gcc-3.0.patch
Hope this helps.
> I have a problem, i have downloaded the patch files from the mysql.com web
> site. When i want patch the file i used (under red hat 9.0):
>> patch p1 < mysql__-gcc-3.0.patch
> mysql__-gcc-3.2.2.patch mysql__-gcc-3.2.patch
> mysql__-gcc-3.2.2.patch.gz mysql__-gcc-3.2.patch.gz
> [root@localhost mysql++]# patch -p1 < mysql__-gcc-3.2.2.patch
> can't find file to patch at input line 4
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> |diff -ur mysql++-1.7.9/sqlplusint/connection.cc
> |--- mysql++-1.7.9/sqlplusint/connection.cc 2003-04-16
> 12:22:56.000000000 -0
> |+++ mysql++-1.7.9.patched/sqlplusint/connection.cc 2003-04-16
> 00000 -0400
> File to patch:
> but this patch ask me for a file to patch, what is this file???
> I also installed the rpm for red hat 9, and i try to compile the a simple
> example from the web page, but not compile. the errors are too much to
> write here.
> i compile with: gcc -I/usr/include/sqlplus/ prueba.cpp
> can anybody help me?
> thanks a lot.