Linux Software Development

  • (2 Pages)
  • +
  • 1
  • 2

21 Replies - 1965 Views - Last Post: 16 September 2008 - 08:47 PM

#1 Korupt  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Linux Software Development

Posted 28 August 2008 - 06:02 PM

Well I was setting up a web server on an Ubuntu machine and I just though as long as I have this linux here why not do some linux programming. But I need a good comelier fo software development (like VS in windows) for c++ and/or java or c# (i don't think c# would do though cause it's based on the .NET framework). Anyone where know a program like that?

This post has been edited by Korupt: 28 August 2008 - 06:03 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Linux Software Development

#2 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5394
  • View blog
  • Posts: 27,388
  • Joined: 10-May 07

Re: Linux Software Development

Posted 28 August 2008 - 06:07 PM

I use gcc, which isn't an ide, & I believe there is netbeans for Java.
Was This Post Helpful? 0
  • +
  • -

#3 Korupt  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Re: Linux Software Development

Posted 28 August 2008 - 06:10 PM

View Postno2pencil, on 28 Aug, 2008 - 06:07 PM, said:

I use gcc, which isn't an ide, & I believe there is netbeans for Java.


Any download link, and how to install, im not great with Linux yet
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5394
  • View blog
  • Posts: 27,388
  • Joined: 10-May 07

Re: Linux Software Development

Posted 28 August 2008 - 06:12 PM

gcc should already be installed.

gcc -v



As for netbeans...
Was This Post Helpful? 0
  • +
  • -

#5 Korupt  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Re: Linux Software Development

Posted 28 August 2008 - 06:13 PM

thanks a lot man :)
Was This Post Helpful? 0
  • +
  • -

#6 Korupt  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Re: Linux Software Development

Posted 28 August 2008 - 06:42 PM

sorry for double posting but how would you write and compile a script in gcc
Was This Post Helpful? 0
  • +
  • -

#7 no2pencil  Icon User is online

  • Admiral Fancy Pants
  • member icon

Reputation: 5394
  • View blog
  • Posts: 27,388
  • Joined: 10-May 07

Re: Linux Software Development

Posted 28 August 2008 - 06:46 PM

View PostKorupt, on 28 Aug, 2008 - 09:42 PM, said:

sorry for double posting but how would you write and compile a script in gcc

I use vi to enter text, but you can use gedit, pico, whatever text editor is your favorite.

gcc -c *cfile* -o *binary executable*



Check out gcc's man page for complete details.
Was This Post Helpful? 0
  • +
  • -

#8 Korupt  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Re: Linux Software Development

Posted 28 August 2008 - 07:37 PM

ok well im trying something very simple as this code:

#include <iostream>
using namespace std;
int main()
{
cout << "Test from Linux";
}


and I save it as a .cpp file and when I do this:

gcc -c test.cpp -o test


it makes a new file but when I try to run it:

./test


I get a permission denied message and when I try this

gcc test.cpp


I get like 10 compile errors. any idea why?

This post has been edited by Korupt: 28 August 2008 - 07:37 PM

Was This Post Helpful? 0
  • +
  • -

#9 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Re: Linux Software Development

Posted 28 August 2008 - 08:34 PM

Microsoft Visual Studio is an IDE that comes with an integrated compiler.

The majority of IDE's on Linux do not come with compilers because one size does not fit all. :)

If you're trying to do C++ development, you'll want to use the g ++ compiler which is probably already installed.

Some good IDE's have been posted in other threads, but just to get you started: Eclipse, Anjuta, and KDevelop are pretty nice.
Was This Post Helpful? 0
  • +
  • -

#10 musya  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 11
  • View blog
  • Posts: 1,012
  • Joined: 25-April 07

Re: Linux Software Development

Posted 29 August 2008 - 12:49 AM

you may not have permissions to run an executable, so try sudo ./test and see if it works, (should work). monodevelop is an IDE for alot of languages in Linux and Windows I believe and it even does c# but you have to be carefull with it because some keywords are different in mono than in .net so you'll almost have to develop for mono in both linux and win for it to work on both platforms, generally mono is abit behind win on updates since mono is opensource.
Was This Post Helpful? 0
  • +
  • -

#11 abgorn  Icon User is offline

  • sudo apt-get install brain
  • member icon

Reputation: 30
  • View blog
  • Posts: 1,410
  • Joined: 05-June 08

Re: Linux Software Development

Posted 29 August 2008 - 01:31 AM

You could use Code::Blocks for C++. It's a free open source C++ IDE and I think it has a compiler.
Was This Post Helpful? 0
  • +
  • -

#12 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Re: Linux Software Development

Posted 29 August 2008 - 05:22 AM

Sorry, dunno how I missed this yesterday but gcc -c test.cpp -o test compiles but does not link your program, which gives you an object file but no executable.

Also gcc is the C compiler, you want to use g ++.

Try g ++ test.cpp -o test [minus the space between "g" and "++"].
Was This Post Helpful? 0
  • +
  • -

#13 Nykc  Icon User is offline

  • Gentleman of Leisure
  • member icon

Reputation: 731
  • View blog
  • Posts: 8,644
  • Joined: 14-September 07

Re: Linux Software Development

Posted 29 August 2008 - 05:34 AM

If you are looking for a more user friendly way to write, compile and link your C/C++ code just use Code::Blocks I use it for Linux and Windows development.
Was This Post Helpful? 0
  • +
  • -

#14 Korupt  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 21
  • View blog
  • Posts: 185
  • Joined: 22-June 08

Re: Linux Software Development

Posted 31 August 2008 - 09:15 PM

thanks guys i was able to compile with g++, and i also installed Code::Blocks but when I make a new project and try to compile it, it can't find the header files, do I need some other library files for it?
Was This Post Helpful? 0
  • +
  • -

#15 homemade-jam  Icon User is offline

  • Gabe's Nemesis
  • member icon

Reputation: 11
  • View blog
  • Posts: 1,300
  • Joined: 17-March 08

Re: Linux Software Development

Posted 31 August 2008 - 11:24 PM

I prefer to use little bash scripts to compile
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2