Displaying 2 results from an estimated 2 matches for "demodllcaller".
2013 Dec 08
0
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
...ar.ll
> link .exe/DLL /NOENTRY /SUBSYSTEM:CONSOLE callPutchar.obj LIBCMT.LIB
Microsoft (R) Incremental Linker Version 11.00.60610.1
Copyright (C) Microsoft Corporation. All rights reserved.
Bibliothek "callPutchar.lib" und Objekt "callPutchar.exp" werden erstellt.
> demoDllCaller.exe ; >> The typical "demoDllCaller.exe stopped working..." Windows crash dialog appears.
demoDllCaller 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 ()
{
HMODU...
2013 Dec 08
1
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
Hey Jeremy,
(putting the discussion back to the list.)
2013/12/8 Jeremy Lakeman <Jeremy.Lakeman at gmail.com>:
> If I run your demo exe it crashes, if I re-link the dll with VS 2010 it
> errors gracefully;
>
> runtime error R6030
> - CRT not initialized
>
> putchar is a c runtime function.
> I'm betting that your exe doesn't initialise the runtime library?