Displaying 1 result from an estimated 1 matches for "__dllmaincrtstartup".
2013 Dec 08
1
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
...ary?
You're right, this is surely the problem then. Thanks a buch for that pointer.
However, after quite much googling, I can't find a way to correctly
initialize the CRT in a DLL created from llvm.
>From what I've learned, the system works as follows:
* The entry point for DLLs in __DllMainCRTStartup at 12.
* The CRT libraries provide an implementation for this function in libcmt.lib.
* That implementation initializes the CRT (afaik using CRT_INIT) and
calls DllMain.
The question that remains is how to dllexport a function that is
defined in a separate library?
Greetings,
Daniel Albuschat