This post has been edited by Korupt: 28 August 2008 - 06:03 PM
21 Replies - 2896 Views - Last Post: 16 September 2008 - 08:47 PM
#1
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?
Replies To: Linux Software Development
#2
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.
#3
Re: Linux Software Development
Posted 28 August 2008 - 06:10 PM
#4
Re: Linux Software Development
Posted 28 August 2008 - 06:12 PM
#6
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
#7
Re: Linux Software Development
Posted 28 August 2008 - 06:46 PM
#8
Re: Linux Software Development
Posted 28 August 2008 - 07:37 PM
ok well im trying something very simple as this code:
and I save it as a .cpp file and when I do this:
it makes a new file but when I try to run it:
I get a permission denied message and when I try this
I get like 10 compile errors. any idea why?
#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
#9
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.
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.
#10
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.
#11
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.
#12
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 "++"].
Also gcc is the C compiler, you want to use g ++.
Try g ++ test.cpp -o test [minus the space between "g" and "++"].
#13
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.
#14
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?
#15
Re: Linux Software Development
Posted 31 August 2008 - 11:24 PM
I prefer to use little bash scripts to compile