Thread overview
Link error 42: scal_del_dtor(unsigned )
Mar 14, 2006
Gilles Depeyrot
Mar 18, 2006
Walter Bright
Mar 22, 2006
Gilles Depeyrot
Mar 25, 2006
Walter Bright
May 09, 2006
Gilles Depeyrot
March 14, 2006
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
March 18, 2006
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


March 22, 2006
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...
March 25, 2006
"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
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.