search for: libcmt

Displaying 20 results from an estimated 50 matches for "libcmt".

Did you mean: libcmd
2017 Feb 27
2
lli can't find vsprintf
thank you! yes, i guess that is the problem. unfortunately libcmt doesn't work. could it have another name for lli? The function missing seems to be part of libcmt 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 modul...
2017 Feb 25
2
lli can't find vsprintf
...ake. 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 InstalledDir: D:\llvm\build\Debug\bin D:\llvm\examples\helloworld>lli --version LLVM (http://llvm.org/): LLVM version 5.0.0svn...
2003 Jun 16
2
using win32 static libs
...ggVorbisTest error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj) OggVorbisTest error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj) OggVorbisTest error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj) OggVorbisTest error LNK2005: __setmbcp already defined in libcmt.lib(mbctype.obj) OggVorbisTest warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library OggVorbisTest warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library OggVorbisTest fatal error LNK1169: o...
2011 Sep 29
1
[LLVMdev] Beginner Question on Linking
...ld.bc`, but now I want to link it into an executable file (on windows). The next thing the document says to run is `llc -filetype=obj HelloWorld.bc` which runs fine and now I have a `HelloWorld.obj` file. It's the last step that is giving me some trouble. The command `link hello.obj -defaultlib:libcmt` in MinGW yields the following error: `link: invalid option --d Try `link --help` for more information`. I drop the `-defaultlib:libcmt` and the linker creates an executable but when I try to run it I get the following errors: Popup: --------------------------- Unsupported 16-Bit Application -----...
2008 Apr 16
1
C++ Linker Warnings
Hi, I have been trying to link to theora static libs I built with VC++ 2005 from libtheora-1.0beta2 and libogg-1.1.3. I get a couple of link warnings, the most significant is: LINK : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library I read up about libcmt.lib and found it is a statically linked library that supports multithreaded programs. It is linked to by default for multithreaded (MT[d]). I am actually using Multithreaded DLL (MD[d]) but by including...
2013 Sep 29
2
MSVS: debug flac.exe uses release libogg_static.lib
With current settings, MSVS links debug version of flac.exe (and other .exe and .dll files) with the release version of libogg_static.lib. MSVS issues a "warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library" What's the reason in this setting? What is better: * to change the settings so that MSVS will link debug .exe files with the debug version of libogg_static.lib, or * to add libcmt.lib into "IgnoreDefaultLibraryNam...
2014 Oct 23
2
[LLVMdev] compiler-rt with MSVC 2013
...e what flags it passes to link.exe? > > I've found a way to check the linker output from the two builds, and > they are different. > > From the ninja build, with /VERBOSE passed to the linker: > > Searching D:\Program Files (x86)\Microsoft Visual Studio > 12.0\VC\LIB\LIBCMT.lib: > ... > > At the same stage of linking, from the MSVC build, with /VERBOSE > passed to the linker: > > 2> Searching D:\Program Files (x86)\Microsoft Visual Studio > 12.0\VC\lib\MSVCRT.lib: > ... > 2> Found __imp__free > 2> Referenced...
2013 Dec 08
1
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
...er, 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
2014 Oct 23
2
[LLVMdev] compiler-rt with MSVC 2013
...#39;ve found a way to check the linker output from the two builds, and >>> they are different. >>> >>> From the ninja build, with /VERBOSE passed to the linker: >>> >>> Searching D:\Program Files (x86)\Microsoft Visual Studio >>> 12.0\VC\LIB\LIBCMT.lib: >>> ... >>> >>> At the same stage of linking, from the MSVC build, with /VERBOSE >>> passed to the linker: >>> >>> 2> Searching D:\Program Files (x86)\Microsoft Visual Studio >>> 12.0\VC\lib\MSVCRT.lib: >>> ... &gt...
2013 Dec 08
0
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
Hello list, I got a simple test case to reproduce a crash in code that has been generated by llvm. The code calls into the "putchar" function from LIBCMT.LIB. It works when creating an .exe file, but not when creating a .dll file and calling into an exported function. First, let me show how the code works as an .exe: > cat callPutchar.ll ; ModuleID = 'test' declare i32 @putchar(i32) define i32 @main() { __entry__: %0 = call i32 @putc...
2017 Mar 31
2
Invoking lld for PE/COFF (Windows) linking
..."C:\\Programming\\VersionControl\\bninja_installed_clang\\bin\\lld-link.exe" "-out:C:\\Programming\\VersionControl\\modular-boost\\build\\boost\\bin.v2\\libs\\preprocessor\\test\\config_info.test\\clang-linux-5.0cl\\debug\\address-model-32\\config_info.exe" "-defaultlib:libcmt" "-libpath:C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\lib" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.14393.0\\ucrt\\x86" "-libpath:C:\\Program Files (x86)\\Windows Kits\\10\\Lib\\10.0.14393.0\\um\\x86" "-nologo" &q...
2020 Feb 23
2
Change default config of clang on Windows
...I don't really wish to write `-fuse-ld=lld-link` every single time I build something. 2. why `lld-link` doesn't search inside default `lib` directory? I need to manually show him where it is although I put that binary in `<LLVM root>\lib\` 3. why clang invokes linker with `-defaultlib:libcmt`? I mean libc++ build guide under MSVC produces -MD version of either `libc++.lib` or `c++.lib` 4. Since (3), it's not possible to build anything without splitting compiler and linker calls - `clang` by default produces -MT versions of objects and linker fails to compose it with -MD library. No...
2013 Mar 17
1
MSVC project updates
...lib to libogg_static.lib as that's the name latest version uses. Removed MSVC 6.0 related parts from README and tweaked info there to be more up-to-date. Also changed nasmw.exe into nasm.exe as nasmw.exe has been long gone. LibFLAC_dynamic was complaining in debug mode about conflicts with libcmt, I excluded it from the project there as I saw no other way to solve the problem. -------------- next part -------------- A non-text attachment was scrubbed... Name: win_projects.zip Type: application/x-zip-compressed Size: 2628 bytes Desc: not available Url : http://lists.xiph.org/pipermail/flac...
2013 Sep 29
2
MSVS: debug flac.exe uses release libogg_static.lib
Ralph Giles wrote: >> With current settings, MSVS links debug version of flac.exe (and other >> .exe and .dll files) with the release version of libogg_static.lib. >> MSVS issues a "warning LNK4098: defaultlib 'libcmt.lib' conflicts with use >> of other libs; use /NODEFAULTLIB:library" > > Sounds like a bug. Debug targets should link to debug builds of their > dependencies to simplify debugging. I agree, but according to README (section "Building with MSVC"): user builds libogg...
2014 Jul 26
2
[LLVMdev] Clang binaries for Windows x86-64?
...want a 64-bit binary for better performance or whatnot, you'll have > to build from source for now. > > Thats not gonna work though: clang version 3.5.0 (213584) Target: i686-pc-windows-gnu Thread model: posix C:\Users\ismail\Desktop>clang -target x86_64-pc-windows-msvc -m64 nic.c libcmt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machi e type 'x64' clang.exe: error: linker command failed with exit code 1112 (use -v to see invocation) Seems to be libpath is not properly set for 64bit case. -------------- next part --------...
2014 Oct 23
3
[LLVMdev] compiler-rt with MSVC 2013
On Thu, Oct 23, 2014 at 2:46 PM, Timur Iskhodzhanov <timurrrr at google.com> wrote: > 2014-10-23 11:34 GMT-07:00 Aaron Ballman <aaron at aaronballman.com>: >> On Thu, Oct 23, 2014 at 2:24 PM, Timur Iskhodzhanov <timurrrr at google.com> wrote: >>> I don't think this is the right approach. >>> >>> Currently we intentionally define malloc etc
2017 Mar 31
3
Invoking lld for PE/COFF (Windows) linking
On 3/30/2017 7:59 PM, Reid Kleckner via llvm-dev wrote: > On Thu, Mar 30, 2017 at 6:08 AM, Edward Diener via llvm-dev > <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > > Are you saying that once lld is built with mingw-64/gcc on Windows > it is impossible to tell it to handle PE/COFF files when invoking it > from clang++ using the
2013 Mar 19
3
Patch to add Unicode filename support for win32 flac
...out external runtimes (which would also be loaded from the exe's dir if they exist there). Linking with msvcmrt.lib won't find the function and unicode version msvcurt.lib causes this error: Error 1 error LNK2005: ___iob_func already defined in msvcurt.lib(MSVCR110.dll) G:\test\LIBCMT.lib(_file.obj) test Error 2 error LNK1169: one or more multiply defined symbols found G:\test\Release\test.exe test > > In stat_utf8, dealing with 32bit/64bit time_t? The following check > should really compile time rather than runtime: > sizeof(*buffer) == sizeof(st)...
2008 Aug 28
1
Building wxruby on windows with Visual C++ Express Edition
...05: "public: char const * __thiscall std:: basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_ str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@ @std@@QBEPBDXZ) already defined in wxmsw28u_core.lib(graphics.obj) LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter_noinfo already defin ed in MSVCRT.lib(MSVCR90.dll) Creating library lib/wxruby2.lib and object lib/wxruby2.exp LINK : warning LNK4098: defaultlib ''LIBCMT'' conflicts with use of other libs; us e /NODEFAULTLIB:library lib/wxrub...
2012 Oct 19
0
[LLVMdev] Section specialization & COFF.
On Fri, Oct 19, 2012 at 2:55 AM, r4start <r4start at gmail.com> wrote: > Hi all. > > While compiling next code > @A = weak unnamed_addr constant { i32, i32, i32 } { i32 0, i32 0, i32 0 }, > section ".data" > was discovered that llc ignores weak linkage if we emit it in COFF object. > Attached patch solves this problem, please review. > > I found some