Solved

How to build C++ project in Linux?

Posted on 2008-10-27
6
973 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

746 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

14 Experts available now in Live!

Get 1:1 Help Now