SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Seal2 from source

 
Post new topic   Reply to topic    SEAL Forum Index -> DOS-related
View previous topic :: View next topic  
Author Message
NoWayOut



Joined: 01 Oct 2002
Posts: 1

PostPosted: Wed Oct 02, 2002 5:20 am    Post subject: Seal2 from source Reply with quote

Can't compile Seal2 from source.
I have djgpp v2 and Allegro 4.0.1.
But only I got is errors from make:
gcc -s -Iinclude -c src/dlxload.cc -o obj/dlxload.o
src/dlxload.cc:93: friend declaration requires class-key, i.e. `friend struct
CDLXListLink'
src/dlxload.cc:94: friend declaration requires class-key, i.e. `friend struct
CDLX'
src/dlxload.cc:161: friend declaration requires class-key, i.e. `friend class
CDLXListLink'
src/dlxload.cc: In function `hdlx_t _DefaultGet(char*)':
src/dlxload.cc:252: warning: cast from pointer to integer of different size
src/dlxload.cc: In member function `void CDLXListLink::Suicide()':
src/dlxload.cc:1397: warning: cast from pointer to integer of different size
make.exe: *** [obj/dlxload.o] Error 1

P.S.: How to change refresh rate of monitor in Seal? I don't like 60Hz refresh rate :(
Back to top
View user's profile Send private message
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Wed Oct 02, 2002 8:15 am    Post subject: Re: Seal2 from source Reply with quote

NoWayOut wrote:
Can't compile Seal2 from source.
I have djgpp v2 and Allegro 4.0.1.


I'm guessing your version of DJGPP isn't exactly correct. I have gcc version 2.95.3 20010315/djgpp (release) on my system, and it works fine.

Quote:
P.S.: How to change refresh rate of monitor in Seal? I don't like 60Hz refresh rate


You'll need to call the request_refresh_rate function. From the Allegro manual:

Code:

void request_refresh_rate(int rate);
   Requests that the next call to set_gfx_mode() try to use the specified
   refresh rate, if possible. Not all drivers are able to control this at
   all, and even when they can, not all rates will be possible on all
   hardware, so the actual settings may differ from what you requested.
   After you call set_gfx_mode(), you can use get_refresh_rate() to find out
   what was actually selected. At the moment only the DOS VESA 3.0, X DGA 2.0
   and some Windows DirectX drivers support this function. The speed is
   specified in Hz, eg. 60, 70. To return to the normal default selection,
   pass a rate value of zero.

_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> DOS-related All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group