Rotsiser Mho
Mar 28 2007, 13:27
Hi everyone,
I hope nobody minds me asking for help compiling FLAC on this forum!
I've been trying to compile FLAC 1.1.4 under MSYS using MinGW. I'm running into a problem. I've already figured out that I have to change some defines in bitreader.c and bitwriter.c, and I've realized that the warnings about inline functions are ok. My problem is that the linker can't link bitreader.c and bitwriter.c because it doesn't know where wsock32.a is. Can somebody tell me how I can tell the linker to use this file?
Thanks!
jcoalson
Mar 28 2007, 23:10
I don't know but that reference is coming from the use of ntohl() to do byteswapping of a dword, you can work around it by replacing SWAP_BE_WORD_TO_HOST with something else (maybe bswap.h is available?)
...nevermind all that, I just saw that someone submitted a patch for this problem:
http://sourceforge.net/tracker/index.php?f...amp;atid=113478
Rotsiser Mho
Mar 29 2007, 09:54
I've got it working now I think. Although, now I'm wondering if it's possible to build libFLAC.dll for use in Windows programs using MinGW instead of MSVC. I'm a bit new at this, so I apologize if this is a stupid question.
Thanks for your help!