Menu

Home

Don Owens

Libcfu is a library of tools that I have found useful, particularly when developing multithreaded software. It includes a hash table, a linked list, self-extending strings, a config file parser, a simple timer, a thread queue, and command-line parser.


Project Admins:


Discussion

  • skAIware

    skAIware - 2014-08-31

    In order to compile under mingw48, add such codes in cfutypes.h :

    ~~~~

    ifndef u_int32_t // mingw does not seem to define this one

    #warning u_int32_t not defined in sys/types.h
    #include <stdint.h> // does not contain any def of u_int32 but has a uint32_t
    typedef uint32_t u_int32_t;
    

    endif

    ifndef u_int // mingw does not seem to define this one

    #include <stdint.h>
    typedef unsigned u_int; // under mingw, unsigned is a uint_least32_t;
    

    endif

    ~~~~~~

     
  • Ghislain Benrais

    Hello,
    I never managed to compile on windows 10 x64 mingw. After configure, make fails.
    Here is the end of make's run :

    rm -f libcfu.a
    ar cru libcfu.a cfuhash.o cfutime.o cfustring.o cfulist.o cfuconf.o cfuthread_queue.o cfu.o cfuopt.o
    ranlib libcfu.a
    make[1]: *** No rule to make target `libcfu-config.exe', needed by `all-am'.  Stop.
    make[1]: Leaving directory `/c/Users/gbenrais/Documents/tmp/libcfu-0.03/src'
    make: *** [install-recursive] Error 1
    

    I had added types in cfutypes as recommended by skalware.

    I compiled on linux though.
    Any clue ?

    Thanks,
    Ghislain

     

Log in to post a comment.