public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: John Love-Jensen <eljay@adobe.com>
To: Luiz Eduardo Gualti <luiz.gualti@am.unisal.br>
Cc: MSX to GCC <gcc-help@gcc.gnu.org>
Subject: Re: RES: RES: It's possible to use folder/file path for #define  (like is possible to use folder/file path into #indude statement) ? If  yes, why ?
Date: Mon, 13 Mar 2006 19:34:00 -0000	[thread overview]
Message-ID: <C03B2561.B921%eljay@adobe.com> (raw)
In-Reply-To: <MJEMJDDLGCKJBKHFBNNKGEMPDHAA.luiz.gualti@am.unisal.br>

Hi Luiz,

> Please, it would have some reason to use define folders ?

Often, a #define is used to specify one of:
+ a constant
+ a macro function
+ a header guard
+ an assert that can be compiled out in release code
+ a feature exclusion trigger (stubs out the feature)

I'm not 100% sure what you mean by "use define folders", but I think that
the answer is:  no, #define's are not normally used to define folders.

Folders (or directories) are created with the mkdir command, or in a GUI,
with whatever metaphor the GUI uses to create a folder.  For instance, OS X
uses Command-Shift-N key sequnce, or File > New Folder from the menu system,
in the Finder.  Whereas Apple ProDOS uses CREATE folder,DIR (defaults to
,DIR if type is omitted).

> These foldes can be used in GCC ?

No, the folders have to be pre-existing.  The pre-existing directories can
be accessed using relative paths in the #include statements, or by using the
compilation switch -I to specify where header files are located.

> Please, do you know any C/C++ (C preprocessor itself) forum for begginers ?

None which with I am familiar, that I could recommend.  I've been
programming in C from 1985-1990, and in C++ from 1990 on -- so I haven't had
much exposure to beginner forums for C and C++.

Google knows all.

And although some may consider this sacrilege, for beginner programmers I
strongly urge Java <java.sun.com> and Eclipse IDE <www.eclipse.org>, rather
than C or C++.  In particular, Java 2 SE 5.0u6 (or later), and Eclipse
3.2M5a (or whatever is the latest and greatest milestone pre-release).

Other Java IDEs that I've heard of are NetBeans and IntelliJ IDEA.  There
are probably many others, but I'm not familiar with them.

Sincerely,
--Eljay

           reply	other threads:[~2006-03-13 19:34 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <MJEMJDDLGCKJBKHFBNNKGEMPDHAA.luiz.gualti@am.unisal.br>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C03B2561.B921%eljay@adobe.com \
    --to=eljay@adobe.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=luiz.gualti@am.unisal.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).