Re: Dynamic library

2016-04-13 Thread Chris via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 10:11:27 UTC, Russel Winder wrote: Did you solve this problem? Does it go away using a newer JDK, e.g. 8_77? Have you tried the Oracle or Azul builds? If you have a small project you can send me that exhibits the problem for you, I can take a look at it. I coul

Re: Dynamic library

2016-04-12 Thread Chris via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 10:11:27 UTC, Russel Winder wrote: On Mon, 2016-04-11 at 14:15 +, Chris via Digitalmars-d-learn wrote: I wanted to test, if I could use D with JNA (Java Native Access). I get this error message: # A fatal error has been detected by the Java Runtime Environment

Re: Dynamic library

2016-04-12 Thread Russel Winder via Digitalmars-d-learn
On Mon, 2016-04-11 at 14:15 +, Chris via Digitalmars-d-learn wrote: > I wanted to test, if I could use D with JNA (Java Native Access).  > I get this error message: > > # A fatal error has been detected by the Java Runtime Environment: > # > #  SIGSEGV (0xb) at pc=0x7fd24ab66074, pid=15733

Re: Dynamic library

2016-04-11 Thread Chris via Digitalmars-d-learn
I wanted to test, if I could use D with JNA (Java Native Access). I get this error message: # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x7fd24ab66074, pid=15733, tid=140541714827008 # # JRE version: OpenJDK Runtime Environment (8.0_66-b17) (

Re: Dynamic library

2016-04-11 Thread Chris via Digitalmars-d-learn
On Monday, 11 April 2016 at 13:45:42 UTC, Adam D. Ruppe wrote: On Monday, 11 April 2016 at 13:40:14 UTC, Chris wrote: For the record, I fixed it by changing the contents of libphobos2.so from How did you do that btw? The file there should really just be a link to some binary file, maybe it go

Re: Dynamic library

2016-04-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 11 April 2016 at 13:40:14 UTC, Chris wrote: For the record, I fixed it by changing the contents of libphobos2.so from How did you do that btw? The file there should really just be a link to some binary file, maybe it got mangled in copying at some point.

Re: Dynamic library

2016-04-11 Thread Chris via Digitalmars-d-learn
On Monday, 11 April 2016 at 11:42:22 UTC, Chris wrote: I followed these steps: https://dlang.org/dll-linux.html#dso7 What I get is this error: libphobos2.so: file format not recognized; treating as linker script I don't know why it is not recognized. Any ideas? For the record, I fixed it

Re: Dynamic library loading gives error about importing a module

2014-02-19 Thread Tolga Cakiroglu
Simply "import"ing should work; doing that should not bring definitions to the code. However, one side should also include the module during its build. Have you included the module on both the program's and library's builds? Ali Hi Ali, Both of them have normal import for that module. I

Re: Dynamic library loading gives error about importing a module

2014-02-19 Thread cal
On Wednesday, 19 February 2014 at 09:45:41 UTC, Tolga Cakiroglu wrote: I have written a programme and a library under Linux. When programme is run, it tries to load the library. Both the programme code and the library imports a module as "apps.common.lib.config". Now, when I run the programme,

Re: Dynamic library loading gives error about importing a module

2014-02-19 Thread Ali Çehreli
On 02/19/2014 01:45 AM, Tolga Cakiroglu wrote: > I have written a programme and a library under Linux. When programme is > run, it tries to load the library. Both the programme code and the > library imports a module as "apps.common.lib.config". Now, when I run > the programme, following error is