I am doing a UNICODE project and boy am I finding a lot of non-unicode ...er... code. So No big deal, just go through and change all constant strings to _("") or wxT("") strings. Time consuming, but no big deal. Then suddenly I wanted to build the demo. The generator and writer compile just fine into the libraries. Not a biggie at all.
But the demo adds the databaselayer aspect to it. While I have databaselayer compiled under a separate project (my full project will use sqlite3, mysql, or ODBC depending on the end user's wishes and needs) I can't get the demo to compile.
The reasons it won't compile are weird to. So.. here goes.
Errors:
Code: Select all
..\..\reportgen\include\wxReportWriter.h|25|error: `ULONG' does not name a type|
..\..\reportgen\include\wxReportWriter.h|26|error: `USHORT' does not name a type|
..\..\reportgen\include\wxReportWriter.h|28|error: `UWORD' does not name a type|
..\..\reportgen\include\wxReportWriter.h|29|error: `ULONG' does not name a type|
..\..\reportgen\include\wxReportWriter.h|30|error: `UDWORD' does not name a type|
..\..\reportgen\include\wxReportWriter.h|33|error: `SQLUSMALLINT' does not name a type|
..\..\reportgen\include\wxReportWriter.h|34|error: `SQLUSMALLINT' does not name a type|
..\..\reportgen\include\wxReportWriter.h|35|error: `SQLUSMALLINT' does not name a type|
..\..\reportgen\include\wxReportWriter.h|36|error: `SQLUSMALLINT' does not name a type|
..\..\reportgen\include\wxReportWriter.h|37|error: `SQLUSMALLINT' does not name a type|
..\..\reportgen\include\wxReportWriter.h|38|error: `SQLUINTEGER' does not name a type|
..\..\reportgen\include\wxReportWriter.h|152|error: `wxPoint' does not name a type|
..\..\reportgen\include\wxReportWriter.h|153|error: `wxSize' does not name a type|
..\..\reportgen\include\wxReportWriter.h|154|error: `wxSize' does not name a type|
..\..\reportgen\include\wxReportWriter.h|155|error: `wxPoint' does not name a type|
..\..\reportgen\include\wxReportWriter.h|203|error: ISO C++ forbids declaration of `wxPoint' with no type|
..\..\reportgen\include\wxReportWriter.h|203|error: expected `;' before '&' token|
..\..\reportgen\include\wxReportWriter.h|204|error: ISO C++ forbids declaration of `wxSize' with no type|
..\..\reportgen\include\wxReportWriter.h|204|error: expected `;' before '&' token|
..\..\reportgen\include\wxReportWriter.h|205|error: ISO C++ forbids declaration of `wxSize' with no type|
..\..\reportgen\include\wxReportWriter.h|205|error: expected `;' before '&' token|
..\..\reportgen\include\wxReportWriter.h|206|error: ISO C++ forbids declaration of `wxPoint' with no type|
..\..\reportgen\include\wxReportWriter.h|206|error: expected `;' before '&' token|
..\..\reportgen\include\wxReportWriter.h|216|error: ISO C++ forbids declaration of `wxPoint' with no type|
..\..\reportgen\include\wxReportWriter.h|216|error: expected `;' before '&' token|
..\..\reportgen\include\wxReportWriter.h|217|error: ISO C++ forbids declaration of `wxPoint' with no type|
..\..\reportgen\include\wxReportWriter.h|217|error: expected `;' before '&' token|
..\..\reportgen\include\wxReportWriter.h|221|error: `wxPoint' has not been declared|
..\..\reportgen\include\wxReportWriter.h|221|error: ISO C++ forbids declaration of `pt' with no type|
..\..\reportgen\include\wxReportWriter.h||In member function `void wxReportObj::SetCurrPos(int)':|
..\..\reportgen\include\wxReportWriter.h|221|error: `m_ptCurrPos' was not declared in this scope|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp||In member function `virtual bool wxDbLayerHandler::GetSectionData(wxReportDataSection*, wxReportFiller*)':|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|44|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|51|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|60|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|69|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|78|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|88|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|95|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|102|error: conversion from `const char[10]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|102|error: no matching function for call to `wxReportFiller::FilterVariableString(const wxCharBuffer)'|
..\..\reportgen\include\wxReportFiller.h|145|note: candidates are: wxString wxReportFiller::FilterVariableString(wxString)|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|110|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|183|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|183|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|191|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|201|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|201|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|209|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp||In member function `virtual bool wxDbLayerHandler::LoadSectionProperties(wxXmlNodeEx*, wxReportDataSection*)':|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|227|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|229|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|231|error: conversion from `const char[7]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|234|error: conversion from `const char[5]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|236|error: conversion from `const char[5]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|238|error: conversion from `const char[9]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|240|error: conversion from `const char[9]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|247|error: conversion from `const char[10]' to `const wxString' is ambiguous|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|693|note: candidates are: wxString::wxString(wxChar, size_t) <near match>|
C:\dev\wx\wxWidgets-2.8.10\include\wx\string.h|682|note: wxString::wxString(int) <near match>|
C:\dev\wxReportWriter\reportdemo\src\wxDbLayerHandler.cpp|258|warning: cannot pass objects of non-POD type `const class wxCharBuffer' through `...'; call will abort at runtime|
||=== Build finished: 45 errors, 10 warnings ===|
||=== Build finished: 45 errors, 10 warnings ===|