Seti@Home optimized science apps and information

Optimized Seti@Home apps => Windows => Topic started by: Devaster on 29 Jan 2007, 04:57:44 pm

Title: Compile problem
Post by: Devaster on 29 Jan 2007, 04:57:44 pm
i cannot compile seti_header.cpp because of error
Code: [Select]
Error 6 error C2664: 'std::_Vector_const_iterator<_Ty,_Alloc>::_Vector_const_iterator(const std::_Vector_const_iterator<_Ty,_Alloc> &)' : cannot convert parameter 1 from 'int' to 'const std::_Vector_const_iterator<_Ty,_Alloc> &' f:\comp\boinc\boinc\seti_boinc\client\seti_header.cpp 129

in SETI_WU_INFO constructor :
Code: [Select]
SETI_WU_INFO::SETI_WU_INFO( void ) :
    track_mem <SETI_WU_INFO> ( "SETI_WU_INFO" ),
    data_class( 0 ),
    start_ra( 0 ),
    start_dec( 0 ),
    end_ra( 0 ),
    end_dec( 0 ),
    true_angle_range( 0 ),
    time_recorded( 0 ),
    subband_center( 0 ),
    subband_base( 0 ),
    subband_sample_rate( 0 ),
    fft_len( 0 ),
    ifft_len( 0 ),
    subband_number( 0 ),
    nsamples( 0 ),
    bits_per_sample( 0 ),
    position_history( 0 ),
    num_positions( 0 ),
    beam_width(0)
   { 
    data_type = 1;
    splitter_version = 0;
    angle_range = 0;
    tape_version[0] = 0;
    }

at the "{" location .


Any help ? please ....
Title: Re: Compile problem
Post by: BenHer on 29 Jan 2007, 05:50:46 pm
One of the initializers requires a structure as its initial value, it probably works out to being a pointer eventually...however whatever compiler you are using can't convert a 'zero' into whatever kind of pointer is desired.   Perhaps NULL might work...or some compiler configuration option to ignore this kind of situation.
Title: Re: Compile problem
Post by: Devaster on 29 Jan 2007, 08:27:12 pm
not helped (using VS2005SP1)
Title: Re: Compile problem
Post by: Urs Echternacht on 29 Jan 2007, 09:33:00 pm
Hi,
if you replace
position_history( 0 )
with
position_history()
you should have a go. VS2005 is simply a little bit more strict in controlling definitions.
If you need more help with compiling, search for the addon with my first post on this forum.
Title: Re: Compile problem
Post by: Devaster on 30 Jan 2007, 01:12:35 pm
thanx urs now its ok ....