|
Post by Speaker on May 22, 2012 20:50:52 GMT
Whelp, I've been having some trouble with 2d vector objects in C++. Not sure what's going wrong, but I know it's happening in generateMap(), somewhere in a later iteration of the second for loop, but I've no idea what's exactly going on. Probably something to do with the way I'm handling the vector. Error: [watcher@Arcturus cpp]$ g++ visual.cpp -lSDL [watcher@Arcturus cpp]$ ./a.out terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted [watcher@Arcturus cpp]$
Source: pastebin.com/ZGiaEC4k
|
|
future version of speaker
Guest
|
Post by future version of speaker on Jan 19, 2019 3:58:52 GMT
gdb is your friend.
|
|