linker-flags Questions
1
I don't find any useful information on the differences between "-fno-pie" and "-no-pie". Are they gcc flags or ld flags? Are they both necessary or not?
I found a piece of makef...
Stirk asked 3/11, 2022 at 8:42
2
Solved
I have:
a shared library, say libShared.so, which contains a class Bar, with a method int Bar::do(int d) const
a static library, say libStatic.a, which contains a class Foo, with a method int Foo...
Popgun asked 28/7, 2015 at 8:21
3
Solved
I'm using CMake for a project that comes in two versions, one of which requires -lglapi and the other does not.
So far the lines we used look like that:
SET(CMAKE_C_FLAGS "-O3 -xSSE3 -restrict ...
Butterfly asked 27/4, 2015 at 16:35
2
Solved
How do I add linker-flags "DEF" and "NODEFAULTLIB" to vs2012 project via CMAKE?
Cynosure asked 13/9, 2013 at 12:46
4
Solved
I saw this and answers in stackO, but didn't find how to exclude folders.
I have 3 folders with a lot of .h , .m and .mm and i need to exclude them temporary, but not to remove references. How ca...
Izy asked 20/7, 2016 at 9:33
3
Solved
What are the ".map" files generated by gcc/g++ linker option "-Map" used for ?
And how to read them ?
Cistern asked 5/3, 2014 at 13:57
1
I'm having a problem with cmake / gcc / Linux.
No matter what I try, I cannot get rid of CMAKE_CXX_FLAGS on my linker line. CMake keeps passing them when invoking g++ in link mode.
I have -fopenm...
Ozonize asked 30/11, 2017 at 19:56
1
Solved
The man page of gcc 6.3 says:
--wrap=symbol
Use a wrapper function for symbol. Any undefined reference to
symbol will be resolved to "__wrap_symbol". Any undefined
reference to "__real_symbol" ...
Sheik asked 27/9, 2017 at 9:20
1
Solved
I tried to add the following in the .pro file of our project:
win32 {
...
QMAKE_LFLAGS_WINDOWS += -Wl,--large-address-aware
}
I get an error LINK : warning LNK4044: Nicht erkannte Option /Wl,...
Reconstitute asked 14/8, 2017 at 18:24
2
Solved
My other libraries not allow me to set -ObjC or all_load flags.
So I need to use -force_load to link my library.
I have "GoogleOpenSource.framework" & "GooglePlus.framework" under my project, ...
Offwhite asked 23/7, 2015 at 6:58
0
I noticed many people, including me, do not accurately know the rationale and intended use behind the linker's search paths: 'library-path', 'rpath', and 'rpath-link'. Could someody explain this to...
Courtmartial asked 1/3, 2017 at 9:50
1
Solved
What's the difference between Build Phases -> Link Binary with Libraries or Build Settings -> Linker Flags?
The former does not seem to allow you to specify between Debug vs Release, and the frame...
Zymogenesis asked 7/2, 2017 at 21:39
1
In my project I have a high number of static libraries. I currently use the -ObjC linker flag which will include all members of static libraries that implement any objective-c class.
I have 1 par...
Radiocommunication asked 22/1, 2017 at 6:51
1
Solved
I have installed an R package but, in order to load it via library, the LD_LIBRARY_PATH needs to be set to the path where one of the libraries, called libhts.so.2 is located. The loading only works...
Captive asked 5/1, 2017 at 20:58
2
Solved
I'm trying to use cmake in a project which is compiled using armcc, but use a custom proprietary linker (not armlink).
I've changed the variables in the toolchain.cmake file as following:
unset (...
Hollow asked 13/7, 2016 at 19:6
1
Solved
[Update] Sorry for top posting, but it might help to know this first, as it probably changes the problem.
The --wrap is an option to the linker ld, not to gcc.
But my Eclipse project is using gcc...
Quanta asked 22/10, 2015 at 9:52
1
Solved
As the title reads, I go into my Build Settings for my app, and search for "Other Linker Flags", nothing is returner. If I even search simply "Other", there is no "Other Linker Flags" section. I've...
Tragopan asked 25/11, 2014 at 21:38
2
Solved
I read the following answer, so I know that "Unknown class in Interface Builder file" error can be solved using the -ObjC linker option. (FYI, MyClass is in static library.)
https://mcmap.net/q/65...
Macedonian asked 9/11, 2013 at 9:56
2
Solved
I'm copy-pasting a section from the man of ld :-
-u symbol
--undefined=symbol
Force symbol to be entered in the output file as an undefined symbol. Doing this
may,for example, trigger linking of ...
Leaden asked 18/7, 2014 at 21:26
1
Solved
CMake seems to prepend linker flags at the front of a GCC compilation command, instead of appending it at the end. How to make CMake append linker flags?
Here is a simple example to reproduce the ...
Terminology asked 11/3, 2014 at 5:12
1
© 2022 - 2024 — McMap. All rights reserved.