New Doom Forums  
compile help - New Doom Forums
Go Back   New Doom Forums > Source Ports > Doom Legacy

Reply
 
Thread Tools Display Modes
Old December 16th, 2000, 10:24 PM   #1
anon_cow
Guest
 
Posts: n/a
Post compile help

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.
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 07:11 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
NewDoom.com © 2000-2009 Mindless Games & Entertainment. All Rights Reserved.