#435 Cannot compile with sndfile under mingw32

Unknown
closed
5
2013-12-17
2013-02-26
Patrick
No

I'm compiling lame with libsndfile(compiled by myself also in mingw32/WinXP) under mingw32 in WinXP.
It said, "get_audio.o: undefined reference to _utf8ToUnicode".
After checking the source code, lame 3.99.5 source, I found

In frontend/get_audio.c(line 949~951),
#ifdef _WIN32
utf8ToUnicode();
#endif
However, in fronted/main.c(line 265~line441),
#if defined( _WIN32 ) && !defined(__MINGW32__)
utf8ToUnicode();
/* something else */
#else
/* something else */
#endif
The implementation of utf8ToUnicode() isn't compiled when __MINGW32__ is defined.

I'm not sure how to fix this...
So please fix this problem, thanks!!

Discussion

    • status: open --> closed
    • assigned_to: Robert Hegemann
     
  • I've applied your patch, thanks!