![]() |
![]() |
![]() |
![]() |
December 16th, 2000, 10:24 PM
|
#1 |
|
Guest
Posts: n/a
|
all right, flame away...
I'm not a particularly good c programmer. In fact, I've really only got a basic grasp and don't fully understand pointers. I'm getting some compile errors: bash-2.04$ make LINUX=1 d_netfil.c: In function `FiletxTicker': d_netfil.c:479: invalid initializer d_netfil.c:488: invalid operands to binary > d_netfil.c:490: incompatible types in assignment make: *** [../objs/d_netfil.o] Error 1 The 'offending code' is: #ifdef __OS2__ fpos_t size64; #else fpos_t size64=0; #endif transfer[i].currentfile=fopen(f->filename,"rb"); if(!transfer[i].currentfile) I_Error("File %s not exist",f->filename); fseek(transfer[i].currentfile,0,SEEK_END); size=fgetpos(transfer[i].currentfile,&size64); // WARNING fpos_t 64bit in some OS #ifndef __OS2__ if(size64>MAXINT) I_Error("Error : %s is too large\n",f->filename); f->size=size64; #else f->size=size64._pos; #endif I'm compiling under i386/Linux. Any takers? - Some poor dude. |
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How To Compile | sir lunch-a-lot | Legacy 2.0 Development | 2 | May 14th, 2005 11:08 AM |
| Win32 Compile | iori | Legacy 2.0 Development | 30 | October 26th, 2004 03:10 AM |
| Compile Errors | PyRo] | Doomsday | 17 | October 6th, 2004 02:45 PM |
| Can't compile on Mandrake 10 SDL Error | dczx | Doomsday | 1 | August 21st, 2004 08:49 AM |
| Legacy compile error! | Tails | Doom Legacy | 6 | October 31st, 2000 04:13 PM |