Hello all
Today I've decided it was time to upgrade my skills and use multiple source files instead of coding everything in one big cpp file. I've tried this before but I failed so hard for a week I quit in frustration and went along with my previous method using only one file. Researching this topic and using 3 main tutorials which includes one on this site I've manage to bring the errors down to a minimum.
My problem is with my global variables which I was trained to utilize the most. What I've done is put every global variable in a header file and with the "extern" key word, then I defined them in a cpp file name global.cpp. I have gotten these specific errors despite including the global header inside the main file.
Error C2466
Error C2133
Error C2466
Error C2057
Error C2133
I have followed an extremely similar pattern of working with multiple source files. I created a header for every class and a cpp for all the function in the class. I never included a cpp file. I used #ifndef, #define, #endif in every header file. All headers are included within main. I've done just about everything I can think of for the moment.
If you haven't noticed I code in c++ programming language, I use visual studious 2010 and that about it. If you have a little bit or a lot of bit of experience dealing with multiple source file I'm preparing a file which you can download and see my source code. I've done everything hy the book so it should be predictable.
Download link coming soon.
Download link have come
https://www.dropbox.com/s/7b7yqei55svcyc1/Protype.zip
Maybe I'm trying too hard, Maybe I'm not cut out to be a programmer, I always have error and I can never completely figure out stuff on my own. Anyways here the folder if you desire more details on the problem.