Link to home
Start Free TrialLog in
Avatar of coca_cola
coca_cola

asked on

how to organize a c++ project

I am new to C++, and I am building a c++ project which will call methods inside another c++ project, how do I organize my project and how to inclue other project?(in java, I know to include the jar file with building of class path)

thanks
Avatar of Infinity08
Infinity08
Flag of Belgium image

Ideally, your other project would be a library, in which case, you can simply link to it to use the methods implemented in it.

Organizing a project depends on its size, but usually, you want to split up the code in separate modules. A module corresponds to a .cpp file, and contains everything related to a specific part of the code (often modelled as a class).
For larger projects, it might be useful to group related modules in separate directories.

What compiler are you using ? Are you using any IDE ? Which one ?
Avatar of coca_cola
coca_cola

ASKER

MS visual studio 2005
I don't use that one myself, so I can't help you with specifics, but does my first post answer your question, or are you looking for something else ? If so, what ?
Hi,
you can create multiple projects inside a .sln solution but that makes project complex to maintain in vs.
If you create or have  libraries (lib or dll files) and use them to  link or execute a program is good way to do this.
ASKER CERTIFIED SOLUTION
Avatar of paulmohit
paulmohit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial