On 10/10/12, niXman <i.nix...@gmail.com> wrote:
> Hello,
>
> When I compile this simple code:
> void myfoo(void(__cdecl*)()){}
> void myfoo(void(__stdcall*)()){}
> int main(){}
>
>
> I get the following error:
> Assembler messages:
> Error: symbol `__Z5myfooPFvvE' is already defined
>
>
> Why the compiler treats theese two specificators as the same?
>

Because the names of the two functions are the same, i.e. "myfoo"
and your error is not about how __cdecl and __stdcall are treated,

>
> --
> Regards,
> niXman

--
O.S.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to