19 messages in com.mysql.lists.plusplusSSQLS contained within class definiti...| From | Sent On | Attachments |
|---|---|---|
| will...@gsa.gov | 25 Oct 2005 11:49 | |
| Alex Vishnev | 25 Oct 2005 12:14 | |
| Earl Miles | 25 Oct 2005 12:26 | |
| Alex Vishnev | 25 Oct 2005 13:01 | |
| will...@gsa.gov | 25 Oct 2005 13:07 | |
| Alex Vishnev | 25 Oct 2005 17:10 | |
| Chris Frey | 26 Oct 2005 10:40 | |
| Earl Miles | 26 Oct 2005 10:46 | |
| Chris Frey | 26 Oct 2005 11:11 | |
| Alex Vishnev | 26 Oct 2005 11:34 | |
| Earl Miles | 26 Oct 2005 11:41 | |
| Chris Frey | 26 Oct 2005 12:42 | |
| Warren Young | 26 Oct 2005 22:50 | |
| Warren Young | 26 Oct 2005 22:53 | |
| Warren Young | 26 Oct 2005 22:57 | |
| Alex Vishnev | 27 Oct 2005 06:35 | |
| Warren Young | 27 Oct 2005 06:37 | |
| ahnkle | 28 Oct 2005 12:08 | |
| Fabricio Mota | 29 Oct 2005 05:20 |
| Subject: | SSQLS contained within class definition compilation issues![]() |
|---|---|
| From: | will...@gsa.gov (will...@gsa.gov) |
| Date: | 10/25/2005 11:49:04 AM |
| List: | com.mysql.lists.plusplus |
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




