brickviking / list

list is a curses-based interactive file listing program that combines the functions of less and hexdump into one handy program. It displays text on the screen in one of two different formats, either in hexadecimal dump format (a la MS-DOS debug.com format), or in text format, similar to what the programs less and more do.
GNU General Public License v2.0
2 stars 0 forks source link

BackPage not defined in input.c #1

Closed brickviking closed 4 years ago

brickviking commented 4 years ago

Recently, when compiling list, I hit a linking error with the later gcc-8.3.1.

input.o: In function WhatNext': input.c:(.text+0x19d): undefined reference toBackPage' input.c:(.text+0x25a): undefined reference to BackPage' input.c:(.text+0x2b8): undefined reference toBackPage' input.c:(.text+0x2d5): undefined reference to BackPage' input.c:(.text+0x2f5): undefined reference toBackPage' input.o:input.c:(.text+0x34d): more undefined references to `BackPage' follow collect2: error: ld returned 1 exit status make: *** [Makefile:41: list] Error 1

I've managed to fix this by making the BackPage function an extern (which was defined in screen.c, but not as an extern originally).