Hi.
I'd like to comment a few points (please, correct me if I'm wrong):
Papi:
>here is a little programm that works pretty well. Note that the
> sleep part is to allow other Threads to take over the cpu for a while.
> There are other ways to achieve this, but this one is, to my opinion
Hi Denis.
You should build your library using g++ instead of ld.
The reason is that g++ links additional object files that
are essencial for a library to work well (namely, crtbegin.o,
crtend.o, crti.o, and crtn.o).
Try:
g++ -fPIC -I[jdk-root]/include -I[jdk-root]/include/genunix Load.cc Load.
Hi.
I erased the original mail asking about arbitrary precision
calculations in Java so I couldn't use the right subject...
Take a look at http://math.nist.gov/javanumerics. Maybe you
could find something useful in the "Libraries" section.
Hope it can help.
Best regards,
-- Cassino
Sorry for sending two messages, I had a problem in my connection
and thought the first mail was lost (it wasn't even in the system
log) so I wrote another...
-- Cassino
Hi Jeremy.
I guess your problem is the size of long. It has 64 bits and
not only the 32 bits you are using. If you change your program
to:
n = 0xf0f0f0f0L;
it should work. If you don't do this, higher bits get set
to 1 and the output of your program is right (although it does
not show these hi
Hi Jeremy.
Maybe your problem is the long type size: it has 64 bits, not
only the 32 bits you are using. If you change your program to:
n = 0xf0f0f0f0L;
You'll get the expected result. When you don't do it, higher
bits are set to 1 and the output seems wrong (only seems).
Try using:
System.o
Hello there!
I have some C++ code that I put in a dynamic library and I
want to use it from Java. Since JDK does not allow me to load
two different libraries that depend on each other, I implemented
a native method that does the following:
1) Loads libstdc++.so
2) Loads my library
3) Performs s
Try ORBacus (http://www.ooc.com/ob), it is CORBA-2 compliant and
is free for non-commercial use. Available with source code.
Best regards,
-- Cassino
Hi.
I'm using loadLibrary in jdk1.1.6-v2-glibc but it does not
work as I expected. The problem is: if I load library A and
then load library B, it issues an error if B depends on A,
that is, if B references any symbol from A. Is that right?
I really need this feature, is there any workaround?
I