SteamCurses icon indicating copy to clipboard operation
SteamCurses copied to clipboard

Compilation Errors

Open ekianjo opened this issue 9 years ago • 6 comments

It seems like there is a reference problem in your program (unless I did something wrong on my side). My requirements are met (I have ncurses installed and Steam as well) but during compilation it does not find ncurses and throws a bunch of errors related to "undefined references" to ncurses functions. Did it compile without a hitch on your side?

ekianjo avatar Jul 22 '15 14:07 ekianjo

Hmmm, it should be building... try running gcc -std=c11 -lncurses -lmenu -o steamcurses steamcurses.c parser.c

TOTBWF avatar Jul 22 '15 16:07 TOTBWF

Try compiling: gcc -std=c11 -o steamcurses steamcurses.c parser.c -lncurses -lmenu

I was experiencing similar errors. Typically, you'd want the -lncurses (and -lmenu) to come after the object code so that it generates the command.

ghost avatar Jul 22 '15 17:07 ghost

Let me know if this works so I can update the makefile accordingly

TOTBWF avatar Jul 22 '15 17:07 TOTBWF

If you are on ubuntu you need libncurses5-dev to compile

TOTBWF avatar Jul 22 '15 19:07 TOTBWF

ok the workaround from redCupWeeknd worked, but the makefile from the archive does not work at all. And i have linbcurses5-dev already installed. You may want to fix the makefile.

ekianjo avatar Jul 23 '15 01:07 ekianjo

Did you use the most recent makefile? It should work.

ajouellette avatar Jul 23 '15 14:07 ajouellette