Problem with program :S

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello , I'm fixing a program for a guy that leave the company but I'm
having a lot of troubles.
 For example

 I have the class

 struct foo {
 int a;
 char b;
 }

 struct Y{
  fpos_t pos;
 struct foo RECORD;
 }

 well something like that, if I do this

 Y  * REC
 REC.pos=0L;
 if (REC.RECORD.a !='1')
 {
       REC.pos+= sizeof(foo);
      continue;
 }
 REC->pos=ftell(File);


 I have errors like

 error: no match for 'operator+='
 error: no match for 'operator=' in 'REC->Y::pos = ftell(((X*)this)->X::FD)

 All the errors come from the form he uses the equal, the ftell :S But
I dunno how to fix all

 I tried something like
 REC.pos+= (fpos_t) sizeof(foo);
 But I don't know if it give me the same result :S

 this one REC->pos=ftell(File) I don't know even how to fix it...

 Thanks 4 all!
-- 
--------------------------------------------
 ^----^

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux