Top "Gcc" questions

GCC is the GNU Compiler Collection.

How to suppress "unused parameter" warnings in C?

For instance: Bool NullFunc(const struct timespec *when, const char *who) { return TRUE; } In C++ I was able to put …

c gcc gcc-warning
How do you disable the unused variable warnings coming out of gcc in 3rd party code I do not wish to edit?

I'd like to know what switch you pass to the gcc compiler to turn off unused variable warnings? I'm getting …

c++ gcc compiler-warnings compiler-flags
How to compile without warnings being treated as errors?

The problem is that the same code that compiles well on Windows, is unable to compile on Ubuntu. Every time …

c gcc compiler-warnings
Where is PATH_MAX defined in Linux?

Which header file should I invoke with #include to be able to use PATH_MAX as an int for sizing …

c linux gcc include clang
How does #include <bits/stdc++.h> work in C++?

I have read from a codeforces blog that if we add #include <bits/stdc++.h> in a C++ …

c++ gcc c++11 g++
How to print the ld(linker) search path

What is the way to print the search paths that in looked by ld in the order it searches.

linux gcc linker ld
Using GCC to produce readable assembly?

I was wondering how to use GCC on my C source file to dump a mnemonic version of the machine …

c gcc assembly
Build .so file from .c file using gcc command line

I'm trying to create a hello world project for Linux dynamic libraries (.so files). So I have a file hello.…

c linux gcc shared-libraries
How to compile a static library in Linux?

I have a question: How to compile a static library in Linux with gcc, i.e. I need to compile …

c gcc static-libraries
long long int vs. long int vs. int64_t in C++

I experienced some odd behavior while using C++ type traits and have narrowed my problem down to this quirky little …

c++ gcc cstdint