Forum > Windows
Compile problem
(1/1)
Devaster:
i cannot compile seti_header.cpp because of error
--- Code: ---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
--- End code ---
in SETI_WU_INFO constructor :
--- Code: ---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;
}
--- End code ---
at the "{" location .
Any help ? please ....
BenHer:
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.
Devaster:
not helped (using VS2005SP1)
Urs Echternacht:
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.
Devaster:
thanx urs now its ok ....
Navigation
[0] Message Index
Go to full version