Author Topic: Compiling OOP  (Read 3982 times)

Offline iamunited

  • Single posting newcomer
  • *
  • Posts: 8
Compiling OOP
« on: April 06, 2010, 03:27:10 am »
How do I compile object oriented programs in Code Blocks?

I use Code Blocks w/ MinGW

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5354
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Compiling OOP
« Reply #1 on: April 06, 2010, 04:15:55 am »
What have you done with Codeblocks till now. (Please write your steps)
Have you create a simple project by project wizard?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline iamunited

  • Single posting newcomer
  • *
  • Posts: 8
Re: Compiling OOP
« Reply #2 on: April 06, 2010, 04:53:00 am »
All I have done is:

Steps

1. Open CodeBlocks
2. File > New > Empty Project

That is all I do to create something.

Do I need to make it a project to compile oop?

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Compiling OOP
« Reply #3 on: April 06, 2010, 07:17:05 am »
Buy yourself a good programming book to understand what OOP means, read tutorials on the web and come back if you have a question related to C::B.

Whether a program uses OOP techniques or not has nothing to do with the IDE and not even with the compiler, but with your code (your compiler has to be able to compile OOP-code of course).

Topic locked, because it violates our forum rules !