www.digitalmars.com         C & C++   DMDScript  

c++ - std::exception prev def different in snn.lib

reply "Wichetael" <wichetael gmx.net> writes:
Hi another problem I'm having...

The problem is that I don't know which change triggered it and everything
I've tried to find out what is causing it has come up empty, so now I get
these previous definition different errors during linking:

SNN.lib(except)  Offset 0791FH Record Type 00C3 Error 1: Previous Definition
Different : ??1exception std  UAE XZ (syscall std:
:exception::~exception(void ))
SNN.lib(except)  Offset 07A1AH Record Type 00C3 Error 1: Previous Definition
Different : ?what exception std  UBEPBDXZ (char co
nst *syscall std::exception::what(void )const )
SNN.lib(except)  Offset 07B11H Record Type 00C3 Error 1: Previous Definition
Different : ??1bad_exception std  UAE XZ (syscall
std::bad_exception::~bad_exception(void ))
SNN.lib(except)  Offset 07BCFH Record Type 00C3 Error 1: Previous Definition
Different : ?what bad_exception std  UBEPBDXZ (cha
r const *syscall std::bad_exception::what(void )const )

I've tried leaving out all libs from the compile, I've tried reverting all
the code changes I remember making between the last successful compile and
now, I've tried reverting back to dmc834c as I'd just updated to dmc837c and
I've tried renaming everything within my code with anything of a name even
remotely resembling exception to something else, but none of it solved my
problem...  I'm completely stumped, I have no idea where this could come
from, anybody any idea where I should be looking...

Regards,

Remko van der Vossen
Oct 21 2003
parent reply "Walter" <walter digitalmars.com> writes:
It means that the symbols listed are there more than once in your library or
.obj files, i.e. there are multiple definitions of the same symbols. I would
start by deleting snn.lib and downloading it again.

"Wichetael" <wichetael gmx.net> wrote in message
news:bn2qpf$abt$1 digitaldaemon.com...
 Hi another problem I'm having...

 The problem is that I don't know which change triggered it and everything
 I've tried to find out what is causing it has come up empty, so now I get
 these previous definition different errors during linking:

 SNN.lib(except)  Offset 0791FH Record Type 00C3 Error 1: Previous
Definition
 Different : ??1exception std  UAE XZ (syscall std:
 :exception::~exception(void ))
 SNN.lib(except)  Offset 07A1AH Record Type 00C3 Error 1: Previous
Definition
 Different : ?what exception std  UBEPBDXZ (char co
 nst *syscall std::exception::what(void )const )
 SNN.lib(except)  Offset 07B11H Record Type 00C3 Error 1: Previous
Definition
 Different : ??1bad_exception std  UAE XZ (syscall
 std::bad_exception::~bad_exception(void ))
 SNN.lib(except)  Offset 07BCFH Record Type 00C3 Error 1: Previous
Definition
 Different : ?what bad_exception std  UBEPBDXZ (cha
 r const *syscall std::bad_exception::what(void )const )

 I've tried leaving out all libs from the compile, I've tried reverting all
 the code changes I remember making between the last successful compile and
 now, I've tried reverting back to dmc834c as I'd just updated to dmc837c
and
 I've tried renaming everything within my code with anything of a name even
 remotely resembling exception to something else, but none of it solved my
 problem...  I'm completely stumped, I have no idea where this could come
 from, anybody any idea where I should be looking...

 Regards,

 Remko van der Vossen
Oct 21 2003
parent reply "Wichetael" <wichetael gmx.net> writes:
Yes, but where could it be coming from?? replacing snn.lib doesn't help...

"Walter" <walter digitalmars.com> wrote in message
news:bn3qks$1l6t$1 digitaldaemon.com...
 It means that the symbols listed are there more than once in your library
or
 .obj files, i.e. there are multiple definitions of the same symbols. I
would
 start by deleting snn.lib and downloading it again.

 "Wichetael" <wichetael gmx.net> wrote in message
 news:bn2qpf$abt$1 digitaldaemon.com...
 Hi another problem I'm having...

 The problem is that I don't know which change triggered it and
