01-24-2006 07:12 AM
01-24-2006 07:41 AM - edited 01-24-2006 07:41 AM
Message Edited by giese_m on 01-24-2006 07:53 AM
01-24-2006 10:15 AM
The reason this happens is that in C++, you can have multiple overloaded methods all with the same name. To differentiate them in the dll, the compiler adds extra coding characters based on the method signature. This is called name mangling and it is compiler dependent. I'm not sure, but I think TestStand knows how to demangle names created by Visual C++. However, I'm sure TestStand does not know how to demangle g++ names.
Declaring the function extern "C" is the right solution for your case. Since C does not support overloads, you cannot have two extern "C" functions with the same name, so the name is not mangled.