Error while putting classes in separate files

+2 Bijay Das · April 14, 2015
I'm trying to put my classes in separate files but I'm getting an error. I don't know why, I've watched the 15th c++ video several times and I've done exactly same the way but I'm facing the same prob. Can anyone please help me with this?

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Brian Reed · April 15, 2015
Bijay,

I'm surely not one to suggest you should change from Code Blocks now (especially if its working for you).
However, is it working for you now?

There are no issues with code blocks that I'm aware of, no workarounds needed, I may have though so in the beginning, but not now. When I had these similar problems it was in not learning how to setup my projects properly. Sure, you can go out and find other compilers, but that's no assurance against you not have any issues with them either.
However, if you want to get more serious at building programs later, then ya, upgrade! A lot out there are free, I downloaded QT Creator and it seems to be pretty cool, I will start using when I build some real projects.

Cheers,
Brian 
0 Bijay Das · April 16, 2015
Which IDE should I use(xcode / clion / Visual Studio), I am using 32 bit Window 7 Home Premium, 3 GB RAM), core 2 duo processor? I saw the iTunes page in Wikipedia it says iTunes written in c++. Which IDE is used by the professionals? Do I need to purchase that? I live in Delhi, India. How much it will cost?
0 Dol Lod · April 16, 2015
If you're on a MAC, XCODE is really nice. If you're on Windows, Visual Studio can be good if you're not planning on writing your own MAKEFILE for your projects. In other words, if all you care about is getting a running version of C++, Visual Studio is good.

If you want portability across all machines, CLION looks like it is pretty good. It's also undergoing development. It has always worked for me with C++ code. It also allows you to add flags and have more manual control of the file used to generate the code. 
0 Bijay Das · April 17, 2015
Guys what IDE professionals use? For Mac=__? Windows=__? Are these IDE free or do I need to buy?
0 Dol Lod · April 18, 2015
Free. 

Visual Studio and Xcode have basic versions that are free, but are still incredibly useful.

Professionally, it would vary from company to company. You might be working on a Windows or Mac. If you're truly unfortunate, you might be working on a Linux server which means no IDE: back to Vim or Emacs. 
0 Bijay Das · April 18, 2015
Which version of Microsoft Visual Studio should I use? What will be the price in India?
0 Chiv Mengsong · August 25, 2015
Can any one tell what is the best Compiler in codeblock because I'm stuck with it
0 Scott Walker · August 29, 2015
Code::Blocks is fine.

Save your project, close Code::Blocks and re-open and should be fine :-)
0 Scott Walker · August 29, 2015
Sorry, I read that wrong. My preference for compiler is LLVM Clang
0 manav deep · August 30, 2015
you have to uncheck add path to project while creating the class

C++

107,195 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator