[Mplayer-dev-eng] configure c++ compiler detection

Christoph Lampert lampert at math.chalmers.se
Wed Aug 29 13:29:19 CEST 2001


>On Tuesday, 28. August 2001 21:30, Arpi wrote:
>> Hi,
>>
>> > Hi,
>> > +as the mails with compile errors from users unable to install a C++
>> > compiler + libs begin to suck, can't we add a configure check that check
>> > proper operation of C++ compilation, and give an error and say not to
>> > report it when it doesn't work?
>>
>> good idea. do it!
>>
>> I think 2 tests hould be made:
>>
>> 1. compilation of simple sample c++ code (with some includes of
>> standard c++ headers, line <string> (not Nstring.h> !) and using
>> some c++ function like new or so. you can get example from bugreports :))
>>
>> 2. running this file - check for libstdc++ in ld.so path etc.
>>
>> different error msg should be printed for these tests failed.
>> (1: c++ compiler failed, check if you have g++ headers etc,
>> 2: running c++ prg failed, libstdc++ path/version problem)
>>
>>
>just commited to cvs, check it out"
>

1) It should not check (and fail), if no C++ is needed (e.g. -no-dshow 
or on non-intel machines), 

2) It should not be needed to use $CC as C++ compiler, too.

3) The error 

# Please downgrade(upgrade) gcc compiler to gcc-2.95.2+ or gcc-3.0+ version

if compiling fails is misleading, because this time, it might really _not_ be 
gcc's fault (but mine: setenv CC=foobar ;-) 

gruel


-- 
Dipl. math. Christoph Lampert (complex analysis, integral formulae)
Email: gruel at gmx.de                |     Email: lampert at math.chalmers.se


_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list