Is the gcc binary in your path?
Do something like
-------------
# PATH=.:$PATH
--------------
When you are in the gcc binary directory. You should now
be able to run gcc from the gcc binary directory.
This is not ideal - you really want something like
---------------
#PATH=/path/to/gcc/bin:$PATH
------------------
to run it from anywhere.
Put this in your .profile if you want to make the change permanent.
HTH.
Rgs.
Paul...
Oops - forgot that you can also do
-------
# ./gcc myfile.c
---------
from the gcc directory.
Rgs.
Paul...
Because they are not in your $PATH. Try adding /usr/gnu/bin, either to
the filenames or to $PATH.
--
With kind regards,
Erik van der Kouwe
No, unfortunately you won't. gdb has not been ported to Minix (AFAIK),
so you'll need to use mdb for debugging. Unfortunately this program is
quite Spartan and incapable of reading symbol tables produced by gcc.
That means i install gcc unnecessary?
I 'm not familiar mdb. Is mdb also powerful and easy to use?
If you only care about GDB then indeed there is no point in installing
GCC. MDB is not easy to use, especially if it cannot read your symbol
tables (which is the case with binaries created with GCC).
I think i am the man only care about GDB. If that so i give up gcc.
How to debug my c code on minix? use another software in your
opionion?
please tell me the c compiler and debuger,Are there any tutorials?
Thanks a lot.
AFAIK there is no easy-to-use debugger on Minix. When debugging code on
Minix I would generally use functions like printf and assert. If a
really need a debugger, for example for analyzing a core dump, I use
mdb; although not easy to use but it is better than nothing.
The C compilers are ACK (the default compiler, named cc) and GCC (which
you have installed). It is generally recommendable to use the former
unless you need specific GCC features.
I do not know of any ACK documentation besides its man pages, but you
generally wouldn't need it because it offers few features besides the
standards. Very complete documentation for GCC is found on the internet
(Google is your friend here).
Any tutorial on POSIX programming will do (again, Google is your
friend).