Hi!

David Coe wrote:
> Michael Riepe wrote:
> 
>>Hi 'cutters,
>>
>>David Coe wrote:
>>
>>>Hi list!
>>>
>>>Every so often I compile up dvbcut under Windows MinGW rather than rely 
>>>on Ralph Glastetter's builds. Recently (somewhere after r154 I think) my 
>>>compilation has failed with a missing "C:/MingW/include/stdlib.h".
>>>
>>>This has been hard-wired into dvbcut's version in /import/stdlib.h and 
>>>will only suit the writer's own MinGW installation. Might it be better 
>>>to have this as "/mingw/include/stdlib.h"? This is, at least, is the 
>>>canonical location for the mingw compiler suite.
>>
>>actually, there's a better fix: use gcc's #include_next feature. That
>>will load MinGW's version of the file no matter where it is installed.
>>The gcc dependency shouldn't be a problem because we're not using any
>>other compiler on Windows anyway.
>>
>>Welcome to r162,
> 
> 
> Nope .. that doesn't work :-(. I'm getting bombs on undeclared 'malloc' 
> and 'free', which means the system stdlib.h isn't being picked up.

Did you perhaps run "./configure; make"? I'm afraid that doesn't work
because ffmpeg isn't configured correctly this way. Please use the
mingw.sh script, as explained in README.MingGW, or cd into the src
directory and run "make -f Makefile.w32" manually.

> As I understand it, #include_next traverses down the include directory 
> list looking for the named file. For dvbcut this is:
> 
> -I../import  -I/usr/local/include -I/home/david/dvbcut/ffmpeg/include
>   -I/home/david/dvbcut/ffmpeg/include/ffmpeg -I/usr/local/qt3/include -I.
> 
> so it would only work if the (idiosyncratic) /mingw/include were added 
> to make's include list.

Actually, the list is longer. It contains the compiler's default
directories at the end (which should include /mingw/include in this
case). If it doesn't, the compiler is broken (or maybe not installed
correctly).

-- 
Michael "Tired" Riepe <mich...@mr511.de>
X-Tired: Each morning I get up I die a little

------------------------------------------------------------------------------
_______________________________________________
DVBCUT-user mailing list
DVBCUT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dvbcut-user

Reply via email to