Nov 21, 2009

A Question About C++ Programming Under Linux

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > C/C++ Programming

A Question About C++ Programming Under Linux

jjhou
Hello guys!
i prepare to develop under linux using c++, but i don't know what tools i should use...some one tell me to use vim, but i think vim is so hard to use!can u recommend me some ide???
thank u very much

Comment/Reply (w/o sign-up)

aniketh
you might want to try
1) anjuta IDE [http://www.anjuta.org/]
2) kDevelop [http://www.kdevelop.org/]

there should be loads of other IDEs, you will have to search

Comment/Reply (w/o sign-up)

mizako
HI,
Some tools for programming under linux:
-> compile: gcc or g++
->debug: gdb (i use debug using gdb but inside emacs, it is really easy to use)
-> editors: vim, emacs, kate

Some words about editors. In the emacs vs vim war i am vim partizan. However emacs is really powerfull editor. If you find both too complicated maybe you should try the graphical version (Gvim or xemacs). Kate comes with kde and it is more intuitive and easier for newbies. It is quite ok too.

Good luck!

Comment/Reply (w/o sign-up)

sunilr_74
QUOTE (jjhou @ Nov 3 2004, 04:39 PM)
Hello guys!
i prepare to develop under linux using c++, but i don't know what tools i should use...some one tell me to use vim, but i think vim is so hard to use!can u recommend me some ide???
thank u very much
*



Try linus GUI itself... see under start->programming... u will find something there provided u chose those options while installing... else check your rpm CD's

Comment/Reply (w/o sign-up)

sunilr_74
QUOTE (mizako @ Nov 12 2004, 02:53 AM)
HI,
Sergio del Amo
Web site: http://mizako.trap17.com/amo/
email address: canredondo at hotmail dot net

"This mail is a natural product. The slight variations
in spelling and grammar enhance its individual character
and beauty and in no way are to be considered flaws or
defects"

*


Hey, your warning must apply to your photo as well .. right out of a horror flick :-P

Comment/Reply (w/o sign-up)

tihu
Are you using X windows.
If you are then Nedit is a small + fast editor.

It has some good syntax highlighting for C, matches up bracket/braces and uses sensible keyboard shortcuts.

If you're at a console then it's gonna be emacs, vim or pico.

Comment/Reply (w/o sign-up)

osknockout
I seriously think you guys provided plenty of extra information
without the other basics.

Yes, gcc is the standard compiler for C/C++ on linux.
G++ is the actual C++ compiler.

Use make for your large projects and the simple text editors
for creating your .cpp's -basically nano with Gentoo Linux

This site should help you for gcc syntax:
http://galton.uchicago.edu/~gosset/Compdocs/gcc.html
-that's information to do it old skool ~by the console.

That's where I learned it to be honest biggrin.gif

...and if you get sick of gcc [how?] you can always
declare mutiny and use the Intel Non-Commercial Linux Compiler
-and you can take your rebel self to www.thefreecountry.com to
get a copy of that.

Hope that helps.

Comment/Reply (w/o sign-up)

FeedBacker
Nesting Of C++ Programs ?!
A Question About C++ Programming Under Linux

Hi all...
Is it possible to run a C++ Program within another Program... I know this sounds silly but I have a purpose for asking this question. My doubt is especially for Linux .. See I have developed a simple server and client (C programs) which are executed in the terminal by typing ./server port number in 1 comp , followed by ./client host_add port number in another.Now I wanna use this as a sub routine in my program where two computers communicate a string between each other and proceed with next step only if strings are the same .. So how can I integrate the passing of the strings (thru client chat) with the whole program ??
Are you getting my question??
Is it possible?
Thnx

-question by Addy

Comment/Reply (w/o sign-up)

mc05w37
I use gedit (in KDM it will be kwrite) to write the codes and save it as .cpp
I then open up terminal, CD to the .cpp folder and type gcc <filename>.cpp and ./a.out to see the result.

If you want to use an IDE programming software that provide good GUI then i recommend kdevelop, anjuta or lazarus.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : c, programming, linux

  1. I Want To Learn Programming
    (7)
  2. Finding The Rgb Color Of An Image
    Using any programming language (6)
    hello friends i am doing a project , in that i am inneed to fine the mean RGB value of a particular
    image , is there any program in any language which can do this ? the input to the program will be
    any image ( can be linked in the program) and the putput must be the mean RGB value of that
    particular image , is this Possible ? If so please post the Coding , no matter in what ever language
    it may be written.Thanks in Advance....
  3. Why Must We Learn Object Oriented Programming
    help me to understand the benefit of OOP (8)
    As a software laboratory assistant, I teach the class of Object Oriented Programming. Everything
    went well until one day a student of mine ask me a simple problem like this Q/A: him : Why must we
    use Object oriented Programming? I thought the usual one could do almost everything. me : Well, in
    Object Oriented Programming we could make a class, so basically eveything could be made to an
    'object' in our mind. him : That's why I'm asking, why must we made everything an
    object? What's the difference? me : In Object Oriented Programming, Encapsulation ....
  4. Alright, I'm Taking Computer Programming As A Class In School.
    (10)
    Is there anything I should personally be worried about or anything I really need to know? I'm
    pretty much good with computers and such and pretty much spend my whole life on them, lol.....
  5. Discussion On Dynamic Programming
    (3)
    Dynamic Programming is one of the powerful programming approach now a day. DP applicable when sub
    problems share sub sub problems. (No independent sub problems). Solve each sub problem once, save
    the answer, and when needed use the previously computed result. Like for Fibonacci series. To get
    f(n+1) we need addition of f(n), f(n-1) and for f(n) we need f(n-1), f(n-2). so to get f(n+1) we
    need f(n) and f(n-1) and again for f(n) we need f(n-1) and f(n-2). In this approach we are
    calculating same thing more then once . That is a very bad idea. But what if we store the data....
  6. C Programming Video Tutorials
    This is for all the memebers out there looking or need some mroe help (3)
    Hello per this is for the memeber that want to start programming in " C "... C is a
    very powerful Programming Lang In fact mayb to powerful.. Well there is 138 Videos in the
    TUT.. I Have uploaded the it so per .rar is per chapter /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> P@ssword for ALL .rar files
    is : sid3arm chapter #1 = Introduction to C ** Download link ** chapter #2 = A
    basic C program ** Download link ** chapter #3 = Basic Elements of a C Program **
    Download link ....
  7. C Or C++ Easy Programming Generator
    You need a program? (6)
    Hi i just had a stupid question on how to program is C or C++. I would like to know if there is any
    program like Photoshop to create C codes or how to put them together. If someone could show me it
    would be great. I appreciate it as i love computers and want to be like a wiz at it and also
    everything related to it. I know that this is crazy and i have heard that from people they tell me
    you're a GFX person stay there but i want to explore. Thanks if helped.....
  8. How Many of You Use the C Programming language?
    (23)
    Just wanted to know how many of you are currently using C language for programming. If you can tell
    what sort of programs you do, it would be useful. ....
  9. C Programming: Arrays
    A Clear Description of Arrays (4)
    C programming provides a capability that enables a user to design a set of similar data types,
    called Arrays. For understanding the arrays properly, let us consider the following program CODE
    main() { int x; j=5 j=10; printf("\nj= %d",x); } No doubt, this program will print the value
    of j as 10. This is because when a value 10 is assigned to j, the earlier value of j, i.e. 5, is
    lost. Thus, ordinary variables are capable of holding only one value at a time. However, there are
    situations in which we would want to store more than one value at a time in a single ....
  10. Beginners Guide To C/c++ Programming?
    (3)
    ok so I was wondering if anyone knows where I can find a good, c/c++ dummy friendly guide? my main
    reason for want to learn it so that I can make .cab files that do registry edits for ppc. I know
    this should be easy to do, Any help would be greatly appreciated. Thx in advanced, Mike....
  11. C/c++ Programming Experince
    How long does it take before programming useful programs? (3)
    I've been teaching my self C++, slowly but surely. Everything I try to program is just mediocre,
    and much simplier to use something already made. How long does it take before I can start
    programming useful decent programs?....
  12. Detailed C Beginner Tut
    basis for learning any application programming language (2)
    QUOTE The best way to learn programming is to dive right in and start writing real programs.
    This way, concepts which would otherwise seem abstract make sense, and the positive feedback you get
    from getting even a small program to work gives you a great incentive to improve it or write the
    next one. Diving in with ``real'' programs right away has another advantage, if only
    pragmatic: if you're using a conventional compiler, you can't run a fragment of a program
    and see what it does; nothing will run until you have a complete (if tiny or trivial) prog....
  13. Complete Linux Programing Book
    (2)
    the book name is Advanced Linux Programming QUOTE If you are a developer for the GNU/Linux
    system, this book will help you to: Develop GNU/Linux software that works the way users expect it
    to. Write more sophisticated programs with features such as multiprocessing, multi-threading,
    interprocess communication, and interaction with hardware devices. Improve your programs by making
    them run faster, more reliably, and more securely. Understand the preculiarities of a GNU/Linux
    system, including its limitations, special capabilities, and conventions.Advanced Linux Progra....
  14. Dos Programming, Undocumented Dos, And Dos Secrets
    (3)
    This web site is devoted to DOS programming for those of us who still enjoy programming in DOS some
    of its containt are Disk/Files - Programming the disk and/or file info. DOS - DOS programs, DOS
    prompt, DOS compilers, etc. Encryption/Compression - Encryption and Compression. Games - Programming
    Games. Hardware/System programming - Memory, BIOS, CMOS, and other Hardware/System items.
    Input/Output Devices - Mice, Joystick, Keyboard, Modem, Printer, etc.. Misc - Item that don't
    fit in any/all the other subjects. Sound - Sound programming Video/Graphics - Graphics progr....
  15. Dos Game Programming In C For Beginners
    (1)
    There are a number of tutorials available for the intermediate game programmer, but there are very
    few good tutorials for beginners who have never drawn a pixel on the screen. A quick search on the
    net reveals hundreds of sites devoted to 3D, polygons, texture- mapping and other advance topics,
    but the beginner has no where to get started. This tutorial is for C programmers who want to get an
    introduction to game programming. find this tutorial at Dos Game Programming in C for Beginners
    ....
  16. 256-color Vga Programming In C Site
    (0)
    what some say is the best VGA programming site on the web VGA Basics Setting the video mode,
    plotting a pixel, and mode 0x13 memory. Primitive Shapes & Lines Drawing lines, polygons,
    rectangles, and circles. Also, Bresenham's algorithm, fixed-point math and pre-computing tables.
    Bitmaps & Palette Manipulation The BMP file format, drawing bitmaps, and palette manipulation. Mouse
    Support & Animation Animation, mouse motion, and mouse button detection. Double Buffering, Page
    Flipping, & Unchained Mode Double buffering, page flipping, structure of unchained mode,....
  17. Win32: Dialog Box And Accelerator
    Win32 API programming (3)
    ok my problem is how do i make or assign a keyboard accelerator with modal dialog boxes since the
    message loop is inside the function call of DailogBox() functions, unlike the modeless dialog box in
    which you are the one who will create the message loop for the dialog box... is it even possible?....
  18. Programming A Malloc
    (1)
    A little background about what I am doing is this: I have an array which holds a linked list
    containing the memory that is currently taken from the system. Each index I have like 16 size
    memory or less can be stored only in index 0, index 1 is for memory inbetween 16-32, index 2 is for
    memory inbetween 32-64, etc all the way up to 2048 which is the max allocatable memory. Now the way
    my malloc is to work is that it first will run through my list to see if any memory is available
    that is greater than or equal to the size I need, if there is any at all it will return it....
  19. Where To Start Learning C++ Programming Language
    Resources for C++ (4)
    I'm planning on learning c++ but I'm having some problems. First, I need a compiler.
    I've downloaded Digital Mars (www.digitalmars.com) but how the heck do I compile something????
    There's this other free compiler that loooks great but seems hard to install. Does anyone know a
    good freeware compiler??? Also does anyone know what some good tutorial resources are? I've
    found a few sites, but does anyone know a really good one? Or maybe a good book? But my main
    problem is with the compiler. Can't get anything done without one.......
  20. Never Ending Books For C++ Programming
    C++ Programming Books (3)
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> Hello Friends As I m
    doing MCA so I have so many ebooks for u. Anybody that wants C++ Programming Knowledge ,can get from
    these books,it includes all basic and expert features programming.So here is the collection Only For
    Trap17 Users.If u like this Post Please reply. Thanx ....................
  21. Vesa Programming Viewer In D O S
    Graphics in C/C++ (3)
    Hello friends, I wanna make an image viewer in DOS...can any one help me how to deal with high
    resolution screens in DOS uning mouse using VESA interrupts. Please help.. thanks acumentech....
  22. Vesa Programming Viewer In C
    Graphics in C (2)
    Hello friends, I wanna make one image viewer program in C please help me how to deal with high
    resolution video using VESA programming. Thanks acumentech....
  23. Life In Programming?
    wheres this headed? (12)
    Hey guys im 16 and really like programming (although im fairly new at it) ive already taken a year
    of basic html and what not. This year im taking a class in c++ and VB next year i hope to take java
    and php. However next year will be my senior year and i will have to start applying for colleges
    and im trying to convince my parents that there ARE jobs in computers its hard for them to do this
    they like to stay locked up in there own little world **cough cough** stone age **cough** so what i
    was wondering is what jobs are actually out there for this kinda stuff what are ....
  24. Good Books On C++ Game Programming
    I need some books! (5)
    I am looking for some good books on game programming in c++ if any body out there has any
    suggestions feel free to post them. Oh by the way should i start out with an easier language like
    BASIC or should I just work on c++. Ineed some help people please reply fast. Tahnx
    David H /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> ....
  25. Game Programming
    (17)
    I'm looking into going into game programming and I want to know if there is another programming
    language I should learn to go along with C++? Or should I just learn C++(Master Blaster of C++,
    Master Shake of C++, Lord and Master of C++, Jedi Master of C++) and then learn(more)/master it in
    college? Thanks, Kvarner express....
  26. D Programming Language
    (9)
    hi friends, surprised... was that a type???? It is not a type... I know this is a C/C++
    programming language forum.. Just wanted to share something I came across today... A new
    programming language based on C and C++ is being developed.. It would have all the power of C/C++,
    in other words as the spec says "retains the ability to write high performance code and interface
    directly with the operating system API's and with hardware." The specification of the language
    and alpha phase compilers are available at www.digitalmars.com I just browsed throught the spec a....
  27. What Do You Use C/c++ For?
    Develop software / games / on windows / mac / linux? Use QT? (26)
    I am currently learning C++ and QT, I'm just wondering how many of your guys develop for windows
    specifically for do you target mac and linux too, or are you developing games? Most important is
    the uptake of the .Net framework, just how many people are developing for it, is it really as big /
    important as everyone on the net suggests? Would love to hear everyones views!....
  28. Can A Windows Compiler Compile For Linux?
    (6)
    A friend of me, is working on a mod for a tournament where I am a co admin off... The problem is...
    My friend uses Windows. Are there any Windows programs that can ccompile .so's to use on a linux
    server / box? Thanks for any reply's....
  29. Simple C++ Programs
    programming C++ (16)
    what simple programs would a beginner should code in order to get some understanding the c++ along
    with leaning as well....
  30. C Programming Help
    (4)
    Hey, does anyone know of any good direct sites that would help me in some scripting of c programming
    or maybe even a tutrorial that would help with some advanced scripting. Thanks.....

    1. Looking for c, programming, linux
Similar
I Want To Learn Programming
Finding The Rgb Color Of An Image - Using any programming language
Why Must We Learn Object Oriented Programming - help me to understand the benefit of OOP
Alright, I'm Taking Computer Programming As A Class In School.
Discussion On Dynamic Programming
C Programming Video Tutorials - This is for all the memebers out there looking or need some mroe help
C Or C++ Easy Programming Generator - You need a program?
How Many of You Use the C Programming language?
C Programming: Arrays - A Clear Description of Arrays
Beginners Guide To C/c++ Programming?
C/c++ Programming Experince - How long does it take before programming useful programs?
Detailed C Beginner Tut - basis for learning any application programming language
Complete Linux Programing Book
Dos Programming, Undocumented Dos, And Dos Secrets
Dos Game Programming In C For Beginners
256-color Vga Programming In C Site
Win32: Dialog Box And Accelerator - Win32 API programming
Programming A Malloc
Where To Start Learning C++ Programming Language - Resources for C++
Never Ending Books For C++ Programming - C++ Programming Books
Vesa Programming Viewer In D O S - Graphics in C/C++
Vesa Programming Viewer In C - Graphics in C
Life In Programming? - wheres this headed?
Good Books On C++ Game Programming - I need some books!
Game Programming
D Programming Language
What Do You Use C/c++ For? - Develop software / games / on windows / mac / linux? Use QT?
Can A Windows Compiler Compile For Linux?
Simple C++ Programs - programming C++
C Programming Help

Searching Video's for c, programming, linux
See Also,
advertisement


A Question About C++ Programming Under Linux

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com