error in placing classes in separate files.I am trying to place classes in separate files but i got following errors.please give me solution for this.
Post a Reply
|Oldest Newest Rating|
· October 28, 2014
· October 29, 2014
I had similar problems. The issue was that Copiler looked into wrong directory. Instead of looking into MyProject (which is the name of my project) it looked into subdirectory "Sources". To change this I needed to:
1. Right click on my project icon (MyProject)
2. Select Build options...
3. Select tab "Search directories"
4. Select the only path existing below (it was Sources before)
5. Select Edit
6. Change it so, Compiler will look for files in whole Project (MyProject)
· November 1, 2014
I had a similar problem, my solution was to include in the 'main.cpp'
the files Cod-Blocks couldn't find.
along with your header file.
Also make sure your 'sachin.cpp' has
using namespace std;
Hope this helps.
Used in many types of software including music players, video games, and many large scale applications.
|Bucky Roberts Administrator|