Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,324 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,791 people online right now. Registration is fast and FREE... Join Now!




Linux Software Development

2 Pages V  1 2 >  
Reply to this topicStart new topic

Linux Software Development

Korupt
28 Aug, 2008 - 05:02 PM
Post #1

D.I.C Head
Group Icon

Joined: 22 Jun, 2008
Posts: 58



Thanked: 1 times
Dream Kudos: 25
My Contributions
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 Aug, 2008 - 05:03 PM
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Linux Software Development
28 Aug, 2008 - 05:07 PM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,460



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
I use gcc, which isn't an ide, & I believe there is netbeans for Java.
User is offlineProfile CardPM
+Quote Post

Korupt
RE: Linux Software Development
28 Aug, 2008 - 05:10 PM
Post #3

D.I.C Head
Group Icon

Joined: 22 Jun, 2008
Posts: 58



Thanked: 1 times
Dream Kudos: 25
My Contributions
QUOTE(no2pencil @ 28 Aug, 2008 - 06:07 PM) *

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
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Linux Software Development
28 Aug, 2008 - 05:12 PM
Post #4

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,460



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
gcc should already be installed.

CODE

gcc -v


As for netbeans...
User is offlineProfile CardPM
+Quote Post

Korupt
RE: Linux Software Development
28 Aug, 2008 - 05:13 PM
Post #5

D.I.C Head
Group Icon

Joined: 22 Jun, 2008
Posts: 58



Thanked: 1 times
Dream Kudos: 25
My Contributions
thanks a lot man smile.gif
User is offlineProfile CardPM
+Quote Post

Korupt
RE: Linux Software Development
28 Aug, 2008 - 05:42 PM
Post #6

D.I.C Head
Group Icon

Joined: 22 Jun, 2008
Posts: 58



Thanked: 1 times
Dream Kudos: 25
My Contributions
sorry for double posting but how would you write and compile a script in gcc
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Linux Software Development
28 Aug, 2008 - 05:46 PM
Post #7

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,460



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
QUOTE(Korupt @ 28 Aug, 2008 - 09:42 PM) *

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.

cpp

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


Check out gcc's man page for complete details.
User is offlineProfile CardPM
+Quote Post

Korupt
RE: Linux Software Development
28 Aug, 2008 - 06:37 PM
Post #8

D.I.C Head
Group Icon

Joined: 22 Jun, 2008
Posts: 58



Thanked: 1 times
Dream Kudos: 25
My Contributions
ok well im trying something very simple as this code:

cpp

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


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

CODE
gcc -c test.cpp -o test


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

CODE
./test


I get a permission denied message and when I try this

CODE
gcc test.cpp


I get like 10 compile errors. any idea why?

This post has been edited by Korupt: 28 Aug, 2008 - 06:37 PM
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Linux Software Development
28 Aug, 2008 - 07:34 PM
Post #9

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,459



Thanked: 10 times
Dream Kudos: 325
My Contributions
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. smile.gif

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.
User is offlineProfile CardPM
+Quote Post

musya
RE: Linux Software Development
28 Aug, 2008 - 11:49 PM
Post #10

D.I.C Regular
Group Icon

Joined: 25 Apr, 2007
Posts: 291



Thanked: 1 times
Dream Kudos: 50
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

abgorn
RE: Linux Software Development
29 Aug, 2008 - 12:31 AM
Post #11

Hello Crap for Brains
Group Icon

Joined: 5 Jun, 2008
Posts: 880



Thanked: 5 times
Dream Kudos: 50
My Contributions
You could use Code::Blocks for C++. It's a free open source C++ IDE and I think it has a compiler.
User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Linux Software Development
29 Aug, 2008 - 04:22 AM
Post #12

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,459



Thanked: 10 times
Dream Kudos: 325
My Contributions
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 "++"].
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 07:41AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month