MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: LibraryLink & MinGW

  • To: mathgroup at
  • Subject: [mg127039] Re: LibraryLink & MinGW
  • From: Michael Weyrauch <michael.weyrauch at>
  • Date: Tue, 26 Jun 2012 04:49:03 -0400 (EDT)
  • Delivered-to:
  • References: <js3uag$um$>

I have had no problems to generate .dll's using MinGW
(significantly more complicated than the demos)

So, I would suggest you post exactly the commands you
used in order to produce the .dlls and then load the functions
into Mathematica, and I may be able
to tell you what is going wrong.


Am 23.06.2012 10:21, schrieb fortgriff:
> Does anyone have experience with LibraryLink and MinGW?
> Using LibraryLink, I am able to load functions into Mathematica from
> the shipped version of demo.dll.  From the source file demo.c, I
> generate my own demogcc.dll (using MinGW).  Using "objdump -f
> xxx.dll", I cannot tell the difference between the two dlls.  Both
> export what they should and both look like dlls.
> Inside Mathematica, I cannot load functions from demogcc.dll.  The
> $LibraryError I get is
> Library load error 193: %1 is not a valid Win32 application.
> There are many command line options for the compiler and linker.
> Hopefully, there is a combination that works.
> Thank you for your help.

  • Prev by Date: Can someone read these line "aloud"
  • Next by Date: Re: Default path for opening files
  • Previous by thread: Re: LibraryLink & MinGW
  • Next by thread: Re: LibraryLink & MinGW