Re: Netbeans / preprocessor / headache



fj39fj0dle3u wrote:
> Hello,
> Thank you guys for the responses.
> Rogue, I was afraid this was the only easy answer available. I am
> sure there is a good reason why they did not put a preprocessor into
> the IDE / compiler (it would not be difficult), but I can not figure
> one out.

Probably because the preprocessor is considered bad for good reasons. I
think even Stroustrup has regarded keeping the preprocessor in C++ one of
his bigger mistakes.

> Robert, I will look more into this, but it may be outside my available
> time (and capabilities). I was really hoping for a single class /
> file that generated the appropriate jar files based on a single flag.
> There have been other options presented, but unfortunately they do
> not appear to apply to "include" (e.g. non class) statements.

You can't expect to move to a new language and platform and keep doing
business as you are used to. You'll have to invest some time to get to
know the new environment.

Regarding your problem: ant (the XML configured Java build tool) might
help also, as it is quite flexible.

> The fact that the Mobility add on to NetBeans (5.0) has the
> preprocessor directives makes me wonder why it was not included in non
> Mobility type projects.

I don't know that feature but probably it's a hack included for platforms
where every single byte (even in class files) counts.

Regards

robert

.



Relevant Pages

  • Re: finding redundant #includes to shorten compile time
    ... >> just to accommodate an inferior C preprocessor. ... >> it's time to shop around for a better C compiler. ... > Some platforms have a limited number of C implementations (e.g. ... > particular platform implement the feature you desire, ...
    (comp.lang.c)
  • Re: finding redundant #includes to shorten compile time
    ... > just to accommodate an inferior C preprocessor. ... > If your C preprocessor does not implement this optimization, ... If none of the implementations available for a particular platform ...
    (comp.lang.c)