|
I've just started getting back into C++ and I've been coding small console apps with Visual C++ 2008 Express and I keep running into weird linking problems while building my projects. Note that I usually have a header file (.h) and the definitions file (.cpp) for my class then a separate driver file for main. I was testing out program in the driver when I found out that I needed to modify the class. I do a few changes and then I go back to building the project and I get weird runtime errors. I step through the code and notice that the changes I made didn't take. I try a bunch of stuff like closing/opening the program, rebuilding the project, etc but I finally delete all of the project files created by VC++, create a new project adding my file back in, and it finally works. Is this a common problem or am I doing something wrong? Should I be using a difference compiler? Tomed2000 fucked around with this message at 17:23 on Apr 9, 2009 |
# ¿ Apr 9, 2009 17:16 |
|
|
# ¿ Apr 29, 2024 18:13 |
|
Alright. Here are snippets of my files. driver.cpp: code:
code:
code:
I find out later that I actually want to initialize top and bottom to be topInput-1 and topInput-2 so I do a small change to Comparator.cpp: code:
Tomed2000 fucked around with this message at 17:46 on Apr 9, 2009 |
# ¿ Apr 9, 2009 17:42 |