Questions tagged [linker-warning]

Messages emitted by a linker which indicate potential problems in code or (more often) configuration.

Linker warnings typically flag linker issues that could potentially cause problems or unintended results, but for lack of context the linker cannot declare absolutely that the result will be flawed or undesirable.

63 questions
1
vote
1 answer

-headerpad_max_install_names is ignored when used with -bitcode_bundle

Building my Xcode project gives the following warning: /ld:-1: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) How to act upon this warning? Presumably Xcode is throwing this…
P i
  • 29,020
  • 36
  • 159
  • 267
1
vote
0 answers

Unresolved external symbols using Microsoft Visual Studio 2015 Community and Allegro5 Nuget packages

I understand how linker errors work/form in a program, but can't figure out how the library I'm using is not linked correctly to my code. I installed using NuGet, so it installed and setup automatically, I included what I needed to, as shown below,…
1
vote
1 answer

Linker Stub File Warning

For a few days now whenever gcc or go are invoked the following warning is thrown by the system (macOS High Sierra 10.13.5): ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file…
qantik
  • 1,067
  • 1
  • 10
  • 20
1
vote
1 answer

ZLib.lib(d000062.o) : warning LNK4078: multiple '.text' sections found with different attributes

I downloaded zlib from their website and I have the link warning from the title. I also compiled zlib and still have same warning. Do you know how may I fix this? I don't like warning of any kind in my projects:) I use Visual Studio 2010.
Mircea Ispas
  • 20,260
  • 32
  • 123
  • 211
1
vote
0 answers

Is there an equivalent of link_warning(symbol) for C++?

Is it possible to define a C++ class method that would compile cleanly but produce a warning message when used, in a way similar to the unimplemented C library functions? Something like: int MyClass::frobnicate() { link_warning(frobnicate,…
Dmitry Grigoryev
  • 3,156
  • 1
  • 25
  • 53
1
vote
1 answer

dlerror: Undefined symbol "_nss_cache_cycle_prevention_function" on FreeBSD 7.2

I have an ANSI C program that dynamically loads a .so file using dlopen() passing RTLD_LAZY. I receive Undefined symbol "_nss_cache_cycle_prevention_function" warnings whenever the .so file is accessed in FreeBSD 7.2.…
John Scipione
  • 2,360
  • 4
  • 25
  • 28
1
vote
1 answer

Linker warnings in xcode 6.4

I use c++ library projects (that uses boost 1.57 library) for my ios app and when I build my app i get hundreds of linker warnings. The app runs totally fine. The prominent warning is ld: warning: direct access in boost::exception_ptr…
adsun
  • 773
  • 9
  • 30
1
vote
1 answer

linker ignores /openmp in qtcreator on windows

when I try to compile the openmp cpp file from this website, I got a link warning saying that the openmp flag is ignored. LNK4044:unrecognized option '/openmp'; ignored I have already added these code to the pro. file QMAKE_CXXFLAGS+=…
Iching Chang
  • 638
  • 1
  • 7
  • 17
1
vote
0 answers

XCode duplicated target fails to find image assets and compiles with linker warnings the original one doesn't

XCode 5.0 iOS 7 Cocos2d There are many similar questions but after extensive searching, I could not find a fix. I have a project that I am trying to make a paid version (no ads) with. I duplicated my target and while the original target builds just…
1
vote
2 answers

LNK4098 - How Dangerous Is It?

I use a 3rd party .lib file in my project. While our project builds well and seems to work well, I get this warning from the linker: LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library My project…
Ivan Nikitin
  • 3,578
  • 27
  • 39
1
vote
1 answer

warning LNK4098: defaultlib 'mfc110u.lib' conflicts with use of other libs

Well, I get this warning when linking a lib which was compiled using an unicode character set while my project uses a multi-byte charset. 1>LINK : warning LNK4098: defaultlib 'mfc110u.lib' conflicts with use of other libs; use…
alex555
  • 1,676
  • 4
  • 27
  • 45
1
vote
1 answer

warning MSB8012 - Linker's OutputFile property value ()

warning MSB8012 I've read through many answers to people asking about this error, but none of them seem to have gotten such a problem as mine. I'm trying to use property sheets in my projects to save having to set up property settings every time,…
Deji
  • 760
  • 1
  • 10
  • 16
1
vote
1 answer

Class undefined reference

Possible Duplicate: What is an undefined reference/unresolved external symbol error and how do I fix it? This should be a simple problem but I'm still having issues. I've looked at similar questions but they seem a bit more complex then what I'm…
softsound
  • 29
  • 3
1
vote
2 answers

How do I approach this Linux C++ warning? "can't find linker symbol for virtual table for `sockaddr_in'"

Ubuntu 10.04 32-bit, eclipse, C and C++ I have a program that uses select() to monitor a bunch of TCP and UDP ports. I create those ports in the usual way (socket(), bind(), listen(), accept() etc.) using sockaddr_in structures. The program works…
Wes Miller
  • 2,191
  • 2
  • 38
  • 64
0
votes
0 answers

link waring when using '-Wl, -dead_strip'

using '-Wl, -dead_strip' can remove functions and data that are unreachable by the entry point or exported symbols. When I add '-Wl, -dead_strip' for link, got a warning: warning: cannot find entry symbol ad-strip; defaulting to 000000008000003c and…