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
75
votes
8 answers

How to suppress `warning: linking against dylib not safe for use in application extensions`?

I have a dynamic framework that is shared between an iOS application and an extension. There is some code in that framework that references UIApplication, that is of course, not usable in an extension. Those calls are completely isolated and so I…
Wayne Hartman
  • 18,369
  • 7
  • 84
  • 116
64
votes
2 answers

Apple Mach-O Linker Warning "Directory Not Found For Option..."

I simply want to rid of the warnings that pop up like these: ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK' ld: warning: directory not found for option '-F/Users/m/Desktop/FacebookSDK/FBAudienceNetwork' ld: warning:…
Gavin
  • 661
  • 2
  • 7
  • 10
55
votes
7 answers

ld: warning: text-based stub file are out of sync. Falling back to library file for linking

When I am trying to sourceCpp, it gives a warning: ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file …
MOOn
  • 651
  • 1
  • 5
  • 4
55
votes
7 answers

LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:ICF' specification

I recently converted a multi-project Visual Studio solution to use .dlls instead of .libs for each of the projects. However, I now get a linker warning for each project as stated in the example. MSDN didn't serve to be all that helpful with this. …
Mark
  • 6,123
  • 13
  • 41
  • 52
39
votes
2 answers

unused DT entry: type 0x1d arg

I am using android NDK-r10d to build Android x86 executable (shared linking) that runs on adb shell. On run time, I am getting the following warning: WARNING: linker: ./myapp: **unused DT entry:** type 0x1d arg 0x4a604 I am using a rooted Nexus…
26
votes
2 answers

'LIBCMT' conflicts with use of other libs + unresolved external symbols

I have a program using OpenGL 3.2(+libs) and FreeType2. Then an other program with Boost and OpenSSL. The OpenGL side was to make sure text could be rendered and the boost/openssl program is to do a secure login/game server. Both programs work fine…
13
votes
2 answers

How do you suppress GCC linker warnings?

I've been on a crusade lately to eliminate warnings from our code and have become more familiar with GCC warning flags (such as -Wall, -Wno-, -fdiagnostics-show-option, etc.). However I haven't been able to figure out how to…
Cutterpillow
  • 1,717
  • 13
  • 32
11
votes
5 answers

Header Guards and LNK4006

I have a character array defined in a header //header.h const char* temp[] = {"JeffSter"}; The header if #defined guarded and has a #pragma once at the top. If this header is included in multiple places, I get an LNK4006 - char const * * temp…
Steve
  • 11,763
  • 15
  • 70
  • 103
10
votes
2 answers

Linker warnings while building application against mysql-connector-c/libmysqlclient/mysql C API

I am trying to build mysql-connector-c from source(per instructions here) and statically link against the library in my application. However I am getting the following warnings and I was wondering if anyone has any ideas as to why this…
decimus phostle
  • 1,040
  • 2
  • 13
  • 28
7
votes
2 answers

Xcode/clang: Why do some, not all, of my headers give "warning: no rule to process file xxx for architecture arm7"

I am building an iOS 5 app with ARC using clang on Xcode 4.2/Lion. Good practice for me is to try to get rid of as many warnings as possible but I'm lost on this one. The app has quite a few classes, but a limited number of their header files (8 or…
Tim
  • 5,024
  • 2
  • 30
  • 58
7
votes
0 answers

How to disable Linker Warnings from static libraries on xcode?

In my current Swift project, I have a 3rd party static library, added through the Build Phases > "Link Binary With Libraries" section. After updating to xcode 8.3, this library started throwing some linker warnings (e.g.: pointer not aligned at…
6
votes
1 answer

Xcode 8.3 Linker Warnings

Trying to Archive app prior to submitting to Apple. Warning limit exceeded - showing first 200 warnings only. Sample warnings: ld: warning: Linker asked to preserve internal global: 'sharedInstance.sharedInstance' ld: warning: Linker asked to…
robMontesinos
  • 123
  • 2
  • 9
6
votes
2 answers

How do I fix LNK4204, or get rid of it?

I'm statically linking SFML2.3 into my application. When linking in debug mode, I get a huge wall of warnings, all of them like this: 1>sfml-graphics-s-d.lib(View.obj) : warning LNK4204: 'D:\DATA\Libraries\Programming\SFML…
DSPC
  • 350
  • 2
  • 12
5
votes
2 answers

visual studio linker warning LNK4098

I have a dll project in which, when in Release configuration I build the project, I get the following warning: MSVCRT.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrtd.lib' conflicts with use of other libs; use …
AlejandroVK
  • 7,373
  • 13
  • 54
  • 77
5
votes
2 answers

How to overrule default gcc options to the linker?

On my system when I compile something (with bfin-linux-uclibc-g++ but that is irrelevant), I get hundreds of warnings (not in my own code base) with respect to one of the compiler flags. I want to disable it. fde encoding in…
Anne van Rossum
  • 3,091
  • 1
  • 35
  • 39
1
2 3 4 5