nobuh / napple1

Apple I emulator on a text terminal or console. using ncurses,
GNU General Public License v2.0
21 stars 3 forks source link

Multiple definition error at make #4

Closed nobuh closed 1 year ago

nobuh commented 1 year ago

make failed in

/usr/bin/ld: main.o:(.bss+0x0): multiple definition of nrow'; memory.o:(.bss+0x0): first defined here /usr/bin/ld: main.o:(.bss+0x4): multiple definition ofncol'; memory.o:(.bss+0x4): first defined here

fix global variable definition at screen.h with "extern int nrow, ncol"

And chmod -x for source files.