Menu

#144 WCHAR on MAC with ODBC driver

cppcms-v1.0.x
closed
None
1
2016-03-14
2016-03-13
Anonymous
No

I get an error in the odbc_backend.cpp when I install ODBC on MAC. The error is related to negative size of the array when SQLWCHAR is WCHAR.

int assert_on_sqlwchar_is_16[sizeof(SQLWCHAR) == 2 ? 1 : -1];

Discussion

  • Artyom Beilis

    Artyom Beilis - 2016-03-14

    You are probably building against iODBC - its whide char does not represet UTF-16 as required per ODBC definition - that is why it isn't supported and you get assertion on building.

    Build cppdb against unixodbc or disable ODBC in general.

     
  • Artyom Beilis

    Artyom Beilis - 2016-03-14
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.