Description:
GNU C Compiler (gcc) user queries and answers.
|
|
|
Preprocessing
|
| |
Hi, I've a question about preprocessing of code. Let's say I've these three files: // File: b.h ...typedef int int_least8_t; typedef unsigned int uint_least8_t; ...///////////// // File b.c ...int main() { return 0; ...///////////// // File a.c ...int foo() { return; ...///////////// I would like to get the preprocessed file where all includes and... more »
|
|
Help organizing static libraries
|
| |
My company builds a system that has to be supported across multiple platforms (CentOS 3.8/32-bit, CentOS 4.5/64-bit, CentOS 5.2/64-bit, and Windows/32-bit on VC7 and VC8). Our system makes use of several OSS libraries that take a long time to build. These libs do not get updated often (say every 12-18 months) so... more »
|
|
New signing key for gcc-4.3.1???
|
| |
I am attempting to formalize my process for obtaining and building gcc for various platforms. (At this point, I only need to build from the release tarballs, and not from the svn repository.) So I have read through the instructions on the website and ran into one small issue - according to the web page ([link]), archives... more »
|
|
How to link builti-in functions such as ``puts'' with ``ld''?
|
| |
Hello, Here is a simple question. I want to get the binary file ``a'' through these two steps. My resource is --- ;hello.asm section .text extern puts global main _start: push dword msge; call puts; add esp, byte 4; ret; msge : db "hello, world!", 0 === and I use the following commands to create file ``a''... more »
|
|
Hierarchical Library Linking
|
| |
Hello all, I have a hierarchy of static libraries that i'm trying to link togethers. The reason it is set up this way is to have lower level math routines, higher level math routines, and then control software. Where set of the math routines is complied into a static library. I've setup some simple files to try to figure this out:... more »
|
|
Cross compiling for powerpc on AMD64
|
| |
Hi there, I found a very nice flag: -m32. Then all I had to do is install a gcc-multilib (whatever that means) and I could generated 32bits exe on my amd64 linux debian box. Well now I would like to do the same but for powerpc. I tried: - mcpu=powerpc but it says the is a deprecated option. What should I use... more »
|
|
forced unwind support error trying to cross compile glibc
|
| |
Hi All, I'm trying to cross compile glibc for the i386 target. I'm using glibc 2.7, binutils 2.18 and gcc 4.3.1 and the host PC is 64bit Centos AMD. In the configure phase the glibc build gives this error msg: checking for i386 TLS support... yes running configure fragment for nptl/sysdeps/pthread checking for forced unwind support... no... more »
|
|
printing calling function's name from __cyg_profile_func_enter / exit?
|
| |
Hi, is there any way to print the calling function's name from the hooks __cyg_profile_func_enter and __cyg_profile_func_exit? __func__ or __PRETTY_FUNCTION__ does not work, as it will just print the names of the hooks. But as the hooks get the calling function's address passed, I was hoping that it may... more »
|
|
O_DIRECTORY and -D__USE_GNU
|
| |
Hello Everybody, I am just beginning to learn Linux System Programming from the book by Robert Love. I was having trouble using the O_DIRECTORY bit with the open system call. gcc would not recognize O_DIRECTORY. The file fcntl.h shows that __USE_GNU has to be defined to use it. Now, if I try to compile the program using:... more »
|
|
|