Re: [Mingw-w64-public] Clang Driver and DllMainCRTStartup entry point

2014-01-18 Thread Ivan Garramona
The LoadLibrary API calls the DLL's entry point. You can use it to check if the DLL is working. This simple snippet correctly printed the "Hello World" from the dll. #include int main() { LoadLibrary("test.dll"); return 0; } ---

[Mingw-w64-public] Clang Driver and DllMainCRTStartup entry point

2014-01-18 Thread Ruben Van Boxem
Hi, As previously announced, I am writing Clang Driver code so it directly calls as/ld instead of delegating that to GCC. I am nearly finished, with just one issue remaining. If I have this test code: #include int main() { printf("Hello World!\n"); } and I run $ i686-w64-mingw32-gcc -shared