Re: [Mingw-w64-public] experimental 4.7 std::thread enabled build by rubenvb

2012-10-10 Thread Joshua Boyce
On Fri, Aug 17, 2012 at 4:34 AM, Ruben Van Boxem wrote: > > I never meant to say it was as solid and full-featured as GCC on Windows. > What I meant was that the program you call ("clang"/"clang++", i.e. the > "compiler driver") can be used as a drop-in replacement for "gcc"/"g++", > unlike for ex

Re: [Mingw-w64-public] the compiler treats '__cdecl' & '__stdcall' as the same.

2012-10-10 Thread Kai Tietz
2012/10/10 niXman : > For example, this code work as expected: > > > template > struct is_same { > enum { value = 0 }; > }; > > template > struct is_same { > enum { value = 1 }; > }; > > int main() { > typedef void(__stdcall* stdcall_func_ptr)(); > typedef void(__cde

Re: [Mingw-w64-public] the compiler treats '__cdecl' & '__stdcall' as the same.

2012-10-10 Thread niXman
2012/10/10 niXman: > For example, this code work as expected: > > > template > struct is_same { > enum { value = 0 }; > }; > > template > struct is_same { > enum { value = 1 }; > }; > > int main() { > typedef void(__stdcall* stdcall_func_ptr)(); > typedef void(__cdec

Re: [Mingw-w64-public] the compiler treats '__cdecl' & '__stdcall' as the same.

2012-10-10 Thread Ozkan Sezer
On 10/10/12, niXman wrote: > 2012/10/10 Ozkan Sezer: > >> Because the names of the two functions are the same, i.e. "myfoo" > > This is a C++ code. > Arguments for functions are of different types, ie overload should work. > > MSVC 2010 compiles this code successfully. > Ah sorry, didn't notice c

Re: [Mingw-w64-public] the compiler treats '__cdecl' & '__stdcall' as the same.

2012-10-10 Thread Ozkan Sezer
On 10/10/12, niXman 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 thees

Re: [Mingw-w64-public] the compiler treats '__cdecl' & '__stdcall' as the same.

2012-10-10 Thread Ruben Van Boxem
2012/10/10 niXman > 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 sp