Hi, here's the scenario:
freshly built latest (native) gcc from a stable release tarball (4.5.1 for the sake of completeness, but that shouldn't really matter) with the full suggested 3-stage bootstrap sequence.
Also installed it as the host compiler and configured the system configured to use its runtime libraries.
Now, say I see a co...
Hello,
I've have investigating the effect of __restricting certain pointers in a C++-code, when compiling it via the GCC-compiler.
It turned that not only the run-time remains quite the same, but the executable doesn't seem to have changed, the size in bytes is exactly the same as before.
My GCC-version is
gcc version 4.3.2 [gcc-4_3-...
I have a big application that uses the dynamically loaded libraries. At the end of program while terminating it either segfaults or spits a message "glibc detected corrupted double-linked list". Looking at the valgrind output I think this is what the case is:
let say we have three files:
utilities.c - compiled with -fPIC and used...
Hi,
I have an inmod for processing one file records and eliminate some unwanted rows and then feed the records to fastload utility. But I am not able to find a correct way to compile it and use it. I have GCC (GNU C Compiler) and TCC (Tiny C Compiler) on my windows macine and I got Fastload utility also installed. I tried to compile the...
I compiled and installed GCC 4.5.1 via MacPorts in my installation of Mac OS X 10.6.4. When trying to ./configure software (such as, but not limited to: Wine 1.3.0, libjpeg, etc.), I set the compiler flag to CFLAGS = "-arch x86_64 -m64" to make sure that the compiled program will be 64-bit enabled. But I got an error during configure say...
I guess I'm not linking something right?
I want to call ABC.cpp which needs XYZ.h and XYZ.cpp. All are in my current directory and I've tried #include <XYZ.h> as well as#include "XYZ.h".
Running $ g++ -I. -l. ABC.cpp at the Ubuntu 10 Terminal gives me:
`/tmp/ccCneYzI.o: In function `ABC(double, double, unsigned long)':
ABC.cpp:(.text...
Fully aware, that the question I am asking is outside the purview of the C++ Standard, I am curious to know why GCC throws the same error twice? I know why the error is there, but am looking forwards to understand why the duplication in error message.
#include <iostream>
using namespace std;
struct A{
virtual void f1() = 0;
};
stru...
Hi to every one
I couldn't generate a control flow graph for a c program by gcc3.4.5.
if it is possible help me to generate cfg. I use the following commands but I couldn't find the cfg file.
$ gcc -o -dv prog.c -o prog
result: unrecognized command line option "-fdump-tree-fixupcfg"
$ gcc -fdump-tree-cfg prog.c
result: it ...
Good morning
Is it possible to change the default name of the file gmon.out, which is created when the profile flag (-pg) is set when compiling with gcc, to, for example, [executable name].gmon.out?
I need this because I have more than one executables, which are located in the same directory, and have to run parallel.
thanks in advan...
as we know .bss contains un-initialized variables. if in c code, programer initialize the variables before using them. then .bss is not necessary to be zero before executing C code.
Am I right?
Thanks
...
I have several .o files and want to bundle them in a .dylib, how can I do that it Mac OS X using gcc? Thank you very much.
...
I have installed the latest version of Cygwin, selecting the following packages during setup:
libgcc1
gcc
gcc-core
And created a file (test.c) with only this line:
#include <link.h>
Then ran the following from my Cygwin bash:
$ gcc test.c
... but got this error:
test.c:1:18: link.h: No such file or directory
Any ideas how I ...
hi
how can I use for each loop in GCC?
and how can i get GCC version? (in code)
...
Lately I have been working on OS X. Things were going pretty peachy for a while until somehow ld got on my system and now gcc won't use dyld. Furthermore, all of my shared libraries are in *.dylib format, and ld is stubornly ignoring there existance. If I mv ld from PATH, gcc just complains it cant find ld.
Please help me to get gcc ...
I'm pretty sure this is possible but I'm not sure how to go about it. I'm very new to building with GCC in general and I have never used FreeRTOS, but I'd like to try getting the OS up and running on a TI ARM Cortex MCU but with a slight twist: I'd like to get it up and running with Pascal. I'm curious:
Is this even possible to get wor...
Is there any one who knows how to install gcc3.x on Ubuntu 10.04? The original version is 4.4.3. I downloaded the gcc3.4.1 source code and compiled, but failed. Got the error " error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments ". Is there some arguments I need to se...
I've already read the gcc manpage, but I still can't understand the difference between -fpic and -fPIC. Can someone explain it, in a very simple and clear way?
(as a bonus, you might also compare them with -fpie and -fPIE)
Sorry if this is duplicate, but it's hard to search for a question that contains both -fpic and -fPIC.
Related ...
Folks, could you please give me an example of writing a custom gcc preprocessor?
My goal is to replace SID("foo") alike macros with appropriate CRC32 computed values. For any other macro I'd like to use the standard cpp preprocessor.
It looks like it's possible to achieve this goal using -no-integrated-cpp -B options, however I can't ...
GCC has a very verbose format for certain template error messages:
... some_class<A,B,C> [with int A = 1, int B = 2, int C = 3]
Any chance to make it show something like:
... some_class<1,2,3>
...
I have a project for which optimization has been set to "-Os" for all files via gcc command line flags. However, I want to disable optimization for some methods in one of the source files. To accomplish that, I am trying to specify the optimization attribute for those methods. However, gcc says that it is ignoring optimize attribute duri...