Re: Euphoria 3.0.2 Release Candidate for Linux

new topic     » goto parent     » topic index » view thread      » older message » newer message

Robert Stockton wrote:
> Problem 1.
> 
> In be_machine.c "conflicting types for SetTColor" and "conflicting types
> for SetBColor"
> 
> Solution:
> I added function prototypes for SetTColor and SetBColor to "Declared
> Functions"
> section in be_machine.c

Yes, Matt's changes (that I've now updated to) fix that.

> Problem 2.
> 
> Compiling be_rterror.c gives error "curses.h : no such file or directory".
> on line 15, plus errors for lines 140,141,142.
> 
> Solution:
> I deleted line 15 and lines 139..143
> 
> It seems that ncurses is dead but it won't lie down!

OK, I've fixed that now. Thanks.
 
> Problem 3.
> 
> In be_execute.c, be_machine,c, be_main.c, compile.e complaints that
> "CLK_TCK is undefined".
> 
> In /usr/include/time.h CLOCKS_PER_SEC is defined and a comment says
> that CLK_TCK "is the obsolete POSIX.1-1988 name for the same constant".
> 
> Solution:
> I replaced CLK_TCK with CLOCKS_PER_SEC throughout.
> I am using GCC 4.1.1, it may be different in earlier versions.

As a test, I tried:

#include <time.h>

main()
{
        printf("CLK_TCK %d\n", CLK_TCK);
        printf("CLOCKS_PER_SEC %d\n", CLOCKS_PER_SEC);
}

On my Linux machine, I get:
  CLK_TCK 100
  CLOCKS_PER_SEC 1000000

On FreeBSD, I get:
  CLK_TCK 128
  CLOCKS_PER_SEC 128

I'm reluctant to mess with this right now (in the middle of a release).
Maybe by the next release we'll figure out what to do here.

Thanks,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu