MySQL Forums
Forum List  »  Connector/C++

cannot compile prepared_statement.cpp
Posted by: tizio incognito
Date: December 10, 2013 05:32AM

Hello to everybody
I'm having problems trying to compile the example prepared_statement.cpp included in the c++ connector sources with Visual Studio 2010, particularly, I get the following errors on this statement:

std::auto_ptr< sql::PreparedStatement > prep_stmt(con->prepareStatement("DROP TABLE IF EXISTS test"));
prep_stmt->execute();

The compiler says that "pointer (prep_stmt) to an incomplete class type is not allowed"

Any clue?
Thanks in advance.

Options: ReplyQuote


Subject
Views
Written By
Posted
cannot compile prepared_statement.cpp
3306
December 10, 2013 05:32AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.