Hi, so I've used gcc on Unix before and had no problems but on my mac (10.4) I can't get it to work. I've installed xcode and the developer tools. The thing is that gcc compiles the code perfectly fine, but I can't run it. So on unix for example I would do something like this:
gcc -o test test.c
and then to run it:
test <inputs>
but on the mac it give me an error "test: command not found" but it creates the executable "test" when I compile it. I'm sure there is something obvious I'm missing here, can someone help me out?
Thanks.
gcc -o test test.c
and then to run it:
test <inputs>
but on the mac it give me an error "test: command not found" but it creates the executable "test" when I compile it. I'm sure there is something obvious I'm missing here, can someone help me out?
Thanks.