Displaying 20 results from an estimated 10000 matches similar to: "Change default config of clang on Windows"
2003 Jun 16
2
using win32 static libs
hi,
i hope this is not too "newbie-ish" but i've never programmed with static libs before.
i've downloaded the win32sdk and try to build a simple wav->ogg/vorbis encoder, but the linker complained about several redefinitions.
environment is visual studio .net 2003 on winxp and a standard mfc-app set up by this project-wizzard that comes with vs.net2003 using the default
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
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
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
2017 Mar 31
2
Invoking lld for PE/COFF (Windows) linking
On 3/30/2017 9:03 PM, Reid Kleckner via llvm-dev wrote:
> On Thu, Mar 30, 2017 at 5:57 PM, Edward Diener via llvm-dev
> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>
> Actually just doing:
>
> clang++ -c t.cpp -o t.o --target=x86_64-windows-msvc -fmsc-version=1900
> clang++ t.o -o t.exe --target=x86_64-windows-msvc
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
2019 Mar 18
2
RFC: ELF Autolinking
On Fri, Mar 15, 2019 at 6:23 AM bd1976 llvm <bd1976llvm at gmail.com> wrote:
>
>
> On Thu, Mar 14, 2019 at 6:43 PM bd1976 llvm <bd1976llvm at gmail.com> wrote:
>
>>
>>
>> On Thu, Mar 14, 2019 at 5:58 PM Rui Ueyama <ruiu at google.com> wrote:
>>
>>> On Thu, Mar 14, 2019 at 9:45 AM bd1976 llvm via llvm-dev <
>>> llvm-dev at
2017 Feb 25
2
lli can't find vsprintf
Hi
i am 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
2019 Mar 14
2
RFC: ELF Autolinking
On Thu, Mar 14, 2019 at 5:58 PM Rui Ueyama <ruiu at google.com> wrote:
> On Thu, Mar 14, 2019 at 9:45 AM bd1976 llvm via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> On Thu, Mar 14, 2019 at 3:32 PM Peter Smith <peter.smith at linaro.org>
>> wrote:
>>
>>> Hello,
>>>
>>> I've put some comments on the proposal
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 module could not
be found. (0x7E)
2017 Dec 08
3
Unresolved symbols in compiler-rt
Hello all,
I get unresolved external symbol __muloti4 when attempting to compile GNU m4
for Windows commandline.
See details in bug: https://bugs.llvm.org/show_bug.cgi?id=16404#c22
Looking into this, I see that some parts of compiler-rt are disabled for
Windows due to the __LP64__ define. The code seem not portable as is to the
MS compiler, but according to my tests the code compiles and links
2014 Oct 23
2
[LLVMdev] compiler-rt with MSVC 2013
On Thu, Oct 23, 2014 at 3:38 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> On Thu, Oct 23, 2014 at 2:57 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
>> 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
2014 Oct 23
2
[LLVMdev] compiler-rt with MSVC 2013
compiler-rt libs must be built with /MT, so the MSVS build is doing
the wrong thing here.
2014-10-23 12:52 GMT-07:00 Aaron Ballman <aaron at aaronballman.com>:
> On Thu, Oct 23, 2014 at 3:42 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
>> On Thu, Oct 23, 2014 at 3:38 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
>>> On Thu, Oct 23, 2014 at 2:57
2004 Aug 06
4
compile speexenc
Hello,
Iam being to compile speexenc but I have the following error:
LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other
libs; use /NODEFAULTLIB:library
libspeex.lib(lsp.obj) : error LNK2001: unresolved external symbol
_spx_cos
Debug/speexenc.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Please, help me
Guillaume
--- >8 ----
List
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
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
2011 Sep 29
1
[LLVMdev] Beginner Question on Linking
I am following along in http://llvm.org/docs/GettingStartedVS.html with a
Hello World bitcode file. I can run the file using the command `lli
HelloWorld.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
2012 Oct 19
2
[LLVMdev] Section specialization & COFF.
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 similar tests in test/Objects/Inputs. Should I do something
like trivial.ll checking or there is a better way
to check
2004 Aug 06
2
compiling in windows
<p><p>Hi, I'm trying to compile speex in windows and I get this error: Linking...MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj)MSVCRTD.lib(MSVCRTD.dll) :
2019 Feb 28
4
lld-link crash when linking intrinsics lib
+Peter Collingbourne <pcc at chromium.org>
LTO is used in this test case, and one source file defines its own `memset`
function while the other file uses llvm.memset. Looks like LTO is confused
by the user-defined memset. Could you take a look?
Steven,
Do you need to use LTO? I thought that LTO is a workaround to not produce
an object file that cannot be handled by your ELF-to-COFF