Tag Info

New answers tagged

5

Indeed, clear_screen is a macro: $ grep clear_screen /usr/include/term.h #define clear_screen CUR Strings[5] You will have to use some other name, like the linked page does: void Clear_screen (void) The compiler messages also state this: clear_screen_UNIX.c:9:6: note: in expansion of macro ‘clear_screen’ That's why the errors seem ...


0

I'm not clear on your steps despite your edit. Assuming you: downloaded https://web.cs.dal.ca/~peter/software/pynauty/pynauty-0.4.tar.gz extracted it to aDirectory ran cd aDirectory/nauty04/ (or otherwise (c)hanged (d)irectory to it executed following commands without a problem or error: ./configure # note this command for later make nauty.o nautil.o ...


2

malloc() allocates memory from the heap, which it manages. It very well may return a chunk of heap that was previously used and then free()ed, and so it will still contain whatever data was there before. When there is no heap yet, or not any free, it has to obtain more ram from the kernel to enlarge the heap. When the kernel gives a new process more ram, ...


0

I had to force the version for the gcc-4.9-base package to get past the error message you posted. Then installing worked sudo apt-get install gcc-4.9-base=4.9.2-0ubuntu1~14.04 Now you can do the regular sudo apt-get install gcc-4.9


5

Desktop is not located at /Desktop rather it is located at ~/Desktop. Thus execute these commands. cd ~/Desktop (for changing directory to Desktop) gcc hello.c -o hello (for compiling C program) Then execute your application by ./hello , if it shows any error change its permissions with chmod +x hello


4

Then I typed within the terminal: cd /Desktop /Desktop is not the path to your desktop. /Desktop is the path to a directory "Desktop" in / (your root directory). /home/<username>/Desktop or, shortened, ~/Desktop is the path to your desktop. So first change your terminal's working directory to your desktop's path: cd ~/Desktop Then compile the ...


0

I do not often use aptitude, but in case of problems with different gcc versions and unmet dependencies, apt-get is some times unable to correct problems saying "you have held broken packages" That's the day, you should install aptitude, and try to install the package you wish. It clearly shows all dependencies and makes not only one suggestion. First ...


-1

you have to install binutils package you are missing some binaries sudo apt-get install binutils -y


2

You need to edit your own module makefile. Kernel build makefiles are a little different from regular makefiles: the target needs to be modules, not the name of your module (test), which only needs to be specified via the obj-m variable: obj-m += test.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules


2

Try this: sudo apt-get install gcc


0

I'm on Ubuntu 12.04, simply downloaded the latest sqlite3 binary from https://sqlite.org/download.html and sudo cp ~/Downloads/sqlite3 /usr/bin/sqlite3 and I was all set.



Top 50 recent answers are included