List:MySQL++« Previous MessageNext Message »
From:Chris Gagnon Date:March 22 2005 5:59am
Subject:RE: Linking issues using create macro
View as plain text  
Well in hopes of getting an idea of how to debug this I'll send the actual
errors. They just seem so useless to me because the lines they reference
don't make any sense whatsoever to me.

EOSUniverse.o:/usr/local/include/mysql++/result.h:162: multiple definition
of `EOSUserData::_table'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:17: first defined
here
EOSUniverse.o:/usr/local/include/mysql++/result.h:177: multiple definition
of `EOSUserData::names'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:20: first defined
here
EOSWorld.o:/usr/local/include/mysql++/result.h:162: multiple definition of
`EOSUserData::_table'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:17: first defined
here
EOSWorld.o:/usr/local/include/mysql++/result.h:177: multiple definition of
`EOSUserData::names'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:20: first defined
here
EOSArea.o:/usr/local/include/mysql++/result.h:162: multiple definition of
`EOSUserData::_table'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:17: first defined
here
EOSArea.o:/usr/local/include/mysql++/result.h:177: multiple definition of
`EOSUserData::names'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:20: first defined
here
EOSPlayer.o:/usr/local/include/mysql++/exceptions.h:13: multiple definition
of `EOSUserData::_table'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:17: first defined
here
EOSPlayer.o:/usr/local/include/mysql++/exceptions.h:13: multiple definition
of `EOSUserData::names'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:20: first defined
here
EOSDatabaseMonitor.o: In function `loadUserPartOfPlayerWorker(void*)':
/home/chris/programs/EOSServer/EOSDatabaseMonitor.cpp:31: multiple
definition of `EOSUserData::_table'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:17: first defined
here
EOSDatabaseMonitor.o: In function `loadUserPartOfPlayerWorker(void*)':
/home/chris/programs/EOSServer/EOSDatabaseMonitor.cpp:17: multiple
definition of `EOSUserData::names'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:20: first defined
here
/var/tmp//cct7DamU.o: In function `log_message(char*, char*)':
/home/chris/programs/EOSServer/main.cpp:39: multiple definition of
`EOSUserData::_table'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:17: first defined
here
/var/tmp//cct7DamU.o: In function `log_message(char*, char*)':
/home/chris/programs/EOSServer/main.cpp:42: multiple definition of
`EOSUserData::names'
EOSServer.o:/home/chris/programs/EOSServer/EOSServer.cpp:20: first defined
here
collect2: ld returned 1 exit status
gmake: *** [server] Error 1


Thanks,
Chris

-----Original Message-----
From: Warren Young [mailto:mysqlpp@stripped] 
Sent: Monday, March 21, 2005 10:35 PM
To: MySQL++ Mailing List
Subject: Re: Linking issues using create macro

Chris Gagnon wrote:

> get many(10 or so)
> multiple definition errors when linking all reference the EOSUserData I'm
> tryin to create.

This is a C++ programming problem, not a MySQL++ problem.  Convince 
yourself of the truth of this by dropping your SSQLS declaration into 
one of the example programs and recompiling.

I can't make any more specific comments without seeing the error messages.

-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=1

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.4 - Release Date: 3/18/2005
 

Thread
Linking issues using create macroChris Gagnon20 Mar
Re: Linking issues using create macroWarren Young22 Mar
  • RE: Linking issues using create macroChris Gagnon22 Mar
Re: Linking issues using create macroWarren Young22 Mar
  • RE: Linking issues using create macroChris Gagnon22 Mar
Re: Linking issues using create macroWarren Young23 Mar