Assignment 1 TroubleShooting

I am trying to compile with the testfile using:

g++ bconsole.cpp console.cpp cio_test.cpp -lncurses -Wno-write-string

This gives me an error saying the main (the tester file) is not defining “console” properly.  The errror is:

cio_test.cpp:122:7: error: âconsoleâ was not declared in this scope

For the line:

r = console.getRows(); // at line 122, first occurance of use of console.

I am creating console through the included files.  My console classes are exactly the same as the ones on the website.  Except I filled in switch statement.  Why is it giving me this error and how should I fix it?  Am I not including a certain file or compiling wrong?

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a comment