www.digitalmars.com         C & C++   DMDScript  

c++.beta - Link error 42: scal_del_dtor(unsigned )

reply Gilles Depeyrot <gsd dolphin.fr> writes:
Hi,

Does anyone know how to "fix" this link error?

Error 42: Symbol Undefined ??_Gmy_type nspc  QAEPAXI Z (void *syscall 
nspc::my_type::scal_del_dtor(unsigned ))

My C++ code compiles and links with several releases of GCC as well as 
MSVC++ 6 and 2005.

It is difficult to produce a testcase because it is a multi-file compile 
and link and the error has disappeared in my different tries to reduce 
the size...

Best regards,
Gilles
Mar 14 2006
parent reply "Walter Bright" <newshound digitalmars.com> writes:
You could try doing a grep across the obj files and seeing which one is 
referring to it.

"Gilles Depeyrot" <gsd dolphin.fr> wrote in message 
news:dv6amk$2rhe$1 digitaldaemon.com...
 Does anyone know how to "fix" this link error?

 Error 42: Symbol Undefined ??_Gmy_type nspc  QAEPAXI Z (void *syscall 
 nspc::my_type::scal_del_dtor(unsigned ))

 My C++ code compiles and links with several releases of GCC as well as 
 MSVC++ 6 and 2005.

 It is difficult to produce a testcase because it is a multi-file compile 
 and link and the error has disappeared in my different tries to reduce the 
 size...

 Best regards,
 Gilles 

Mar 18 2006
parent reply Gilles Depeyrot <gsd dolphin.fr> writes:
Hi,

I know which object file refers to this symbol. I even know which lines 
cause the call to this implicit symbol: both are deletes of a template 
class. However, the template class is used elsewhere without causing 
this link error for the implicit scal_del_dtor method...

Best regards,
Gilles

Walter Bright wrote:
 You could try doing a grep across the obj files and seeing which one is 
 referring to it.
 
 "Gilles Depeyrot" <gsd dolphin.fr> wrote in message 
 news:dv6amk$2rhe$1 digitaldaemon.com...
 Does anyone know how to "fix" this link error?

 Error 42: Symbol Undefined ??_Gmy_type nspc  QAEPAXI Z (void *syscall 
 nspc::my_type::scal_del_dtor(unsigned ))

 My C++ code compiles and links with several releases of GCC as well as 
 MSVC++ 6 and 2005.

 It is difficult to produce a testcase because it is a multi-file compile 
 and link and the error has disappeared in my different tries to reduce the 
 size...


Mar 22 2006
parent reply "Walter Bright" <newshound digitalmars.com> writes:
"Gilles Depeyrot" <gsd dolphin.fr> wrote in message 
news:dvrrtl$10it$1 digitaldaemon.com...
 Hi,

 I know which object file refers to this symbol. I even know which lines 
 cause the call to this implicit symbol: both are deletes of a template 
 class. However, the template class is used elsewhere without causing this 
 link error for the implicit scal_del_dtor method...

Ok, but it will help a lot if you can send me a minimal test case that duplicates the problem.
Mar 24 2006
parent Gilles Depeyrot <gsd dolphin.fr> writes:
Hi,

It seems like the latest beta has fixed this issue.

Best regards,
Gilles

Walter Bright wrote:
 "Gilles Depeyrot" <gsd dolphin.fr> wrote in message 
 news:dvrrtl$10it$1 digitaldaemon.com...
 Hi,

 I know which object file refers to this symbol. I even know which lines 
 cause the call to this implicit symbol: both are deletes of a template 
 class. However, the template class is used elsewhere without causing this 
 link error for the implicit scal_del_dtor method...

Ok, but it will help a lot if you can send me a minimal test case that duplicates the problem.

May 09 2006