I've read some previous posts about compilation issues, but they don't
seem to pertain to my problem. I have a class declaration in which some
private functions pass a vector of SSQLS type. During compilation, my
compiler returns: "multiple definition of log::names" and "multiple
definition of log::_table" errors. Not sure if it matters, but I am
compiling on FreeBSD using g++ (3.4.2) and mysql++ 1.7.40.
Here are the relevant items from my class declaration:
Outside of my class type I use the sql_create to build the structure.
sql_create_12(log,
1,12,
int, serialnumber,
.......
.......)
Inside of my class declaration, I have the function:
print_log(vector<log> log_vector);
The only reason I need this SSQLS defined inside my class declaration file
is so that this function knows the data type being passed. Before I
started building this class, I had a test program running using this
structure. It compiled and ran with no errors in the exact manner in
which I wanted.
Is this possible to do? Can I use this SSQLS inside my class like this?
If so, how? If not, what kind of hack-a-rounds can I do to make it work?
Any and all help would be very much appreciated,
Billy