+- +-
Say hello if visiting :) by Gecko
11 Jan 2023, 07:43:05 pm

Seti is down again by Mike
09 Aug 2017, 10:02:44 am

Some considerations regarding OpenCL MultiBeam app tuning from algorithm view by Raistmer
11 Dec 2016, 06:30:56 am

Loading APU to the limit: performance considerations by Mike
05 Nov 2016, 06:49:26 am

Better sleep on Windows - new round by Raistmer
26 Aug 2016, 02:02:31 pm

Author Topic: Compile problem  (Read 8978 times)

Offline Devaster

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 653
  • I like Duke !!!
Compile problem
« 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 ....

BenHer

  • Guest
Re: Compile problem
« Reply #1 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.

Offline Devaster

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 653
  • I like Duke !!!
Re: Compile problem
« Reply #2 on: 29 Jan 2007, 08:27:12 pm »
not helped (using VS2005SP1)

Offline Urs Echternacht

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 4121
  • ++
Re: Compile problem
« Reply #3 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.
_\|/_
U r s

Offline Devaster

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 653
  • I like Duke !!!
Re: Compile problem
« Reply #4 on: 30 Jan 2007, 01:12:35 pm »
thanx urs now its ok ....

 

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Members
Total Members: 97
Latest: ToeBee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 59559
Total Topics: 1672
Most Online Today: 50
Most Online Ever: 983
(20 Jan 2020, 03:17:55 pm)
Users Online
Members: 0
Guests: 106
Total: 106
Powered by EzPortal