Menu

#6 Trying to build ncurses version on ubuntu 16.04 fails compiling

open
nobody
9
2018-05-26
2018-05-26
No

I am trying to build the ncurses version pmars, but I am getting errors compiling it. Here are the relevant lines from the Makefile:

CFLAGS = -O -DEXT94 -DPERMUTATE -DGRAPHX
LFLAGS = -x
LIB = -lcurses                          # enable this one for curses display

When I try and run the make I get this:

 In file included from sim.c:89:0:
lnxdisp.c:93:17: error: static declaration of processRatio follows non-static 
declaration
 static int      processRatio; /* ratio pixel of process meter to process */
                 ^
In file included from lnxdisp.c:27:0,
                 from sim.c:89:
lnxdisp.h:36:17: note: previous declaration of processRatio was here
 extern int      processRatio; /* ratio pixel of process meter to process */
             ^

I am compiling on Ubuntu 16.04 and want the curses/ncurses version... Any help appreciated!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.