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
0
votes
1 answer

VS2010 Link Warning

I am running VS2010 Express for C++ on Windows 7. Everything was compiling and linking fine until the latest round of updates. Now I get a series of link warnings of the form: libcpmt.lib(xgetwctype.obj) : warning LNK4099: PDB 'libcpmt.pdb' was not…
user948512
0
votes
2 answers

linking a .obj file with alink

i wrote a helloworld program for win64 and converted it to a .obj file using nasm...now i have to load the resultant hello.obj file using alink but errors are cropping... to assemble i used the command nasm -f win64 -o hello.obj helloworld.asm …
AvinashK
  • 3,309
  • 8
  • 43
  • 94
0
votes
0 answers

Firebase linker warnings in Xcode 11.5

Firebase (6.25.0) FirebaseAnalytics (6.5.1) FirebaseCore (6.7.1) macOS Catalina (10.15.4) Xcode 11.5 I updated the Firebase SDK via CocoaPods in my Xcode workspace and started getting several Xcode linker (ld) warnings that all boil down to variants…
AndyP
  • 26
  • 4
0
votes
0 answers

What does DT_TEXTREL mean and how to solve?

I am working on a C++ project which uses a (legacy) static library (let's name it foo.a) which was compiled on an old Intel 32-bit architecture (with gcc-4). I don't have the source code of this library so I can't rebuild it. Now I have to make a…
gior91
  • 1,745
  • 1
  • 16
  • 19
0
votes
0 answers

The .asm file below compiles and builds as expected but the linker emits a warning. I'd like to know why the warning

As can be seen in the picture below, the Output window for the Build shows the following linker warning: warning LNK4258: directive '/ENTRY:main@0' not compatible with switch '/ENTRY:main'; ignored What exactly is being warned here?
Alexander
  • 2,581
  • 11
  • 17
0
votes
0 answers

linker error with Intel-Media SDK starting point

I try to begin a project using Intel Media SDK. But I get some errors during the linkage. I use Microsoft Visual C++ 2008. And I get Intel(R) Media SDK 2019 R1. I follow the programming…
0
votes
1 answer

How do I get more details from VisualStudio to track down the source of a warning

I upgraded to the latest version of VisualStudio 2017 (15.9.5) to compile our native C++ application. However now in Release mode (and only in Release) I get the following warning (and we treat warnings as errors): ...nothing…
gremwell
  • 1,419
  • 17
  • 23
0
votes
0 answers

Clang warning: linker input unused

I have this warning message from clang when compiling a C++ project using Jansson JSON library. clang: warning: -ljansson: 'linker' input unused I'd like to get rid of it but I really have no idea what causes this. Here is the CMake in…
Manspider
  • 353
  • 3
  • 17
0
votes
0 answers

Adding static library to my existing project - Greenhills compiler

I have been given a static library(.a) by my client for my project. The objective of this static library is to integrate the functionality present in the library to my project. The problem I'm facing is that when I'm trying to link this file, my…
0
votes
1 answer

Suppress LNK4204 Warning

I'm stumped on how to suppress a flood of LNK4204 warnings for a vc110.pdb file in my VS2010 project. I've tried the /IGNORE approach, but after many attempts and extensive searching it appears that VS does not allow LNK4204 to be suppressed that…
0
votes
1 answer

How to Resolve Xcode Linker Warnings For Tests Target in App

The solution offered in Apple LLVM 6.0 Error: clang failed with exit code -1 may work to resolve this problem, but as I stated at the end of my problem statement is that I did not want to remove the Tests target unless that is the only solution. So,…
JeffB6688
  • 3,782
  • 5
  • 38
  • 58
0
votes
1 answer

'clang: error: linker command failed with exit code 1' 'directory not found for option'

The title says it all; Suddenly my project won't build anymore and I can't figure out why. Stackoverflow don't allow me to post picture, so here is a link; https://i.stack.imgur.com/iU9XL.png This error doesn't tell me much, maybe you know more…
0
votes
1 answer

Intel Compiler Warning with MIC - missing Libraries

While compiling+linking some MIC (Intel Xeon Phi coprocessor) code, I got this warnings. x86_64-k1om-linux-ld: warning: libimf.so, needed by /usr/local/Intel/parallel_studio_xe_2013_sp1/composer_xe_2015.0.090/compiler/lib/mic/liboffload.so.5, not…
SScholl
  • 598
  • 6
  • 19
0
votes
2 answers

How to remove wrong path from $(inherited) at the project level?

I' getting linker warning when I try to build the project: ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks' I double checked framework search…
Centurion
  • 14,106
  • 31
  • 105
  • 197
0
votes
0 answers

Xcode remove large number of category warnings with refactoring

I want to remove warnings from an older project that somebody else has written. I am confronted with over 200+ warnings about an instance method in a category overrides a method from class. So for example: In header: @interface Foo : NSObject …
Georges
  • 335
  • 2
  • 13