Skip to main content

All Questions

Tagged with
4 votes
1 answer
87 views

Bootstrapping a C++ compiler from a C compiler on Linux

I am curious how to bootstrap a C++ compiler from a C compiler on Linux (x86-64 if the architecture is relevant). It is okay if not every C compiler is supported. For example a solution that works for ...
Greg Nisbet's user avatar
  • 3,156
0 votes
1 answer
239 views

Unable to use GTK on Debian, due to having libraries always be missing

Due to my laziness, I have downloaded precompiled binaries for GTK programmes (rather than compiling them which would have been a drag considering how time-wasting it is). EDIT:using sudo apt get, ...
haruhisuzumiya's user avatar
0 votes
0 answers
96 views

What is the bootstrapping technique in terms of building cross-gcc and cross-glibc?

Some tutorials for building linux from ground do in first step building the cross compiler toolchain. They do this by invoking so called bootstrapping technique. First they build cross-gcc statically, ...
ptiza_v_nebe's user avatar
0 votes
0 answers
97 views

Use of a user defined section name [ __attribute__((section("name")) ]

I do have some doubts about __attribute__((section("name")) .What is the real use of defining a user defined .section? Is there any examples to shows how it is useful?
Franc's user avatar
  • 309
23 votes
2 answers
5k views

How do I compile something for Linux if I don't have enough space for installing GCC?

I purchased a Human Machine Interface (Exor Esmart04). Running on Linux 3.10.12, however this Linux is stripped down and does not have a C compiler. Another problem is the disk space: I've tried to ...
NielsStenden's user avatar
-1 votes
2 answers
230 views

Where is the documentation for my compiler located?

Background On page 5 of C++ Primer 5th edition, Exercise 1.1 asks this question: Review the documentation for you compiler and determine what file naming convention is uses. Compile and run the ...
isakbob's user avatar
  • 145
2 votes
1 answer
1k views

Linux From Scratch: Error while compiling binutils 2.32

I am working on Linux from Scratch and currently, I am on this page. While compiling binutils-2.32, I am getting this error: lfs@pop-os:/mnt/lfs/sources/binutils-2.32/build$ ../configure --prefix=/...
narayanpatra's user avatar
0 votes
0 answers
34 views

How does my application in Linux know how to find libraries in the common places [duplicate]

When I compile a simple C program for Linux, how does it automatically know where to find the standard C libraries when I run it? Take the simple Hello World program for example which uses printf to ...
Engineer999's user avatar
  • 1,233
3 votes
1 answer
2k views

Why is LDBL_MAX 1.18973E+4932 and how is this possible?

If I write a C program to say the value of LDBL_MAX the largest value for a long double, #include <float.h> #include <stdio.h> int main(void) { const long double max = LDBL_MAX; ...
cat's user avatar
  • 3,528
17 votes
2 answers
64k views

How can I get a binary from a .py file

I need a program to compile python source code; as I found out at first I need to make a binary file from my python script. I've already checked a lot of links, but still I haven't found something ...
TrueBad0ur's user avatar
0 votes
1 answer
3k views

Argument list too long: /bin/sh on Linux redhat

I am having a script named as test.sh, which I use to run as below, which works fine:- /root/test.sh Then i tried to compile this script using the shc compiler as below with Warning:- shc -v -r -T -...
jassi10781's user avatar
6 votes
2 answers
44k views

gcc - error: no acceptable C compiler found in $PATH

I am trying to install GCC from source. I am following the instructions on the wiki at https://gcc.gnu.org/wiki/InstallingGCC and also on this question on SO. I am running into issues on the ...
Gerald Murphy's user avatar
3 votes
1 answer
3k views

Compiler for 32-bit LSB MIPS MIPS32 architecture

I have a TV set top box that i'm currently experimenting on: I established a serial console connection to it through a serial port located on the board. I am trying to compile a simple C executable to ...
razzak's user avatar
  • 297
1 vote
1 answer
44 views

Execute a script compiled on a different PC

If I have a compiled expect script, can I run it on a PC with no expect installed?
Marco Filippozzi's user avatar
5 votes
1 answer
3k views

Can I write C programs for Linux on OS X?

In case I'm writing a program (of any kind) in C, that is meant to be run on Linux environment, can I write it under OS X? (concurrency wise for example) I'm asking this because I like programming in ...
johni's user avatar
  • 153

15 30 50 per page