Seti@Home optimized science apps and information
Optimized Seti@Home apps => Windows => Topic started by: Devaster on 29 Jan 2007, 04:57:44 pm
-
i cannot compile seti_header.cpp because of error
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 :
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 ....
-
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.
-
not helped (using VS2005SP1)
-
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.
-
thanx urs now its ok ....