soup20000

Distinguished
Dec 31, 2007
125
0
18,680
OK, I know how to use MSVC++... but now I am using linux.. I need to know how to program in this damn thing! Its driving me crazy.. Is there a C++ complier for Gnome? Also any website(s) that could help me learn what the hell I am doing in the program would help.

Thanks.

AMD for Life!
 

Kelledin

Distinguished
Mar 1, 2001
2,183
0
19,780
To my knowledge, the closest thing in Linux to MSVC++ is <A HREF="http://www.kdevelop.org/" target="_new">KDevelop</A>. As its name suggests, it's primarily for KDE, but you may be able to get it to run under GNOME--I haven't tried myself. It's a sweet little environment that looks a hell of a lot like MSVC++. It's primarily for writing KDE-based software but has limited support for developing GNOME-based software--or, if you feel like it, pure command-line-based software.

I don't know if you've kept up with all this, but the GNOME vs. KDE war is often every bit as bitter as the AMD vs. Intel war (see CPU forum) or the Linux vs. MS war. Too bad really--I kinda like both of them =/

Kelledin

bash-2.04$ kill -9 1
init: Just what do you think you're doing, Dave?
 
G

Guest

Guest
I haven't tried the latest KDevelop yet.
I'm very happy with Code Crusader/Code Medic. It used to be free, but they've gone commercial. I didn't see enough improvement over the old free version to justify the purchase. I don't know if you can still find the free RPMs any more, although I think it shipped with RedHat 6.2

One nice thing about it is that it uses make for the build process. So you have makefiles if you move the code to a machine without Code Crusader.


In theory, there is no difference between theory and practice.
In practice, there is.
 

soup20000

Distinguished
Dec 31, 2007
125
0
18,680
Thanks guys. I took a look at the KDevelope site and it looks damn cool. I will download it later tonight and see what happens :) I have never used KDE so this will be fun :) I am sure it cant be much different than Gnome. Thanks again.

Oh, and with screen size. I know how to change it in Xconfigurator but how do I set the default size? When I start X it is 640x480 and I end up using the Ctrl+Alt++ or -.

AMD for Life!
 

Kelledin

Distinguished
Mar 1, 2001
2,183
0
19,780
It's in your XF86Config file...to give you an idea what to look for, here's a snippet of mine:

Section "Screen"

Identifier "Screen 1"
Device "Hercules 3D Prophet DDR-DVI"
Monitor "Sony GDM-FW900"
DefaultDepth 24

Subsection "Display"
Depth 8
Modes "1920x1200" "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection

Subsection "Display"
Depth 16
Modes "1920x1200" "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection

Subsection "Display"
Depth 24
Modes "1920x1200" "1600x1200" "1152x864" "1280x1024" "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection

EndSection
(pardon the lack of tabbing)

This file is usually under /etc or /etc/X11.

XF86 will typically use the first setting it comes to. If you don't have a "DefaultDepth" line (see above), it will use the first "Display" subsection listed. Whatever "Display" subsection it uses, it will default to the first mode listed on the "Modes" line. Just stick your preferred mode as the first in the line.

Kelledin

bash-2.04$ kill -9 1
init: Just what do you think you're doing, Dave?
 
G

Guest

Guest
if you can't get any of the graphical helper apps to work you can always use g++ on the commandline and the text editor vim does syntax higlighting/code beautifying. The best part about that is both of those are almost guaranteed to be working by default with most distributions. The help is not quite as nice, but is quite usable. If you grep through man pages, you can find out about some of the gnu specific additions to the standard library. The gnu website is also a good thing.

~flake

--
U want to really *know* Linux?
<A HREF="http://www.linuxfromscratch.org/" target="_new">http://www.linuxfromscratch.org/</A>