6 messages in com.mysql.lists.plusplusProblem linking multiple files with M...
FromSent OnAttachments
Warren Young12 Jan 2005 08:19 
Zahroof Mohamed13 Jan 2005 16:14 
Ibrahim Mubarak15 Jan 2005 09:25 
Zahroof Mohamed15 Jan 2005 20:25 
Ibrahim Mubarak17 Jan 2005 09:44 
Warren Young17 Jan 2005 18:17 
Subject:Problem linking multiple files with MySQLpp dll
From:Zahroof Mohamed (zahr@gmail.com)
Date:01/15/2005 08:25:19 PM
List:com.mysql.lists.plusplus

I'm using MingW on Win2K. Mysql++ 1.7.23. Using MingW Developer Studio for creating projects and as a programming IDE.

Created a number of projects with a single header and source file and linked it to the MySQLpp dll without any problem. However, when I create a project with more than one set of header and source files, I have the following link errors. Would greatly appreciate it if you could provide some pointers.

Linking... C:\Zahroof\EAZ\Flow_Entrance\Debug\GradContract.o(.text+0x116): In function `ZNK7mysqlpp3RowixEj': C:\Zahroof\Libraries\mysql++-1.7.23\lib\row2.h:14: multiple definition of `mysqlpp::Row::operator[](unsigned int) const' C:\Zahroof\EAZ\Flow_Entrance\Debug\Entrance.o(.text+0x116):C:\Zahroof\Libraries\mysql++-1.7.23\lib\row2.h:14: first defined here C:\Zahroof\EAZ\Flow_Entrance\Debug\GradContract.o(.text+0x296): In function `ZNK7mysqlpp3Row14lookup_by_nameEPKc': C:\Zahroof\Libraries\mysql++-1.7.23\lib\row2.h:23: multiple definition of `mysqlpp::Row::lookup_by_name(char const*) const' C:\Zahroof\EAZ\Flow_Entrance\Debug\Entrance.o(.text+0x296):C:\Zahroof\Libraries\mysql++-1.7.23\lib\row2.h:23: first defined here C:\Zahroof\EAZ\Flow_Entrance\Debug\GradContract.o(.text+0x100): In function `ZNK7mysqlpp3Row4sizeEv': C:\Zahroof\Libraries\mysql++-1.7.23\lib\row2.h:9: multiple definition of `mysqlpp::Row::size() const' \Libraries\mysql++-1.7.23\lib\row2.h:9: first defined here Creating library file: C:\Zahroof\EAZ\Flow_Entrance\Debug\libFlow_Entrance.dll.a collect2: ld returned 1 exit status

Flow_Entrance.dll - 6 error(s), 0 warning(s)

Thanks, Zahroof