2012/10/10 niXman <i.nix...@gmail.com>

> 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?
>

I suppose you're compiling for x64, which has only one calling convention
and I suppose GCC just handles both in the exact same way. MSVC ignores
both on x64:
http://msdn.microsoft.com/en-us/library/zkwh89ks.aspx
http://msdn.microsoft.com/en-us/library/zxk0tw93.aspx

If you're compiling for x86, I don't know. :)

Ruben

>
>
> --
> Regards,
> niXman
> ___________________________________________________
> Dual-target(32 & 64-bit) MinGW compilers for 32 and 64-bit Windows:
> http://sourceforge.net/projects/mingwbuilds/
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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