lion0406 / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

ANGLE crashes on initialization when built with MinGW #377

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile ANGLE with MinGW and run it

What is the expected output? What do you see instead?
It should run, but it crashes because thread local storage is not initialized. 
This happens because the DllMain() symbol is C++ name mangled and as a result 
the function is never called (and therefore never initializes TLS).

What version of the product are you using? On what operating system?
Trunk on Win7 Enterprise 64-bit

Please provide any additional information below.
The symbol in both libEGL and libGLESv2 should be marked as extern "C".

Original issue reported on code.google.com by jasonrba...@gmail.com on 11 Oct 2012 at 3:30

GoogleCodeExporter commented 9 years ago

Original comment by nicolas....@gmail.com on 11 Oct 2012 at 6:48

GoogleCodeExporter commented 9 years ago

Original comment by nicolas....@gmail.com on 12 Oct 2012 at 12:39

GoogleCodeExporter commented 9 years ago
Fixed in r1306. Please verify.

Original comment by dan...@transgaming.com on 17 Oct 2012 at 6:45

GoogleCodeExporter commented 9 years ago
Verified. Thanks for the quick fix!

Original comment by jasonrba...@gmail.com on 18 Oct 2012 at 11:49