The compiler tag has no usage guidance.
-2
votes
1answer
45 views
C compiler while installing GCC!
I have a virtual machine running RHEL7. I am trying to install GCC from source following
https://gcc.gnu.org/wiki/InstallingGCC
I am unable to do
yum groupinstall "Development Tools"
or
yum ...
0
votes
1answer
59 views
how to change the default CC command on mac os?
export PATH=./ndk_tools/bin/:${PATH}
export CC=arm-linux-androideabi-gcc
export CXX=arm-linux-androideabi-g++
echo \
"$CC"
CC --version
I use the script to change the default CC command, but it doesn'...
1
vote
1answer
130 views
Problems compiling VASP
I'm trying to compile VASP 5.4 on Ubuntu 14.04 and running into issues. I believe I'm most the way there but when I run the make command it seems to bottle out with out a specific error. I am unable ...
0
votes
0answers
34 views
Compiling: Scons can't find libav
The compiler errors I keep getting are:
error: ‘CODEC_ID_HUFFYUV’ undeclared (first use in this function)
if (!codec) codec = avcodec_find_encoder(CODEC_ID_HUFFYUV);
...
0
votes
1answer
49 views
./configure returns Fortran compiler error?
Attempting to run a configure file for the fv-fileviewer gives me this error:
configure: error: Could not find a Fortran compiler in >/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/...
3
votes
1answer
46 views
C# compiler/IDE for Redhat Enterprise Linux 7?
Can someone point me to C# compiler/IDE for Redhat Enterprise Linux 7 ?
2
votes
1answer
332 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 ...
0
votes
0answers
437 views
Custom GCC installation - how should I set my environment variables?
After some pains I was finally able to build me a gcc 4.9.3 (I don't have root on the machine I'm working on, and Fedora 22 doesn't package gcc 4.9 anyway). And it even works, i.e. using it to compile ...
1
vote
1answer
27 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?
0
votes
0answers
69 views
Configure script failed to find C compiler, despite gcc being installed on Sabayon
I have been trying to compile Moksha from source code on a Sabayon SpinBase Virtual Machine, but whenever I run a configure or autogen.sh script I get an error:
checking for gcc... gcc
checking ...
2
votes
0answers
40 views
What is the background of the program segmentation?
Each program is separated into several segments like:
code segment
data segment
stack segment
heap segment
But who was responsible for that progression? The compiler and linker has to support that ...
4
votes
1answer
858 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 ...
3
votes
1answer
808 views
How to install a C compiler on Linux?
I need to install a compiler in Linux. First of all, some system information:
-bash-3.2$ uname -a
Linux axentraserver.xxxxxxxx.xxxxxxxxxxxxx.com 2.6.31.8 #97 Thu Sep 12 10:38:00 EDT 2013 armv5tel ...
0
votes
1answer
420 views
How do i write a shell script so that when i compile my c++ program it will put the binary into the Binary Directory
I have a directory called Binary and bunch of source files:
./
├── Binary/
├── lesson02.cpp
├── lesson04.cpp
└── lesson06.cpp
when I compile the source code
g++ lesson01.cpp -o lesson01
I want ...
0
votes
1answer
260 views
GCC “__gmpn_invert_limb” compilation error
I'm currently trying to compile GCC 4.9.2 using GCC 4.2.
The problem I have run into is that I have a working GMP installation (6.0.0a) but GCC fails to link to it after a while. The error I get is:
...
0
votes
1answer
1k views
C compiler cannot create executables whilst creating backport in Debian
I am trying to create a gcc-defaults-1.133 backport for my Debian Wheezy installation from Sid/Jessie. As this requires dpkg-dev greater than version 1.17.11 I assume I need a backport of this too.
...
0
votes
1answer
60 views
-fPIC Flag System-wide?
Position Independent Code means that the generated machine code is not dependent on being located at a specific address in order to work. and the jumps are relative.
So is it OK to declare -fPIC ...
5
votes
1answer
1k views
Replace FreeBSD base clang with ports clang
FreeBSD 10 was the first release that officially released with Clang as the default, base compiler.
Most ports, unless specially marked, now compile using the base ("pre-installed") clang.
However,...
5
votes
1answer
2k views
Build Transmission 2.84 .deb package with checkinstall
I'm trying to compile and make by myself some .deb packages to keep my Raspbian more up to date than the repository. Now I want to update Transmission to v 2.84.
Here's what I've done:
Download the ...
2
votes
0answers
463 views
Has anyone got the Android NDK toolchains to run on ARM instead of x86 or x86_64?
I have been going over the "dev scripts" in the $NDK/build/tools directory of the Android NDK and have been modifying them to build host/build tool-chains that run on ARM instead of x86 or x86_64. For ...
9
votes
3answers
1k views
How does make continue compilation?
I know that I can interrupt a make process anytime without having to recompile the entire source tree again. As I know, make only compiles a target if it's not compiled yet, or the source code is ...
0
votes
1answer
925 views
Clang with Code::Blocks on Debian Wheezy [Stable]
In my pretty default Debian install:
devsys@zotac:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.4 (wheezy)
Release: 7.4
Codename: ...
2
votes
1answer
619 views
How to add new gcc compiler to my Linux mint OS
I want to add new gcc cross compiler to my Linux mint. I need this compiler to compile codes that should run on a Khepera III Robot. I have searched a round but I didn't find any clear answer to my ...
0
votes
1answer
2k views
How to install C++ compiler for Eclipse
Im unable to run my C++ codes because Eclipse has not c++ compiler installed in it . How can I install C++ compiler for eclipse on Fedora 20 or other linux os's?
When I execute my codes it says:
...
0
votes
1answer
2k views
How to set g++ 4.8 to be the default after installing? [closed]
After executing the following on Ubuntu 12.10 how do I set 4.8 to be the default C++ compiler?
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
...
55
votes
4answers
3k views
How to compile the C compiler from scratch, then compile Unix/Linux from scratch
Let's say I work for a large services organisation outside the US/UK. We use UNIX and Linux servers extensively.
Reading through this article it mentions that it would be easy to insert a backdoor ...
1
vote
1answer
69 views
How can I get a regular gcc etc. under HomeBrew under Mac OSX Mountain Lion?
I have a Mac with command-line developer tools installed, including Apple's LLVM C compiler, present as /bin/gcc.
How can I get a real gcc installed so that e.g. make will see the standard gcc ...
0
votes
1answer
439 views
Can we run objective c on UNIX operating system? [duplicate]
How can I run objective c on Unix systems?
0
votes
2answers
333 views
how to code c++ via ssh with Vim or Vi? [closed]
Would I have to rent and configure a server or something? I'm sort of new to unix, but when
I was in school I had this nifty setup where I could ssh from any terminal in linux or mac or putty in ...
0
votes
2answers
2k views
Unable to compile simple Less file using node-less
I'm trying to compile a very simple less file which simply includes Bootstrap:
/* application.less: The most awesomely complicated file in the whole world. */
@import "bootstrap/bootstrap.less";
I'm ...
1
vote
1answer
351 views
Making CodeBlocks work with Terminator?
I want to make the programs compiled by Codeblocks, run the shell program 'Terminator'.
So I went into Environment Settings > Terminal to launch console programs, the default value is xterm -T $TITLE ...
2
votes
2answers
375 views
Is there a good FOSS utility for converting machine code to assembly or even C?
If I buy a piece of x86 32-bit or 64-bit software but I don't receive the source code, and I need to modify the software, I'll need to convert the machine code back into a high level language or at ...
12
votes
2answers
4k views
Why can't I run this C program?
I'm trying to run my first "process" program, but I get the following error :
./fork.c: line 4: syntax error near unexpected token `('
./fork.c: line 4: `int main()'
I'm pretty sure that the code is ...
5
votes
2answers
4k views
How can I get a static C compiler?
I'm playing around with chroot environments, and I'd like to have a portable C compiler so that I can easily set up some basic build-tools in each environment without having to move too many libraries ...
2
votes
1answer
392 views
What flags are used to compile debian stable packages?
Ubuntu wiki states that its packages are compiled with secure flags and secure kernel options. I cannot find this information about debian. See https://wiki.ubuntu.com/CompilerFlags
5
votes
1answer
532 views
What distribution-maintained cross-compile toolchain packages exist?
I have just learned of Gentoo's sys-devel/crossdev package. This is a package that is useful for creating a cross-compiling toolchain.
Are there any other such packages out there on other ...
28
votes
6answers
27k views
Can we get compiler information from an elf binary?
Is there some chance to know how a binary was built, under Linux? (and or other Unix)
Compiler, version, time, flags etc...
I looked at readelf and couldn't find much, but there might be other ways ...