Open main menu

CDOT Wiki β

Changes

BTP300A Team 6 Bugs Report

2,791 bytes added, 14:03, 26 September 2013
no edit summary
ASSIGNMENT 1: Lots of this:
<pre>
<nowiki>g++ a1test.cpp
/tmp/ccmnao28.o: In function `main':
a1test.cpp:(.text+0x3e): undefined reference to `cio::Console::pause()'
</pre>
Working on the proper #includes to rectify the undefined references.
...2013-09-12
J\A
Working on the proper #includes to rectify the undefined references.
</nowiki>
2013-09-12
EDIT: FIXED. Dont forget -lncurses!  royal derp. ---- 2013-09-23 ERROR MESSAGES regarding substr from the <cstring> library, and some invalid integer pointer comparisons:  <pre>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 privateconsolelineedit.cpp:72:34: error: within this contextconsole.h:25:11: error: âint cio::Console::getKey()â is privateconsolelineedit.cpp:81:30: error: within this contextconsolelineedit.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 assignmentIn 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 privateconsolelineedit.cpp:72:34: error: within this contextconsole.h:25:11: error: âint cio::Console::getKey()â is privateconsolelineedit.cpp:81:30: error: within this contextconsolelineedit.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</pre>  J\/---- We've been having troubles compiling our A1 in VSC++, Any help? J/A 09-26-2013