Red Squirrel
No Lifer
I have this program which unfortunately uses dependencies, I'd have to code my own sql connector to get away from that. And this is the reason why I hate using dependencies... for whatever reason something stopped working despite the code not changing. It's a pretty big program so it would be hard to post the whole thing but I'm hoping someone can make sense of this error:
This is line 55:
m_row is a Row which is part of the mysql++ library, which is what is giving me trouble, they probably went and changed something.
the first argument of client takes a string and the second one takes an int. The expected result of the first row entry is a string and second result is an int.
This worked before, but something must have changed.
Anyone familiar with mysql++ library could tell me why it's doing this?
Code:
In file included from sources.h:1,
from poller.cpp:35:
includes/ShardListEntry.cpp: In member function ‘void ShardListEntry::Poll()’:
includes/ShardListEntry.cpp:55: error: size of array ‘m_row’ has non-integral type ‘const char [13]’
This is line 55:
Code:
SocketClient client(string(m_row["slogonserver"]),(int)m_row["slogonport"]);
m_row is a Row which is part of the mysql++ library, which is what is giving me trouble, they probably went and changed something.
the first argument of client takes a string and the second one takes an int. The expected result of the first row entry is a string and second result is an int.
This worked before, but something must have changed.
Anyone familiar with mysql++ library could tell me why it's doing this?
Last edited: