Re: [Mingw-msys] Reconstruction of MSYS-1.0.11 test results.
- Date: Thu, 12 Jun 2008 11:47:13 -0700 (PDT)
- From: Hatch <hatch_jd@xxxxxxxxx>
- Subject: Re: [Mingw-msys] lame beta, windef.h
tripp wrote:
>
> --- Brian Dessent <brian@xxxxxxxxxxx> wrote:
>
>> Tripp wrote:
>>
>> >
>>
> c:/mingw/bin/../lib/gcc/mingw32/4.2.3/../../../../include/windef.h:234:
>> > error: two or more data types in declaration specifiers
>> >
>> >
>> > can anyone help me with any pointerson whats needed here?
>>
>> 1. Please don't sent HTML email.
>>
>> 2. This has nothing to do with MSYS, so I'd suggest using the MinGW
>> list
>> instead.
>
> i picked this one cause i thought it was more general,
>
>> 3. What is line 234 of your version of windef.h?
>
> typedef unsigned long DWORD;
> typedef int WINBOOL,*PWINBOOL,*LPWINBOOL;
> /* FIXME: Is there a good solution to this? */
> #ifndef XFree86Server
> #ifndef __OBJC__
> typedef WINBOOL BOOL; ******!!!! Line 234 ****
> #else
> #define BOOL WINBOOL
> #endif
> typedef unsigned char BYTE;
> #endif /* ndef XFree86Server */
> typedef BOOL *PBOOL,*LPBOOL;
> typedef unsigned short WORD;
> typedef float FLOAT;
> typedef FLOAT *PFLOAT;
> typedef BYTE *PBYTE,*LPBYTE;
> typedef int *PINT,*LPINT;
> typedef WORD *PWORD,*LPWORD;
> typedef long *LPLONG;
> typedef DWORD *PDWORD,*LPDWORD;
> typedef CONST void *PCVOID,*LPCVOID;
> typedef int INT;
> typedef unsigned int UINT,*PUINT,*LPUINT;
>
> #include <winnt.h>
>
> typedef UINT_PTR WPARAM;
> typedef LONG_PTR LPARAM;
> typedef LONG_PTR LRESULT;
> #ifndef _HRESULT_DEFINED
> typedef LONG HRESULT;
> #define _HRESULT_DEFINED
> #endif
> #ifndef XFree86Server
> typedef WORD ATOM;
> #endif /* XFree86Server */
>
>> 4. What is the preprocessed output of that line? (use -save-temps or
>> -E)
>
> adding -E to the last command gives me nothing on the console.
> and i think it creates 2 files
> -save-temps gives me the same error as make and
> 3 files are created as far as i can see.
> is interface.tpo the one of interest?
> anyway i tried including them all in zip attachments,
> and the message was bounced.
> is it the zip format specifically, or all attachments?
>
>
>> Brian
>
>
> ty
> tripp
>
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Mingw-msys mailing list
> Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/mingw-msys
>
>
The error is in libmp3lame/machine.h around line 130. It is including
windows.h when all it actually needs is to typedef FLOAT.
Here's what I did and it seems to work fine. I simply commented out
"#include <windows.h>" and added "typedef float FLOAT;"
#if ( defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__) )
# define WIN32_LEAN_AND_MEAN
//# include <windows.h>
typedef float FLOAT;
# include <float.h>
# define FLOAT_MAX FLT_MAX
#else
Everything builds and I was able to use libmp3lame.a to build ffmpeg with
lame support. Just tested it. Works great.
Cheers,
Hatch
--
View this message in context: http://www.nabble.com/lame-beta%2C-windef.h-tp16511634p17791328.html
Sent from the MinGW - MSYS mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Mingw-msys mailing list
Mingw-msys@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/mingw-msys