Tag Info

New answers tagged

0

sudo aptitude update sudo aptitude upgrade -full sudo aptitude install libc-dev g++ build-essential This solved my problem although there may be an easier way to do it.


0

I'd try to install sudo apt-get install build-essential


0

I am running linux mint 17.1 and it GCC is already installed. If not then sudo apt-get install gcc will do the work i believe. Else go to Synaptic Package Manager and search for GCC and install the required packages. I am having gcc 4.8.2 installed in my system, you can check it by using gcc --version in the terminal if it is installed already.


1

This is really nothing to do with gcc (or g++): what you need is file redirection ./y.out < file.in or (to redirect the program's output as well as its input) ./y.out < file.in > file.out


2

first of all ,I don't know if this question should be asked here as it is a c language related question but since it is under ubuntu I will respond : the GCC compiler will look for headers depending on how you declare the header so there is two possibilities first : Declaring the header using angled brackets <> exemple : #include <math.h> in ...


2

The GCC 5.x suite is not available in 15.04. You can get it by adding a PPA, such as https://launchpad.net/~nicola-onorata/+archive/ubuntu/toolchain I am not sure if this will result in it being the default compiler though, so you may still need to call it as g++-5or similar, to use it. You may also have some serious issues with linking to certain C++ ...


0

There are a number of libgsl packages, as shown by an apt-cache search: $ apt-cache search libgsl libgsl0-dbg - GNU Scientific Library (GSL) -- debug symbols package libgsl0-dev - GNU Scientific Library (GSL) -- development package libgsl0ldbl - GNU Scientific Library (GSL) -- library package libocamlgsl-ocaml - GNU scientific library for OCaml ...


0

Try running: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/ && sudo ldconfig && ./hon-x86_64. The libstdc++.so file in /usr/lib/gcc/x86_64-linux-gnu/4.9.2 is not the one that should be used. Also, a file is being specified (libstdc++.so). You should be specifying the directory the file is in (/usr/lib/x86_64-linux-gnu/). ...


3

As you were told in your other question, gcc -o output_name filename.c produces output_name which has no extension. Why should it? You didn't tell it to. Next time, run the command giving the output file name an extension. Something like .bin or .exe or .myexecutableprogram or whatever. File name extensions are arbitrary in Linux. Since you have now ...


3

Unlike windows, Linux does not depend upon extension of a file to determine what type of file it is. Instead, it will check first few bytes of the file and determine what type of file it is. Hence the output file given by gcc requires no extension. You may add whatever extension you want(by changing -o output_name to say -o output_name.abcd), but it is not ...


2

It does not have one. You can do gcc -o myprog.exe filename.c and it will be called myprog.exe. Unlike Windows there is no default extension for executable files on Linux. If you want to mark a file as executable do chmod +x file. ls -l shows you if the x (executable) flag is set for your file: user@host# ls -l filename -rwxr-x--x 1 ubu users 42 Mai 10 ...


1

with ls command we have option like hide --hide=PATTERN do not list implied entries matching shell PATTERN (overridden by -a or -A) So it will hide all matched and show what not matched. For example as in your case ls --hide='*.c' As you said your directory contains C Programs and its output files , the above command will ...


0

quoted from http://colotronics.blogspot.com/2014/08/msp430-toolchain-in-ubuntu-1404-with.html cd ~ mkdir mspgcc_install cd mspgcc_install Dependencies sudo apt-get install patch ncurses-dev build-essential bison flex zlib1g-dev sed automake gawk mawk libusb-1.0.0 libusb-1.0.0-dev dos2unix srecord Downloads: wget ...


0

Install the missing development libraries: sudo apt-get install libglib2.0-dev



Top 50 recent answers are included