Displaying 2 results from an estimated 2 matches for "___stdio_common_vsprintf".
2017 Feb 27
2
lli can't find vsprintf
...since i get a similar error
on linking if i remove the libcmt
D:\llvm\examples\helloworld>lli -load=libcmt hello.bc
Error opening 'libcmt': libcmt: Can't open: The specified module could not
be found. (0x7E)
-load request ignored.
LLVM ERROR: Program used external function '___stdio_common_vsprintf' which
could not be resolved!
D:\llvm\examples\helloworld>link hello.obj
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation. All rights reserved.
hello.obj : error LNK2019: unresolved external symbol ___acrt_iob_func
referenced in function _printf...
2017 Feb 25
2
lli can't find vsprintf
...m wondering if someone could give me some tips on how to debug/solve
this problem. I am trying to use LLI on Windows. I build llvm and clang
using cmake.
clang -c hello.c -emit-llvm -o hello.bc
lli hello.bc
D:\llvm\examples\helloworld>lli hello.bc
LLVM ERROR: Program used external function '___stdio_common_vsprintf' which
could not be resolved!
But, I can generate the exe though
llc -filetype=obj hello.bc
link hello.obj -defaultlib:libcmt
maybe i need a
D:\llvm\examples\helloworld>clang --version
clang version 5.0.0 (trunk 296084) (llvm/trunk 296083)
Target: i686-pc-windows-msvc
Thread model: posix
I...