EvilZone

Programming and Scripting => C - C++ => : gh0st September 10, 2011, 08:35:28 AM

: ("C") trying to compile under ubuntu problem
: gh0st September 10, 2011, 08:35:28 AM
well I do
:
gh0st@ubuntu:~$ $ gcc -o demo demo.c -pg
$: order not found
(http://i56.tinypic.com/v81qu9.png)
Im new on ubuntu I need some help here Im getting started onto ASM language to start my way to the 0 day exploit world  8)
: Re: ("C") trying to compile under ubuntu problem
: xzid September 10, 2011, 08:38:17 AM
My guess is the $ at the start of bash command, btw... WTF are you running?

gh0st@ubuntu:~$ $ gcc -o demo demo.c -pg

to

gh0st@ubuntu:~$ gcc -o demo demo.c -pg

: Re: ("C") trying to compile under ubuntu problem
: gh0st September 10, 2011, 08:41:23 AM
anywayz I will install a debuger as kdbg I suppose cause compiling programs in that way are not hard but are a bit confusing
: Re: ("C") trying to compile under ubuntu problem
: xzid September 10, 2011, 08:43:18 AM
C + linux = gdb
: Re: ("C") trying to compile under ubuntu problem
: gh0st September 10, 2011, 09:00:20 AM
look I do now to install kdbg
:
gh0st@ubuntu:~$ sudo apt-get install kdbg
[sudo] password for gh0st:
reading lists of packets... done
creating trees of dependencies       
reading the information of the states... done
E: the packet cannot be located
now whats wrong ?
: Re: ("C") trying to compile under ubuntu problem
: xzid September 10, 2011, 09:04:23 AM
try: sudo apt-get update

also a debugger is not your problem, you need to learn C before you even understand a debuggers output.
: Re: ("C") trying to compile under ubuntu problem
: noob September 10, 2011, 02:18:03 PM
Install Codeblocks its more user firendly,i think you can find it in Ubuntu repository