everything
 I've tried to find out what is causing it has come up empty, so now I
get
 these previous definition different errors during linking:

 SNN.lib(except)  Offset 0791FH Record Type 00C3 Error 1: Previous
Definition
 Different : ??1exception std  UAE XZ (syscall std:
 :exception::~exception(void ))
 SNN.lib(except)  Offset 07A1AH Record Type 00C3 Error 1: Previous
Definition
 Different : ?what exception std  UBEPBDXZ (char co
 nst *syscall std::exception::what(void )const )
 SNN.lib(except)  Offset 07B11H Record Type 00C3 Error 1: Previous
Definition
 Different : ??1bad_exception std  UAE XZ (syscall
 std::bad_exception::~bad_exception(void ))
 SNN.lib(except)  Offset 07BCFH Record Type 00C3 Error 1: Previous
Definition
 Different : ?what bad_exception std  UBEPBDXZ (cha
 r const *syscall std::bad_exception::what(void )const )

 I've tried leaving out all libs from the compile, I've tried reverting
all
 the code changes I remember making between the last successful compile
and
 now, I've tried reverting back to dmc834c as I'd just updated to dmc837c
and
 I've tried renaming everything within my code with anything of a name
even
 remotely resembling exception to something else, but none of it solved
my
 problem...  I'm completely stumped, I have no idea where this could come
 from, anybody any idea where I should be looking...

 Regards,

 Remko van der Vossen
Oct 21 2003
parent reply "Walter" <walter digitalmars.com> writes:
"Wichetael" <wichetael gmx.net> wrote in message
news:bn47qi$2d22$1 digitaldaemon.com...
 Yes, but where could it be coming from?? replacing snn.lib doesn't help...
www.digitalmars.com/ctg/ctgLinkOps.html#previous_definition_different has some ideas to try.
Oct 21 2003
parent reply "Wichetael" <wichetael gmx.net> writes:
Hey Guys,

Hmmn, I've busy isolating the problem and grep'ing on the libs and objs and
atm the only occurences of ??1exception std  UAE XZ are in two object files,
and after converting them to assembly, in both those files there are only
the following occurences, which I don't see anything wrong with really...

  extrn ??1exception std  UAE XZ
  dd  offset FLAT:??1exception std  UAE XZ
  dd  offset FLAT:??1exception std  UAE XZ
  call near ptr ??1exception std  UAE XZ

Though I don't really get why there are two dwords in the data segment
containing the address for this function, can any of you shed any light on
that for me? The other three functions (?what exception std  UBEPBDXZ,
??1bad_exception std  UAE XZ and ?what bad_exception std  UBEPBDXZ) still
give me a prev def different error even though they are nowhere defined, nor
even occur, in any of the custom libs or objs I include in my linking...
Anyway, as you can probably guess, I'm still completely stumped, I think
I've had this problem before but I don't have a single clue what's causing
it or how I resolved it before, or even if I did...

I'll be busy all day tomorrow to try isolating this problem further and
hopefully resolving it... Any help or suggestions would be very welcomed.

Regards, Remko

"Walter" <walter digitalmars.com> wrote in message
news:bn4s6f$urp$1 digitaldaemon.com...
 "Wichetael" <wichetael gmx.net> wrote in message
 news:bn47qi$2d22$1 digitaldaemon.com...
 Yes, but where could it be coming from?? replacing snn.lib doesn't
help...
 www.digitalmars.com/ctg/ctgLinkOps.html#previous_definition_different has
 some ideas to try.
Oct 25 2003
parent reply "Walter" <walter digitalmars.com> writes:
An extrn is not a definition, so the definitions must be coming from another
.obj file. -Walter

"Wichetael" <wichetael gmx.net> wrote in message
news:bnf3d3$1vn6$1 digitaldaemon.com...
 Hey Guys,

 Hmmn, I've busy isolating the problem and grep'ing on the libs and objs
and
 atm the only occurences of ??1exception std  UAE XZ are in two object
