Dear all, Can someone please help me???
I'm getting errors compiling MySQL++ libs on Solaris 2.7 using Sun Workshop 5.0 compiler. I've built the C client libs/api successfully using the following configure command ( & then done make, make install ) configure CC="/opt/SUNWspro/bin/cc" CFLAGS="-Xa -fast -native -xstrconst -mt" CXX="/opt/SUNWspro/bin/CC" CXXFLAGS="-mt" --prefix="/home/apatel/mysqlapi" --enable-assembler --without-server The following environment variables were set for the compiler options. CC="/opt/SUNWspro/bin/cc" CFLAGS="-Xa -fast -native -xstrconst -mt" CXX="/opt/SUNWspro/bin/CC" CXXFLAGS="-mt" I've tried building the MySQL++ libs/api using the following command configure --prefix="/home/apatel/mysql++" --with-mysql="/home/apatel/mysqlapi" --with-mysql-lib="/home/apatel/mysqlapi/lib" --with-mysql-include="/home/apatel/mysqlapi/include" --enable-exception But I get the following compile errors after doing make /opt/SUNWspro/bin/CC -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../sqlplusint -I/home/apatel/mysqlapi/include/mysql -mt -Wp,-MD,.deps/coldata.pp -c -KPIC -DPIC coldata.cc -o coldata.o CC: Warning: Option -Wp,-MD,.deps/coldata.pp passed to ld, if ld is invoked, ignored otherwise "const_string1.hh", line 50: Error: The function "out_of_range" must have a prototype. "const_string1.hh", line 70: Error: "inline" is not allowed here. "const_string1.hh", line 70: Error: "," expected instead of "&". "const_string1.hh", line 72: Error: A declaration was expected instead of "}". "exceptions.hh", line 14: Error: exception is not defined. "exceptions.hh", line 16: Error: ")" expected instead of "&". "exceptions.hh", line 16: Error: error is not a member of MysqlBadQuery. "exceptions.hh", line 16: Warning: The constant member string is not initialized. "exceptions.hh", line 22: Error: exception is not defined. "exceptions.hh", line 23: Error: "," expected instead of "_what". "exceptions.hh", line 24: Error: Use ";" to terminate declarations. "exceptions.hh", line 26: Error: Multiple declaration for string. "exceptions.hh", line 26: Error: "," expected instead of "data". "exceptions.hh", line 27: Error: Use ";" to terminate declarations. "exceptions.hh", line 33: Error: ")" expected instead of "&". "exceptions.hh", line 30: Error: _what is not a member of MysqlBadConversion. "exceptions.hh", line 31: Error: data is not a member of MysqlBadConversion. "exceptions.hh", line 31: Warning: The constant member string is not initialized. "exceptions.hh", line 34: Error: _what is not a member of MysqlBadConversion. "exceptions.hh", line 34: Error: data is not a member of MysqlBadConversion. "exceptions.hh", line 34: Warning: The constant member string is not initialized. "exceptions.hh", line 37: Error: _what is not a member of MysqlBadConversion. "exceptions.hh", line 37: Error: data is not a member of MysqlBadConversion. "exceptions.hh", line 37: Warning: The constant member string is not initialized. "exceptions.hh", line 44: Error: exception is not defined. "exceptions.hh", line 45: Error: "," expected instead of "_what". "exceptions.hh", line 46: Error: Use ";" to terminate declarations. "exceptions.hh", line 47: Error: ")" expected instead of "&". "exceptions.hh", line 47: Error: _what is not a member of BadNullConversion. Compilation aborted, too many Error messages. make[2]: *** [coldata.lo] Error 1 make[2]: Leaving directory `/home/apatel/mysql++-1.7.9/sqlplusint' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/apatel/mysql++-1.7.9' make: *** [all-recursive-am] Error 2 If anybody can help it would be greatly appreciated. Thanks in advance. Arvind Patel -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]