This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
template + mysql++
- To: gcc at gcc dot gnu dot org
- Subject: template + mysql++
- From: Pragneshkumar Gandhi <pragneshkumar at yahoo dot com>
- Date: Thu, 18 Jan 2001 21:07:29 -0800 (PST)
Hi All
I am facing following compling as well linking
errors.
I am using gcc version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)
plus using mysql++ api for database updation.
i am using template class for updating database
through mysql++.
And i am getting the following errors
/usr/include/g++-2/stl_algobase.h: In instantiation of
`min<size_t>(cons
t size_t &, const size_t &)':
/usr/include/g++-2/stl_algobase.h:371:
instantiated from here
In file included from
/usr/include/g++-2/algorithm:30,
from virtExch.hh:8,
from vServer.cc:3:
/usr/include/g++-2/stl_algobase.h:86: warning:
template `const T & min(c
onst T &, const T &)' defined in file without #pragma
interface
match.o: In function `mysql_dt_base type_info
function':
/usr/include/g++-2/mysql++/null1.hh(.data+0x0):
multiple definition of `
EXCH_TRANSACTIONS::names'
vServer.o(.data+0x0):vServer.cc: first de
fined here
match.o: In function `mysql_dt_base type_info
function':
/usr/include/g++-2/mysql++/null1.hh(.data+0x14):
multiple definition of
`EXCH_TRANSACTIONS::_table'
vServer.o(.data+0x14):
vServer.cc:
first d
efined here
match.o: In function `mysql_dt_base type_info
function':
PLUS MANY MORE...
I did try out compling with -fexternal-templates but no
help.
if anybody knows the solution to compling the template
class, please help.
thanks for your help in advance.
plus can anybody suggest me that how can i use
#pragma implementation' (the definition) or
`#pragma
interface' (declarations).
in my code.
bye and Have a nice time.
=====
..... Never ever Give Up .....AND .........
...............................Live Life Like King Size.....
FROM
PRAGNESHKUMAR GANDHI
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/