NetXMS 0.2.20 compilation
-
Hello, Victor!
I am trying to compile netxms 0.2.20 witch odbc support. during compilation the system says:
odbc.cpp: In function 'void* DrvSelect(ODBCDRV_CONN*, WCHAR*, DWORD*)':
odbc.cpp:250: error: cannot convert 'const WCHAR*' to 'const wchar_t*' for argument '1' to 'wchar_t* wcsdup(const wchar_t*)'
odbc.cpp: In function 'LONG DrvGetFieldLength(ODBCDRV_QUERY_RESULT*, int, int)':
odbc.cpp:284: error: cannot convert 'WCHAR*' to 'const wchar_t*' for argument '1' to 'size_t wcslen(const wchar_t*)'
odbc.cpp: In function 'WCHAR* DrvGetField(ODBCDRV_QUERY_RESULT*, int, int, WCHAR*, int)':
odbc.cpp:304: error: cannot convert 'WCHAR*' to 'wchar_t*' for argument '1' to 'wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t)'
make[5]: *** [odbc.lo] Error 1
What can be the cause of this?Interesting that netxms 0.2.19 compiles without problems.
-
Hi!
We have changed UNICODE support in 0.2.20 - this should be the cause. I'll take a look at this today. Could you please post config.log here or send it to [email protected]?
Best regards,
Victor -
-
Main problem is to find Linux ODBC driver for MS SQL. Second is to configure unixODBC. There are some useful links from unixODBC site:
http://www.unixodbc.org/odbcinst.html
http://www.unixodbc.org/config.htmlPlease note that FreeTDS mosy likely will not work because it doesn't support UNICODE ODBC interface.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login