Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8711
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.belwue.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail |
|---|---|
| From | Philipp Kraus <philipp.kraus@flashpixx.de> |
| Newsgroups | comp.lang.java.programmer |
| Subject | preprocessor idea |
| Date | Tue, 11 Oct 2011 20:19:18 +0200 |
| Organization | 1&1 Internet AG |
| Lines | 29 |
| Message-ID | <j721b6$dam$1@online.de> (permalink) |
| NNTP-Posting-Host | p3ee2967e.dip0.t-ipconnect.de |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | online.de 1318357158 13654 62.226.150.126 (11 Oct 2011 18:19:18 GMT) |
| X-Complaints-To | abuse@einsundeins.com |
| NNTP-Posting-Date | Tue, 11 Oct 2011 18:19:18 +0000 (UTC) |
| User-Agent | Unison/2.1.5 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8711 |
Show key headers only | View raw
Hello,
I use within my Java code different external libraries (DLL), so I have
create a string array with their names
so the libraries can be load with System.load / System.loadLibrary.
I build the libraries (C++ code) with a toolchain and I use a lot of
preprocessor commands within
the C++ code, so I can enable or disable some function and so the using
of the libraries eg:
c++:
#ifdef lib1
#endif
#ifdef lib2
#endif
So my Java code must load lib1 and lib2 if both defs are set. Java does
not support any preprocessor
flags, but in this case I need a tip for creating a flexiable Java code
during the class is compiled
(eg: ifdef1 = true => String[] javaarray = {"lib1"}). Do you know any
idea for this problem?
Thanks
Phil
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
preprocessor idea Philipp Kraus <philipp.kraus@flashpixx.de> - 2011-10-11 20:19 +0200
Re: preprocessor idea Robert Klemme <shortcutter@googlemail.com> - 2011-10-11 21:57 +0200
Re: preprocessor idea markspace <-@.> - 2011-10-11 13:14 -0700
Re: preprocessor idea Arne Vajhøj <arne@vajhoej.dk> - 2011-10-11 19:17 -0400
Re: preprocessor idea Robert Klemme <shortcutter@googlemail.com> - 2011-10-13 18:35 +0200
Re: preprocessor idea Arne Vajhøj <arne@vajhoej.dk> - 2011-10-13 22:49 -0400
Re: preprocessor idea Robert Klemme <shortcutter@googlemail.com> - 2011-10-16 23:56 +0200
Re: preprocessor idea Arne Vajhøj <arne@vajhoej.dk> - 2011-10-16 22:32 -0400
Re: preprocessor idea Robert Klemme <shortcutter@googlemail.com> - 2011-10-17 18:53 +0200
Re: preprocessor idea Roedy Green <see_website@mindprod.com.invalid> - 2011-10-12 07:04 -0700
csiph-web