1

Currently I am doing C++ Development on Windows and Mac using Visual Studio and XCode respectively and planning to start on Linux too.

I know just a little about Linux, gcc/g++, gdb, Makefile.

Can one who works on large GUI development, how they debug it, as using gdb command-line tool for debugging will be difficult, as I have been in comfort of visual studio / xcode(front-end) debugger?

I see only Makefile for project on linux, is eclipse ide make project on basis of makefile?

Thanks

Joni
  • 108,737
  • 14
  • 143
  • 193
Vivek Kumar
  • 4,822
  • 8
  • 51
  • 85

3 Answers3

1

Eclipse will do all of that stuff for you, including creating your makefile. Before you compile for the first time, just press ctrl+B and it will build your project for you.

All of your library linking can be done by clicking on the "project" menu, then under C/C++build, click "settings". There should be a setting on there somewhere that says "libraries", which is listed under GCC/C++ linker.

Gavin Perkins
  • 685
  • 1
  • 9
  • 28
  • Thanks for your reply. But what if I have some library and I want to create project for it, using the Makrfile provided by the library. – Vivek Kumar Aug 28 '13 at 16:11
  • All of your library linking can be done by clicking on the "project" menu, then under C/C++build, click "settings". There should be a setting on there somewhere that says "libraries", which I think is under GCC/C++ linker. I cant remember where exactly, but you can specify your provided makefile in this menu also. – Gavin Perkins Aug 28 '13 at 16:19
  • I know Vim, I think that will do. After configuring the makefile, What need to be done to create something corresponding libName.vcporject for eclipse. Sorry, If my question bother you, as currently I am thinking everything I do on windows platform... But at the same time I do understand thing will be very differently in Linux World. – Vivek Kumar Aug 28 '13 at 16:20
  • 1
    after creating the makefile, you can use the "make" command from your terminal. just type the word make followed by your target file. – Gavin Perkins Aug 28 '13 at 16:33
0

There are several IDE for linux as

which may also use custom makefile.

Jarod42
  • 203,559
  • 14
  • 181
  • 302
0

It's simple to work on project with existing makefile in Eclipse.

Just go to File -> Import -> C/C++ -> Existing code as Makefile project.

This will let you build your project from IDE. To debug it just go to Run -> Debug. If default launch generated this way is not ok for you, you can customized Launch configuration in Run -> Debug configurations.

dbrank0
  • 9,026
  • 2
  • 37
  • 55