recursion ok?
danny
danny@3rdplanetsoftware.com
Wed Jul 24 20:20:00 GMT 2002
Hey Now Gcc people,
Well g++ fixed it. My program's recursive routine is now working. I wonder why gcc
has a problem w/ recursion. Any ideas?
Anyway I have a new problem. My function traverses the directory tree of my linux
box. I coded it to discard symbolic links w/ the stat function. It also let's me know
if a file is a directory or not. It appears to do that most of the time this works
until it comes to the .gnome/destop/home directory symbolic link. Then it switches to
it instead of discarding it. Any ideas why it is doing this?
Thanks
Danny
Ben Elliston wrote:
> >>>>> "danny" == danny <danny@3rdplanetsoftware.com> writes:
>
> danny> Sorry for being such a newbie. I'm used to borland and I'm just learning
> danny> make files. I'm also confused. What is the difference between gcc, g++,
> danny> and cc?
>
> gcc is the front-end to the C compiler. g++ is the front-end to the
> C++ compiler. You must use g++ when building C++ source, as the
> compiler driver passes different options to the preprocessor, compiler
> and linker.
>
> cc is the C compiler on most Unix systems. On Linux systems, it's
> just a link I believe to gcc to be similar to older systems.
>
> danny> Here is my make file. How would u change it?
>
> danny> CPP = gcc
>
> Change this to g++ and you should be right.
>
> Ben
More information about the Gcc-help
mailing list