1 message in com.mysql.lists.plusplusLinking problems :((
FromSent OnAttachments
Ralf Buhlrich30 Mar 2001 00:15 
Subject:Linking problems :((
From:Ralf Buhlrich (buhl@stn-atlas.de)
Date:03/30/2001 12:15:45 AM
List:com.mysql.lists.plusplus

I wrote a class using the C++ API. I use the sql_create_X structures, when I put these structures in the header and I include this header file in my main file, I get get these errors:

ew_admin_insert.o(.data+0x0): multiple definition of `topic::names' query.o(.data+0x0): first defined here new_admin_insert.o(.data+0xc): multiple definition of `topic::_table' query.o(.data+0xc): first defined here new_admin_insert.o(.data+0x10): multiple definition of `faq::names' query.o(.data+0x10): first defined here new_admin_insert.o(.data+0x24): multiple definition of `faq::_table' query.o(.data+0x24): first defined here new_admin_insert.o(.data+0x28): multiple definition of `user_auth::names' query.o(.data+0x28): first defined here new_admin_insert.o(.data+0x38): multiple definition of `user_auth::_table' query.o(.data+0x38): first defined here collect2: ld returned 1 exit status gmake: *** [all] Error 1

If I include the structures only in the .cpp file of my class, my main file doesn't know anything about my structures and gives back an error.

How can I solve this problem.

Regards

Ralf