delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/08/15:25:54

From: gwme AT aol DOT com (GWME)
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP to VC5 conversion
Lines: 20
NNTP-Posting-Host: ladder07.news.aol.com
X-Admin: news AT aol DOT com
Date: 08 Jan 2000 19:41:17 GMT
Organization: AOL, http://www.aol.co.uk
Message-ID: <20000108144117.00863.00000374@ng-cr1.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am trying to convert a program originally created using DJGPP and Allegro
to work under VC5 and allegro.  I have downloaded the 
latest WIP and have managed to get other programs running OK
with it.  

In the program there is a function that was available under 
DJGPP and Allegro that doesn't seem to be available with
VC5 and Allegro.  The function is found in the standard c library and time.h
for DJDPP but not VC5. 'rawclock' returns the number of clock ticks since
midight (18.2 per second)

// DELAY OF 1/4 SECONDS
  i=rawclock()+5;
  while (rawclock()<i);

This causes the following error message:
'Main1.obj : error LNK2001: unresolved external symbol _rawclock'

Does anyone know of a similar command under VC5.

- Raw text -


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