#14 where is libgen.h ?

closed
nobody
None
5
2009-10-03
2009-10-02
Anonymous
No

This might cause some discussions, but my app is a GUI rich thing that comes from UNIX. It currently compiles under linux32 & 64bit, osx 32 & 64bit, win32 (mingw). In order to keep the number of #ifdef instructions under control, I need so sort of libgen.a under mingw64! It is somehow available under mingw32...

Thanks!

Discussion

  • Kai Tietz
    Kai Tietz
    2009-10-02

    Hmm, well at http://www.cognigraph.com/LibGen/ the source distribution of libgen is to be found, but I am not sure if this library is/was already ported for windows 32/ windows 64 bits.
    So possibly you can contact this project for assistant, or you can try to port it by ourself. I am not aware that libgen is already ported.

    Cheers,
    Kai

     
  • libgen.h comes with mingw32, and it seems to be working fine. There is no libgen.a, though - must be incorporated into one of the std. libs...

    Thanks!

     
  • The library I'm talking about just provides those simple functions: dirname() & basename(), that's all. Years ago under SGI's IRIX it has been an external lib "libgen.a". Now it seems that this thing has been added to one of the GNU libs... don't know exactly into which one.

    Again, under mingw32 there is "libgen.h"...

    Thanks!

     
  • Kai Tietz
    Kai Tietz
    2009-10-02

    Ah, I see what you mean. It isn't the project libgen :) Ok, the library you mean is libiberty and it is present to our toolchains, too. Just the header wasn't present.
    I'll fix this soon.

    Thanks,
    Kai

     
  • Kai Tietz
    Kai Tietz
    2009-10-02

    Fixed on trunk and in branch v1.0

    Thanks,
    Kai

     
  • Kai Tietz
    Kai Tietz
    2009-10-02

    • status: open --> closed
     
  • Kai Tietz
    Kai Tietz
    2009-10-03

    Sorry, now it is fixed on trunk and branch. The header was coded by me too fast and had some typos (I corrected them), and also the implementation of dirname and basename was missing to libmingwex.a library. This is now added and the functions are available now, too.

    Thanks for the head-up, that we missed to merge those functions from mingw.org's rt.

    Cheers,
    Kai

     
  • Kai Tietz
    Kai Tietz
    2009-10-03

    • status: closed --> open
     
  • Kai Tietz
    Kai Tietz
    2009-10-03

    • status: open --> closed