You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then all exported structs, classes , enums, and functions should be declared with it, eg:
structSQLParser_API SQLStatement {
// ...
}
In flex_lexer.h, I "quick and dirty" added #include <io.h> :
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option.*/
#if defined(_WIN32) || defined(_WIN64)
#include<io.h>
#else
#include<unistd.h>
#endif
#endif
And that was it - it works on Windows.
I could send a PR, but we need this properly multi-platformed and some features supported, most notably stored procedures. If there is anyone on the project team here interested in some paid project work, please contact me at(alex, dot(pocoproject, org)
EDIT: there's also this problem on Windows with SQLParserResult::statements_ and SQLParserResult::parameters_. I tried this solution and it seems to work fine.
The text was updated successfully, but these errors were encountered:
I managed to compile and run on windows, here are the changes
this should be in a header included by all public-facing files (there seems to be no such top-level header currently):
and then all exported structs, classes , enums, and functions should be declared with it, eg:
In
flex_lexer.h
, I "quick and dirty" added#include <io.h>
:And that was it - it works on Windows.
I could send a PR, but we need this properly multi-platformed and some features supported, most notably stored procedures. If there is anyone on the project team here interested in some paid project work, please contact me
at(alex, dot(pocoproject, org)
EDIT: there's also this problem on Windows with
SQLParserResult::statements_
andSQLParserResult::parameters_
. I tried this solution and it seems to work fine.The text was updated successfully, but these errors were encountered: