Click here to Skip to main content
16,004,453 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I got the following compilation error while compiling a project that uses C++ Connector. What is the solution?

The link is: [^]




I had been using sqlite for a certain app but recently found out that sqlite could not handle the concurrency requirement of the app. I actually made use of the CppSQLite C++ wrapper. This discovery was most disheartening because I had written SEVERAL wolds of CppSQLite base code in the app and I just couldn't afford to start all over again.

But then I hit on the I idea to wrap CppSQLite around C++ connector. That decision saved my code and my many many months of invested time. I just simply changed the content of CppSQLite to the equivalent C++ connector version by so doing all codes that depended on that class remained valid.

But when I attempted to compile the code, I got a most bizarre set of esoteric compilation errors.

Remember that I did not rewrite my codes. I only rewrote a wrapper class so I could not pinpoint a specific cause of the errors.

The app have more than a hundred dll's and they all report this same set of errors.

A closer look revealled that the error was being generated by C++ Connector's SQLException class.

Not knowing what to do, I copies part of the error messages and used them for Google search and I was pleasantly surprise to the same error my compiler was reporting on MySQL website. The error my compiler reported and the one on MySQL the site, whose link is shown above, were I identical. No difference.

So I felt that for the errors to be online and not just online, but on MySQL's site, it must mean then that it is that it is a common error that often occurs with using C++ connector. That is why I posted just a link to that page on MySQL site believing people will find it familiar. Well, I guess I was wrong.

Here is a link to a githhub copy of the class.

[^]


The private memeber " MEMORY_ALLOC_OPERATORS(SQLException)" was also an important source of error.

I do not have any personal code to display for this error. As explained above, the error is not from my code, but from C++ Connector's code. And if you think they are from my code; the truth is: I dont have an idea how I can locate such an error from my code.

I am still very much interested in the solution to this problem.

Thanks
Posted
Updated 2-Sep-15 15:01pm
v2
Comments
Richard MacCutchan 3-Sep-15 3:25am    
the error is not from my code, but from C++ Connector's code.
Then you know who to contact.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900