I'm compiling libfaust for windows, and have been strugging
a lot with the llvm_math stuff.

Because of this code in llvm_dsp_aux.cpp:

#ifdef _WIN32
    #define LLVM_MALLOC "llvm_malloc"
    #define LLVM_FREE   "llvm_free"
#else
    #define LLVM_MALLOC "malloc"
    #define LLVM_FREE   "free"
#endif

I assumed that I had to compile the llvm_math.c file, and add the .ll
file as a "-l" argument when calling createDSPFactory.

However, when I do that, faust crashes.

However, when I don't do that, and change "#ifdef _WIN32" into "#if 0",
everything works.

All the math functions are actually available (I've checked everyone),
so there was no need to link in llvm_math.

I guess it would make sense to change that #ifdef into something
else. I'm using mingw 4.9.3 and LLVM 3.6.2. Perhaps it should be
changed to "#ifdef _MSC_VER"?
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Faudiostream-devel mailing list
Faudiostream-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-devel

Reply via email to