Mail Archives: djgpp/1999/02/01/07:28:56
From: | "Alberto Chessa" <achessa AT fiar DOT finmeccanica DOT it>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Rhide: multiple definition of...
|
Date: | 1 Feb 1999 11:52:04 GMT
|
Organization: | TIN
|
Lines: | 26
|
Message-ID: | <01be4dd9$50344f40$92c809c0@chessa>
|
NNTP-Posting-Host: | a-mi52-57.tin.it
|
X-Newsreader: | Microsoft Internet News 4.70.1161
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
I get the following errors linking with Rhide:
Error: gfd.o: In function 'gfd_bitmap_c::RawGetPixel(int, int)
gfd.cc(403) Error: multiple definition of 'gfd_bitmap_c::RawGetPixel(int,
int)':
o:gfd.cc (403) Error:first defined here
While It's all Ok linking from command line (gcc -o gfd.exe gfd.o -lstdcxx
- exactly the same command used by rhide) and the program runs without
problems at all.
Note that RawGetPixel() is a virutal function and I get the same error for
all the virtual methods of my class gfd_bitmap_c. I have two classes based
on class gfd_bitmat_c, implemented and defined in the same files of the
base class (gfd.h and gfd.cc).
Regardless the corretness of my code, why rhide and gcc (or gxx) give
different result on the same command ?
Rhide 1.4 (Sep 30 1997)
GCC 2.7.2.1
Thanks in advance
--
Alberto Chessa achessa AT fiar DOT finmeccanica DOT it
- Raw text -