Displaying 1 result from an estimated 1 matches for "main1_t".
Did you mean:
main1
2013 Dec 08
0
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
...er is a small application that I wrote that loads the dll
and calls the main function. Here's the code of demoDllCaller.exe:
#include <Windows.h>
int main ()
{
HMODULE lib = LoadLibrary (L"callPutchar.dll");
if (lib != nullptr) {
typedef int __declspec(cdecl) (*main1_t) ();
main1_t main1 = (main1_t) GetProcAddress (lib, "main");
if (main1 != nullptr) {
int result = (* main1) ();
result = result;
}
}
}
I'm on Windows 8.1 using Visual Studio 2012 and 2013 (crash happens
with both). I compiled llvm w...