ASSIGNMENT 1: Lots of this:
<nowiki>g++ a1test.cpp /tmp/ccmnao28.o: In function `main': a1test.cpp:(.text+0x19): undefined reference to `cio::console' a1test.cpp:(.text+0x1e): undefined reference to `cio::operator<<(cio::Console&, char const*)' a1test.cpp:(.text+0x2d): undefined reference to `cio::console' a1test.cpp:(.text+0x32): undefined reference to `cio::operator<<(cio::Console&, char const*)' a1test.cpp:(.text+0x39): undefined reference to `cio::console' a1test.cpp:(.text+0x3e): undefined reference to `cio::Console::pause()'
Working on the proper #includes to rectify the undefined references.
2013-09-12
J\A
EDIT: FIXED. Dont forget -lncurses!
royal derp.
2013-09-23
ERROR MESSAGES regarding substr from the <cstring> library, and some invalid integer pointer comparisons:
consolelineedit.cpp: In function âint edit(char*, int, int, int, int, bool*, int*, int*)â: consolelineedit.cpp:65:13: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â console.h:25:11: error: âint cio::Console::getKey()â is private consolelineedit.cpp:72:34: error: within this context console.h:25:11: error: âint cio::Console::getKey()â is private consolelineedit.cpp:81:30: error: within this context consolelineedit.cpp:133:15: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:136:15: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:139:21: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:139:50: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:142:21: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:142:52: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:149:18: error: cannot convert âboolâ to âbool*â in assignment In file included from consoleplus.h:6:0, from a1test.cpp:10: consolelineedit.cpp: In function âint edit(char*, int, int, int, int, bool*, int*, int*)â: consolelineedit.cpp:65:13: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â console.h:25:11: error: âint cio::Console::getKey()â is private consolelineedit.cpp:72:34: error: within this context console.h:25:11: error: âint cio::Console::getKey()â is private consolelineedit.cpp:81:30: error: within this context consolelineedit.cpp:133:15: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:136:15: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:139:21: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:139:50: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:142:21: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:142:52: error: request for member âsubstrâ in âstrâ, which is of non-class type âchar*â consolelineedit.cpp:149:18: error: cannot convert âboolâ to âbool*â in assignment
J/A
We've been having troubles compiling our A1 in VSC++, Any help?
J/A 09-26-2013