I'm currently trying to get this particular code to work. In it, I have a forward reference in main.cpp that doesn't seem to do its job. I created the actual function in another source file, but when I try to compile my program, these errors occur.
I'm currently trying to get this particular code to work. In it, I have a forward reference in main.cpp that doesn't seem to do its job. I created the actual function in another source file, but when I try to compile my program, these errors occur.
Thanks. I'm totally new to C++. How would I go about in adding the file to my project? It seems to me that I do in fact have it added to my project.
I have this under the tree management:
Last edited by RelentlessWiz; 07-23-2011 at 03:30 PM.
You have mystuff.cpp in your project, but the other image shows that you are trying to use functions from safestuff.cpp.
In Code::Blocks, right-click on the name of your project (over on the left-side window, under Workspace), click Add Files, and add the source files to your project.
Hey, it works now. Excellent. Thanks!