Troubleshooting Linker error (Symbol Undefined)

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Sep 30 22:07:38 PDT 2012


On 10/1/12, Jesse Phillips <jessekphillips+D at gmail.com> wrote:
>      Error 42: Symbol Undefined _VarCmp at 16

P.S. as soon as pointers are involved you don't need the full type
info of such a parameter to debug linker errors, so you can cut down
on code when reducing. For example if you had to match this C function
but are getting linker errors:

extern "C" void test(SomeType*);

You can prototype this in D as:
extern(C) void test(void*);

You will still get the same linker error, but you won't have to insert
the definition of "SomeType".


More information about the Digitalmars-d-learn mailing list