Solved

How to build C++ project in Linux?

Posted on 2008-10-27
6
976 Views
Last Modified: 2013-11-17
I have a project in VC++ 8 using only c++ methods and libraries. Now I need to port the source code to GCC on Linux (Open SUSE). I would like to know the steps to build the files here.
Details like where to copy the source code, how to compile and build the entire code, how to link external libraries and dlls, are requested to be included.
0
Comment
Question by:Cool-Guy
6 Comments
 
LVL 21

Expert Comment

by:silemone
ID: 22813832
you could use borland IDE
0
 

Author Comment

by:Cool-Guy
ID: 22814002
I can't use anything that needs paid license.
0
 
LVL 3

Accepted Solution

by:
vhpgomes earned 250 total points
ID: 22815409
There's a couple of free IDE's for linux. I'd recomend two of them:

Codeblocks: http://www.codeblocks.org/

Anjuta: http://www.anjuta.org/

With them you can setup projects just like Visual Studio. If you need help installing them, tell us wich Linux distribution are you using.

If you have few source files you can do a makefile yourself. Here's a little tutorial:
http://mrbook.org/tutorials/make/

Hope this help.

Victor


0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 150 total points
ID: 22817010
At work, some of the guys use Eclipse. That is free.
http://www.eclipse.org/
0
 
LVL 2

Assisted Solution

by:ray_leach
ray_leach earned 100 total points
ID: 22819467
You could try KDevelop (it's part of the openSuSE distro already, as is Eclipse).
KDevelop have a nice tutotial which walks you through setup up the build environments, explains the source trees and helps you compile your first project.
0
 

Author Closing Comment

by:Cool-Guy
ID: 31510365
thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

867 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

24 Experts available now in Live!

Get 1:1 Help Now