Top "Gcc" questions

GCC is the GNU Compiler Collection.

ld cannot find -l<library>

I am having trouble installing pyipopt on ubuntu 12.04. During linking, I receive the error: /usr/bin/ld: cannot find -lcoinhsl …

gcc ubuntu linker shared-libraries ld
Unable to specify the compiler with CMake

I have a problem with this CMakeLists.txt file: cmake_minimum_required(VERSION 2.6) SET(CMAKE_C_COMPILER C:/MinGW/bin/…

gcc cmake mingw
What does this GCC error "... relocation truncated to fit..." mean?

I am programming the host side of a host-accelerator system. The host runs on the PC under Ubuntu Linux and …

c eclipse memory-management gcc embedded
Why does the C preprocessor interpret the word "linux" as the constant "1"?

Why does the C preprocessor in GCC interpret the word linux (small letters) as the constant 1? test.c: #include <…

c linux gcc c-preprocessor
Compiling an application for use in highly radioactive environments

We are compiling an embedded C++ application that is deployed in a shielded device in an environment bombarded with ionizing …

c++ c gcc embedded fault-tolerance
Clang vs GCC - which produces faster binaries?

I'm currently using GCC, but I discovered Clang recently and I'm pondering switching. There is one deciding factor though - …

optimization gcc compiler-construction clang benchmarking
Update GCC on OSX

So I am a new programmer and I just installed XCode on my Macbook to get the GCC. I think …

c++ macos gcc compiler-construction g++
What is the purpose of using -pedantic in GCC/G++ compiler?

This note says: -ansi: tells the compiler to implement the ANSI language option. This turns off certain "features" of GCC …

c++ c gcc g++
String in function parameter

int main() { char *x = "HelloWorld"; char y[] = "HelloWorld"; x[0] = 'Z'; //y[0] = 'M'; return 0; } In the above program, HelloWorld will be …

c gcc string-literals function-parameter
How do I execute a file in Cygwin?

How can I execute a.exe using the Cygwin shell? I created a C file in Eclipse on Windows and …

c gcc cygwin