Gary Kunkel - 2023-06-03

Thanks for finding this.
Your update will be included in the next release.
Gary

On Friday, June 2, 2023 at 01:09:22 AM CDT, Brecht Sanders <brechtsanders@users.sourceforge.net> wrote:

[patches:#8] undefined reference to `xb::operator<<(std::ostream&, xb::xbString const&)

Status: open
Group:
Created: Fri Jun 02, 2023 06:09 AM UTC by Brecht Sanders
Last Updated: Fri Jun 02, 2023 06:09 AM UTC
Owner: nobody

I got the following error when building version 4.1.4 with MinGW-w64:

D:/Prog/winlibs64-13.1.0msvcrt/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles/xb_execsql.dir/R_/winlibs64-13.1.0msvcrt/xbase64-4.1.4/src/utils/xb_execsql.cpp.obj: in function `GetNextSqlCmd(xb::xbFile&, xb::xbString&, short)':
R:/winlibs64-13.1.0msvcrt/xbase64-4.1.4/src/utils/xb_execsql.cpp:44: undefined reference to `xb::operator<<(std::ostream&, xb::xbString const&)'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

This can be fixed by changing the following line in src/include/xbstring.h:

friend std::ostream& operator<< ( std::ostream& os, const xbString& s );

to:

XBDLLEXPORT friend std::ostream& operator<< ( std::ostream& os, const xbString& s );

Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/xdb/patches/8/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

 

Related

Patches: #8