openSUSE Forums > Programming/Scripting » Confused as to how to run C++

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Oct-2009, 10:45
BrownieCat's Avatar
Explorer Penguin
 
Join Date: Sep 2009
Location: Falcon Complex, Rawalpindi
Posts: 126
BrownieCat hasn't been rated much yet
Unhappy Confused as to how to run C++

OK... Now I'm confused.
According to what I've heard, the GCC and GCC-C++ packages are all I need to run C++ and develop apps on Linux with it. OK, I've installed them both, but how do I run it? There's no option in the menus for it.
Can anyone help me in this matter?
Reply With Quote
  #2 (permalink)  
Old 06-Oct-2009, 10:54
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 4,710
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: Confused as to how to run C++

Quote:
Originally Posted by BrownieCat
OK... Now I'm confused.
According to what I've heard, the GCC and GCC-C++ packages are all I
need to run C++ and develop apps on Linux with it. OK, I've installed
them both, but how do I run it? There's no option in the menus for it.
Can anyone help me in this matter?
Hi
Those are the progams to compile your application. Your wanting an IDE
to code in? Maybe installing codeblocks, else use your favorite text
editor and code away, then run the commands to compile.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 3 days 3:01, 3 users, load average: 0.12, 0.15, 0.48
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #3 (permalink)  
Old 06-Oct-2009, 11:10
Busy Penguin
 
Join Date: Sep 2008
Location: Slovenia
Posts: 283
arcull hasn't been rated much yet
Default Re: Confused as to how to run C++

Quote:
According to what I've heard, the GCC and GCC-C++ packages are all I need to run C++ and develop apps on Linux wit
Hi, I would suggest you to try NetBeans Welcome to NetBeans, it is in my opinion a nice modern IDE (Integrated Development Environment) mostly meant for java programming, but allows you to do programming also in: C++,PHP,Ruby.
Reply With Quote
  #4 (permalink)  
Old 06-Oct-2009, 11:24
Explorer Penguin
 
Join Date: Mar 2009
Location: London
Posts: 119
Barry_Nichols hasn't been rated much yet
Default Re: Confused as to how to run C++

To compile:

Code:
c++ 'your-source-code-file' -o 'output-program-name'
To run:
Code:
./'output-program-name'
Reply With Quote
  #5 (permalink)  
Old 06-Oct-2009, 11:48
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,203
microchip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the roughmicrochip8 is a reputation jewel in the rough
Default Re: Confused as to how to run C++

Quote:
Originally Posted by BrownieCat View Post
OK... Now I'm confused.
According to what I've heard, the GCC and GCC-C++ packages are all I need to run C++ and develop apps on Linux with it. OK, I've installed them both, but how do I run it? There's no option in the menus for it.
Can anyone help me in this matter?
GCC is a compiler, not a code developing tool You need an IDE for that, or use a text editor and manually write the code. Then use gcc to compile it
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #6 (permalink)  
Old 07-Oct-2009, 07:46
BrownieCat's Avatar
Explorer Penguin
 
Join Date: Sep 2009
Location: Falcon Complex, Rawalpindi
Posts: 126
BrownieCat hasn't been rated much yet
Default Re: Confused as to how to run C++

Many thanks for all the help!
I might try NetBeans, but I might try coding in a text-editor... Haven't decided yet. NetBeans sounds easier, though.
Reply With Quote
  #7 (permalink)  
Old 23-Oct-2009, 05:46
Puzzled Penguin
 
Join Date: Oct 2009
Location: Sweden
Posts: 7
pinkApe hasn't been rated much yet
Default Re: Confused as to how to run C++

Quote:
Originally Posted by BrownieCat View Post
Many thanks for all the help!
I might try NetBeans, but I might try coding in a text-editor... Haven't decided yet. NetBeans sounds easier, though.
The full blown development IDE's give's you a lot of things for free and are in my opinion quite usefull if u are working on big projekts or just have started programing.

But it is usefull(my opinion ) to have knowledge on how to compile using only the compiler and how to compile using for an example an makefile. So my tip is to you atleast try it out(maybe not right now, but in the future)
Reply With Quote
  #8 (permalink)  
Old 24-Oct-2009, 13:37
mmarif4u's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: /dev/swat
Posts: 711
mmarif4u hasn't been rated much yet
Default Re: Confused as to how to run C++

Quote:
Originally Posted by malcolmlewis View Post
Hi
Those are the progams to compile your application. Your wanting an IDE
to code in? Maybe installing codeblocks, else use your favorite text
editor and code away, then run the commands to compile.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default
up 3 days 3:01, 3 users, load average: 0.12, 0.15, 0.48
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18
+1 for codeblocks.

Arif
swat
__________________
Visit my website: http://anl4u.com
Laptop: openSUSE 11.2 | KDE4.3.1 '6' | Kernel 2.6.31.5 | Intel Mobile 4 series graphic card | Intel centrino dual core 2.0Ghz Processor | 4GB RAM | 320GB HDD
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2