GCC is the GNU Compiler Collection. It's the de facto standard C compiler on Linux and supports many other languages and platforms as well.

learn more… | top users | synonyms

-1
votes
1answer
19 views

return makes pointer from integer without a cast - but types are okay?

Just some code. In one file and its header: // header: extern char * thessc_config_member_get_config_key(struct config_member_t *m); // implementation: inline char * ...
0
votes
0answers
16 views

C/C++ Run/Debug configuration in Eclipse

I am new to C/C++ development in Eclipse and trying to configure Eclipse. I'm working in a Linux environment with GNU GCC and my toolchain is detected by Eclipse. As given in the Eclipse documentation ...
0
votes
1answer
39 views

Structure packing with C macros

I'm trying to implement #pragma pack directive through _Pragma оperator, to create macros for data structure alignment. All this is described in the book in the book "C: In a Nutshell" #define ...
1
vote
1answer
12 views

Building issue of Scikit-learn Python library in Windows

I'm trying to build scikit-learn library for Python which has it's build files as c++ files in a Windows 32-bit system. While building I get the following error. undefined reference to ...
0
votes
1answer
52 views

Linker error-Calling function in C++ file from C file

I am trying to execute basic code in C and C++ in Linux environment. I am using eclipse to run it. Current project is created as C project. All I am trying to do is to call a function from different ...
1
vote
0answers
20 views

Padding with multiple derivation of empty classes. Only under Windows

We had a problem today where my code was generating crazy prices. I eventually boiled it down to the fact that my message classes were the wrong size, even though I am packing on one byte and have ...
0
votes
0answers
17 views

Python 'gcc-4.2' error with Xcode

I am attempting to download gdal via the "brew install gdal" command. However, I am getting the output: ==> /usr/local/bin/python setup.py install --prefix=/usr/local/Cellar/gdal/1.10.0 ...
-6
votes
0answers
89 views

gcc is super slow [on hold]

From some reason my gcc compiler is taking 2 minutes to compile. I'm testing it with the basic hello world program so it is not the code. I tried code blocks and wxdev, both work fine but compiling ...
0
votes
0answers
34 views

C++ Auto-vectorization of STL vector on GCC 4.6.3

Setup I get curious behaviours when trying to vectorize a code on GCC 4.6.3. In the following is the snippet code using 3 different ways to perform a simple addition. loopFunc() uses pointers. ...
0
votes
0answers
38 views

no matching function for call to 'lower_bound' with newer gcc

I'm having some trouble compiling code that uses std::lower_bound on systems with newer versions of gcc. From my tests, 4.1 works, but 4.6 fails. Here is the relevant code snippet: template ...
1
vote
0answers
23 views

Obtaining MinGW installation with GCC 4.1.1

I need to use the GCC compiler version 4.1.1 on Windows, from a MingGW distribution if possible. I've been looking for a way to install an older version with the mingw-get installer but I don't find ...
0
votes
2answers
34 views

Silly C++ linking trouble in GCC

Sorry for the non-specific question title. On short, here's what I have: file1.cpp #include "file1.h" int main() { somefunc(); } file1.h #pragma once #include "file2.h" int somevar; ...
7
votes
2answers
77 views

combination of unary minus and float conversion

Consider the following C statements: unsigned long x = 1; float a = -x; double b = -x; I would expect the unary minus term to yield an unsigned long value equal to ULONG_MAX and a and b to be set ...
-3
votes
1answer
41 views

How can activate C syntax highlighted in VIM?

I have an image with CentOS, GCC compiler, and VIM editor. With a long period time ago i achieved to activate C syntax highlighted but i don't remember how, if you could help ?
1
vote
3answers
33 views

Testing FPU on arm processor

I am using a Wandboard-Quad that contains an i.MX6 ARM processor. This processor has an FPU that I would like to utilize. Before I do, I want to test how much improvement I will get. I have a ...

1 2 3 4 5 726
15 30 50 per page