All Questions
Tagged with compiler-flags linker
8 questions
0
votes
0
answers
239
views
Relocation truncated to fir error with pgi and gcc compilers
I am getting an error with gcc(7.2.0) and also pgi(18.4) compilers.
There is a scientific application (in fortran) that I am compiling that has some dependencies.
These dependencies are compiled with -...
2
votes
0
answers
365
views
Force linker / C compiler to include defined but unused inline functions?
My project consists of one .c file and a math library in one .h file, with all functions declared inline. Not every function in the math library is used in the main program. These functions are not ...
1
vote
1
answer
3k
views
ld: library not found for -lX11
1 CC = g++
2 FLAGS = -g -DGL_GLEXT_PROTOTYPES -I./glm -Wall
3 LDFLAGS = -lX11 -lpthread
So I have these in my Makefile
but I get the error
ld: library not found for -lX11
clang: error: linker ...
-1
votes
2
answers
1k
views
gcc won't let me 'just compile' c source after addition of source files
I'm writing a program that looks roughly like this:
Some main code in src/
Some code in Demo1/
I compile Demo1's stuff into .o , then .so, and use that .so in the creation of the main ...
0
votes
1
answer
274
views
Can't make executable portable
I made a little c++ program with this library: http://libtins.github.io
I compile with: g++ -o arp arp.cpp -ltins
It runs fine (Ubuntu 14.04 64 bit), however if i send the executable to a friend, he ...
2
votes
1
answer
1k
views
Is there any way to override the -fvisibility=hidden at link time?
We are using an third party static library, let say A.a for android development. We link it as shared library and it works fine in the one App, but when use B.so to build another C.so, some symbols in ...
0
votes
1
answer
9k
views
Compiler flags in Eclipse
My build requires that I issue the following commands:
$ g++ sniff.cpp -o sniff -lcrafter
However, in my Eclipse build, all the complier gets is:
g++ -o "sniffer_crafter" ./src/sniffer_crafter.o ...
1
vote
1
answer
224
views
Reordering gnu autotools linker flags
I'm using gnu autotools with my project in C++ (the autotools config is automatically generated by eclipse cdt, but this does not matter i think). I'm using LLVM libs and right now I'm facing a ...