I know I am new here, but I hope someone can please help me start?
sudo aptitude install build-essential
sudo gedit first.c
Up until this point everything seems fine except when I save it the code I get this report:
Code:
(gedit:2977): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.EDN36V': No such file or directory
(gedit:2977): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:2977): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.KE136V': No such file or directory
(gedit:2977): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
Following the rest to run the file results:
cc -c first.c
Code:
first.c: In function ‘main’:
first.c:5:7: error: expected ‘;’ before ‘{’ token
cc -o first first.c
Code:
first.c: In function ‘main’:
first.c:5:7: error: expected ‘;’ before ‘{’ token
./first
Code:
bash: ./file: No such file or directory
Output should show as follows
Hello, world
... but it is not.
-----
Also I added
sudo apt-get install gcc build-essential
To install gcc, but I have the same results.
----
*Notes*
using Ubuntu 11.10