[02:52] any c programmers? [02:52] jest need to know which packages I need to install to get the compiler to work correctly [02:53] seems to work fine when I compile "hello world" but then running it does nothing [02:53] I'd recommend starting with build-essential. That ought be everything you expect. [02:53] ok, got that [02:53] having some other problem then [02:54] the program compiles ok, but doesn't do anything when I run it... its only supposed to printf ("hello world!\n"); [02:58] thoughts? [03:00] Dunno. You might try stepping through it with a debugger, or looking at strace output. It's probably a bug. [03:01] can't see how... its only 4 lines... and I've compared it to the book [03:01] #include [03:01] int main (void) [03:01] { [03:01] printf ("hello world\n"); [03:01] return o; [03:01] } [03:02] return o? [03:02] erm [03:02] errr... 0 [03:02] THAT was a typo... :) [03:03] its right in my source [03:04] LukeJM: should work. Why don't you pastebin the actual file and your terminal session LukeJM? [03:09] lucas@lucas-laptop:~$ gcc -Wall test.c -o test [03:09] lucas@lucas-laptop:~$ test [03:09] lucas@lucas-laptop:~$ [03:09] heh [03:09] ./test [03:09] oh you gotta be kidding me [03:10] *shakes head* [03:10] yeah, . isn't in your PATH, so you're calling some shell builtin probably [03:10] works like a charm... :) [03:10] That, or /usr/bin/test [03:11] sheesh... gotta be carefull what I name stuff I guess [03:11] which ${potential-name} is a good thing to run first :) [03:12] so even though i'm in the same directory as the executable I gotta tack the "./" on there? [03:12] Or add ./ to your $PATH [03:12] (note that this is dangerous, as you never know what might be executed, depending on where you are) [03:13] weird... I didn't have that problem when I was running it at school [03:13] LukeJM: what distro? [03:13] LukeJM, echo $PATH at home at at school : they might be different. [03:13] they're on ubuntu as well... [03:13] sysadmin probably added it [03:14] huh.... learn something new every day... thought I was going crazy [03:14] silly sysadmin : someone's going to be a wrapper around ls and nab the box one day. [03:14] s/be/put a/ [03:16] well good... now I can finally bang out this temp conversion program assignment [03:17] * persia idly wonders if linking against a conversion library would be an acceptable solution [03:18] lol, i'm guessing no [03:18] I also :) [03:18] thanks for the help jrib, persia... === merriam_ is now known as merriam [03:19] np === riot_le_ is now known as riot_le === LjL-Temp is now known as LjL === LjL-Temp is now known as LjL === pleia2 changed the topic of #ubuntu-classroom to: Ubuntu Classroom || https://wiki.ubuntu.com/Classroom || https://lists.ubuntu.com/mailman/listinfo/Ubuntu-classroom || Ubuntu Open Week, Mon 3 Nov - Fri 7 Nov! Session details here: https://wiki.ubuntu.com/UbuntuOpenWeek === daithif is now known as daithif_ === daithif_ is now known as daithif [21:51] test [21:51] sry [22:40] :-X [22:44] :* [22:45] :-D