files,
 and after converting them to assembly, in both those files there are only
 the following occurences, which I don't see anything wrong with really...

   extrn ??1exception std  UAE XZ
   dd  offset FLAT:??1exception std  UAE XZ
   dd  offset FLAT:??1exception std  UAE XZ
   call near ptr ??1exception std  UAE XZ

 Though I don't really get why there are two dwords in the data segment
 containing the address for this function, can any of you shed any light on
 that for me? The other three functions (?what exception std  UBEPBDXZ,
 ??1bad_exception std  UAE XZ and ?what bad_exception std  UBEPBDXZ) still
 give me a prev def different error even though they are nowhere defined,
nor
 even occur, in any of the custom libs or objs I include in my linking...
 Anyway, as you can probably guess, I'm still completely stumped, I think
 I've had this problem before but I don't have a single clue what's causing
 it or how I resolved it before, or even if I did...

 I'll be busy all day tomorrow to try isolating this problem further and
 hopefully resolving it... Any help or suggestions would be very welcomed.

 Regards, Remko

 "Walter" <walter digitalmars.com> wrote in message
 news:bn4s6f$urp$1 digitaldaemon.com...
 "Wichetael" <wichetael gmx.net> wrote in message
 news:bn47qi$2d22$1 digitaldaemon.com...
 Yes, but where could it be coming from?? replacing snn.lib doesn't
help...
 www.digitalmars.com/ctg/ctgLinkOps.html#previous_definition_different
has
 some ideas to try.
Oct 25 2003
parent "Wichetael" <wichetael gmx.net> writes:
Found the problem, it was in the stlp45dm_static lib, though I don't
understand how this could have happened, I've been compiling programs using
the stlp stuff happily for months, and now suddenly I got these errors, I
already had 4.5.3 but when I redownloaded I noticed the sizes and date were
different... I just don't understand how I could've gotten all these errors
all of the sudden without chaning the lib... Anyway, I'm glad my problem's
resolved, thanks for your help Walter.

Regards,

Remko van der Vossen

"Walter" <walter digitalmars.com> wrote in message
news:bnfc7d$2b56$1 digitaldaemon.com...
 An extrn is not a definition, so the definitions must be coming from
another
 .obj file. -Walter

 "Wichetael" <wichetael gmx.net> wrote in message
 news:bnf3d3$1vn6$1 digitaldaemon.com...
 Hey Guys,

 Hmmn, I've busy isolating the problem and grep'ing on the libs and objs
and
 atm the only occurences of ??1exception std  UAE XZ are in two object
files,
 and after converting them to assembly, in both those files there are
only
 the following occurences, which I don't see anything wrong with
really...
   extrn ??1exception std  UAE XZ
   dd  offset FLAT:??1exception std  UAE XZ
   dd  offset FLAT:??1exception std  UAE XZ
   call near ptr ??1exception std  UAE XZ

 Though I don't really get why there are two dwords in the data segment
 containing the address for this function, can any of you shed any light
on
 that for me? The other three functions (?what exception std  UBEPBDXZ,
 ??1bad_exception std  UAE XZ and ?what bad_exception std  UBEPBDXZ)
still
 give me a prev def different error even though they are nowhere defined,
nor
 even occur, in any of the custom libs or objs I include in my linking...
 Anyway, as you can probably guess, I'm still completely stumped, I think
 I've had this problem before but I don't have a single clue what's
causing
 it or how I resolved it before, or even if I did...

 I'll be busy all day tomorrow to try isolating this problem further and
 hopefully resolving it... Any help or suggestions would be very
welcomed.
 Regards, Remko

 "Walter" <walter digitalmars.com> wrote in message
 news:bn4s6f$urp$1 digitaldaemon.com...
 "Wichetael" <wichetael gmx.net> wrote in message
 news:bn47qi$2d22$1 digitaldaemon.com...
 Yes, but where could it be coming from?? replacing snn.lib doesn't
help...
 www.digitalmars.com/ctg/ctgLinkOps.html#previous_definition_different
has
 some ideas to try.
Oct 26 2003