www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/02/23/12:15:56

From: Kev <krugman AT blueyonderspammaps DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Old Allegro program won't compile any more
Message-ID: <0avh5v8dak79s65iakpgd1i6erqsh6j0ad@4ax.com>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Lines: 40
Date: Sun, 23 Feb 2003 17:12:35 +0000
NNTP-Posting-Host: 62.31.215.114
X-Complaints-To: abuse AT blueyonder DOT co DOT uk
X-Trace: news-binary.blueyonder.co.uk 1046020346 62.31.215.114 (Sun, 23 Feb 2003 17:12:26 GMT)
NNTP-Posting-Date: Sun, 23 Feb 2003 17:12:26 GMT
Organization: blueyonder (post doesn't reflect views of blueyonder)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi all,
Wrote a program in 1999 and it all worked fine
I have just this afternoon downloaded DJGPP
and Allegro from DJ's Zip Picker site and installed
it all, and run make within the Allegro folder and 
Make install too. Try to compile my program and get

balls.cpp(62) Error: invalid conversion from `void (*)(...)' to
`void*'

with this line in my code highlighted

LOCK_FUNCTION(my_timer_handle);


balls.cpp(63) Error: invalid conversion from `void (*)(...)' to `void
(*)()'

with this line in my code highlighted

install_int(my_timer_handle, 1000);

my_timer_handle is declared just before the main function thusly

void my_timer_handle(...)
{
   last_fps = frames;
   frames = 0;
}

END_OF_FUNCTION(my_timer_handle);


I have just been in to the allegro\demo folder and compiled the source
file there with no problems.

Any ideas,

Kevin.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019