Hy everyone,
i'm newbie to gcc. I try to create a dll with this compiler, but the
name of the function, that i want export, was decorated. I don't have
to have the mangling of name. This my code:

///////////////////////////////////////////
// Cpp File:

int __stdcall  ExtFunz(int a)
{
        return a+1;
}

void __stdcall  ExtFunz1(int *a)
{
        *a=*a+1;
}
///////////////////////////////////////////
// Def File

LIBRARY      "DllTest"

EXPORTS
        ExtFunz                 @1
        ExtFunz                 @2
///////////////////////////////////////////
Following lines are used to generate the dll:

$mingw32-g++ -c DllTest.cpp

$mingw32-g++ -shared -o DllTest.dll DllTest.o DllTest.def

I get these linking errors:

Cannot export ExtFunz: symbol not defined
Cannot export ExtFunz1: symbol not defined

I think the attribute '__stdcall' and the '.def' file using remove the
mangling of function, but it isn't. :( . How can i remove the whole
([EMAIL PROTECTED] and [EMAIL PROTECTED]) function mangling?? If it's possible 
I'd
like to don't use the alias name.  

Thanks in advance.

_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to