Hi,
I have used created my database application in c++ by using mysql connector c++. Now make a wrapper file, so that I will use use that in my php web appliction. For wrapping it I have used SWIG, but when I complie it with the command that mention below
[root]# c++ -fpic -c Test_wrap.cpp DBConn.cpp -I/usr/include/php/Zend/ -I/usr/include/php/TSRM/ -I/usr/include/php/main -I/usr/include/php/
DBConn.h:130:9: error: ‘Driver’ does not name a type
DBConn.h:131:9: error: ‘Connection’ does not name a type
DBConn.h:132:9: error: ‘Statement’ does not name a type
DBConn.h:133:9: error: ‘PreparedStatement’ does not name a type
DBConn.h:134:3: error: ‘ResultSet’ does not name a type
I got the above error.
So please tell me how to link with mysql library from cli because I tried it so much.
Thanks,
Antrikssh.