BTP300A Team 4 Bugs Report
Team members: Jodie Carleton and Maggie Ha
Week 1
- 09/09/13: Began development.
Week 2
- 09/16/13: Began working on display function
- 09/16/13: Compiling error:
/tmp/ccagyqLx.o: In function `cio::Console::Console()': console.cpp:(.text+0x7): undefined reference to `initscr' console.cpp:(.text+0xc): undefined reference to `noecho' console.cpp:(.text+0x11): undefined reference to `cbreak' console.cpp:(.text+0x16): undefined reference to `stdscr' console.cpp:(.text+0x26): undefined reference to `keypad' console.cpp:(.text+0x2c): undefined reference to `LINES' console.cpp:(.text+0x38): undefined reference to `COLS' /tmp/ccagyqLx.o: In function `cio::Console::~Console()': console.cpp:(.text+0xcf): undefined reference to `endwin' /tmp/ccagyqLx.o: In function `cio::Console::clear()': console.cpp:(.text+0xdd): undefined reference to `erase' /tmp/ccagyqLx.o: In function `cio::Console::getKey()': console.cpp:(.text+0xf5): undefined reference to `refresh' console.cpp:(.text+0xfa): undefined reference to `stdscr' console.cpp:(.text+0x102): undefined reference to `wgetch' /tmp/ccagyqLx.o: In function `cio::Console::setPosition(int, int)': console.cpp:(.text+0x25a): undefined reference to `move' /tmp/ccagyqLx.o: In function `cio::Console::drawCharacter()': console.cpp:(.text+0x294): undefined reference to `stdscr' console.cpp:(.text+0x2a0): undefined reference to `waddch' /tmp/ccagyqLx.o: In function `cio::operator<<(cio::Console&, char)': console.cpp:(.text+0x2b7): undefined reference to `stdscr' console.cpp:(.text+0x2c3): undefined reference to `waddch' collect2: ld returned 1 exit status
FIXED! Forgot -lncurses
Week 3
9/19 - Pair Programming - used to complete display function. Discovered that we needed to use max columns.
- Ran in to an issue with printing values for troubleshooting purposes - will post on other board for help.
9/20 - Pair Programming - Discovered our display function was not positioning the cursor properly at the end of the string. FIXED!
Week 4
9/24 - Pair Programming - working on edit function. Errors: consolelineedit.cpp:75:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] consolelineedit.cpp:76:25: error: invalid conversion from âsize_t {aka unsigned int}â to âint*â [-fpermissive]
- had to dereference "strOffset" (FIXED!)
consolelineedit.cpp: In function âint edit(char*, int, int, int, int, bool*, int*, int*)â: consolelineedit.cpp:80:22: warning: NULL used in arithmetic [-Wpointer-arith]
- field dereference that shouldn't be dereferenced - cannot compare int with NULL, but can with pointer (FIXED!)
consolelineedit.cpp:131:3: error: expected primary-expression before â}â token
consolelineedit.cpp:131:3: error: expected â;â before â}â token
- forgot braces (FIXED!)