Author Topic: Rc11 Gcc [solved, Pls Don't Read]  (Read 2059 times)

Fatty

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • http://
Rc11 Gcc [solved, Pls Don't Read]
« on: September 30, 2005, 10:26:41 am »
Hi all.

I'm using RC11 with XFCE4 + GCC/header from the RC11 feed.

When I compile really simple/single file program (like the hello world stuff) with 'gcc -o test test.c', the program can be compiled to executable but nothing happen when run. Any suggestion?

[Solved] sorry for such stupid question. Tried all possible solution but missed out the most obvious one... no path pointed to my /home and it requires ./test to run  
« Last Edit: September 30, 2005, 10:36:17 am by Fatty »
C1000 - Empty, waiting for Sharp ROM.
C3100 - dualbooting Andromeda Debian from 2or0 and Zubuntu 2.0 from Cortez
iPhone 3G.
Kohjinsha - Win 7

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Rc11 Gcc [solved, Pls Don't Read]
« Reply #1 on: September 30, 2005, 03:04:56 pm »
ehe, not so stupid ;-)

I think it happens to a lot of people (I've done exactly the same) because:

* the current dir is not in the path (while it is the case under DOS/Windows)

but more vicious is the fact that

* 'test' is a valid command that does not output anything.

and thus you end up running 50 times /usr/bin /test instead of your program,  trying to change the output doing all sort of things without even getting an error...
SLC-860 cacko / senao wifi