Tag Info

Hot answers tagged

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


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 ...


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 ...


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, ...


1

The full error message tells you part of the solution: you need to compile nauty with the -fPIC flag. Download nauty, unzip it, cd into the dir CFLAGS=-fPIC ./configure make Download pynauty, unzip it, cd into the dir ln -s ../nauty* nauty However, the pynauty's setup.py file appears to be misconfigured: it doesn't include the correct nauty files and so ...



Only top voted, non community-wiki answers of a minimum length are eligible