Solved

C++ Project Structure on UNIX

Posted on 2010-09-10
5
1,078 Views
Last Modified: 2013-12-26
I want to build a c++ application on UNIX platform. What would be the good directory structure for it ?

I used to use Visual Studio on windows. What would be the equivalent IDE on UNIX ?
0
Comment
Question by:Arnabtech
  • 3
5 Comments
 
LVL 40

Accepted Solution

by:
evilrix earned 25 total points
Comment Utility
>> I want to build a c++ application on UNIX platform. What would be the good directory structure for it ?

I use...

projects/myproj/src (source code)
projects/myproj/lib (output if we are building libraries)
projects/myproj/etc (any config files)

Final binaries get built into the myprog folder.

We use CMake to create our makefiles as they can be used cross platform

>> I used to use Visual Studio on windows. What would be the equivalent IDE on UNIX ?
There are plenty but Eclipse CDT is probably the best featured. That said, I still use Visual Studio and cross-compile to Linux. I can do this because we use CMake to write the makefiles. CMake can generate Visual Studio solution files.
0
 
LVL 12

Assisted Solution

by:w00te
w00te earned 25 total points
Comment Utility
>> I used to use Visual Studio on windows. What would be the equivalent IDE on UNIX ?
There are plenty but Eclipse CDT is probably the best featured. That said, I still use Visual Studio and cross-compile to Linux. I can do this because we use CMake to write the makefiles. CMake can generate Visual Studio solution files.

Got an article on this? I would love to learn how to do that, I hate linux IDEs :p
0
 
LVL 40

Expert Comment

by:evilrix
Comment Utility
0
 
LVL 40

Expert Comment

by:evilrix
Comment Utility
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seveā€¦
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now