Help - Search - Members - Calendar
Full Version: Problems Compiling FLAC On Windows Using MinGW
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
Rotsiser Mho
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
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
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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.