Thread: Editor required for C and C++ like Understand for C++

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    12

    Question Editor required for C and C++ like Understand for C++

    Is there any open source editor available for C and C++? I have been using Understand, but the free trial last for only 15 days. I have considered Ultra Edit, but it does not allow you to go to the function definition when you click on the function call, unlike Understand, which allows you to click on the user defined function name and it will go to the function whichever file it is present in. Kindly suggest alternatives. Thank you.
    Last edited by laserlight; 08-07-2008 at 09:07 AM. Reason: Clarified the entire post.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Eclipse may do what you want. Or Code::Blocks, Visual Studio, Emacs or many others.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Right, I came this close to perm banning gurvinder for being a spammer who was advertising Understand without permission, then after reading it for the fifth time, decided that my original impression (and that of matsp) was correct after all

    Yes, it sounds like you are looking for an IDE, so Code::Blocks, Visual Studio, and IDEs pretending to be editors (e.g., emacs) would fit the bill.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by gurvinder View Post
    which allows you to click on the user defined function name and it will go to the function whichever file it is present in.
    You can do that in vim with ctrl+] if you have your tags file set up correctly. Not sure exactly how to get that working, it's been a long time since I've done it.

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    133
    Quote Originally Posted by QuantumPete View Post
    You can do that in vim with ctrl+] if you have your tags file set up correctly. Not sure exactly how to get that working, it's been a long time since I've done it.

    QuantumPete
    Hahaha... and how do you exit from vim ?

  6. #6
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Hit <Esc> a couple of times and then type shift+; then q and <Enter>
    I forgot to mention, you can jump back down the tag stack by pressing ctrl+T

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  7. #7
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by rasta_freak View Post
    Hahaha... and how do you exit from vim ?
    Isn't it just : q the same as regular vi?

  8. #8
    Registered User
    Join Date
    Jul 2008
    Posts
    133
    I was kidding... i learned (the hard way...)...

  9. #9
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by rasta_freak View Post
    I was kidding... i learned (the hard way...)...
    yeah ":help" can be pretty overwhelming
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  10. #10
    * noops's Avatar
    Join Date
    Jun 2008
    Posts
    108
    Quote Originally Posted by rasta_freak View Post
    I was kidding... i learned (the hard way...)...
    You know it's a bad sign when the first thing a tutorial covers is how to exit the program!

  11. #11
    Registered User
    Join Date
    Jul 2008
    Posts
    133
    Ontopic:
    I personally use RhIDE/SetEdit. It uses turbo-vision library (like TurboC, TurboPascal for DOS), and the effect is that in X-Windows i have text that looks almost exactly like on text console (console is most eye-friendly, IMHO). It's least tiring for my eyes, plus that blue background and yellow text, plus nostalgia... Only bad thing is that RhIDE is practicly dead project (for years now), but there are various new builds, reworked sources. Plus you need gdb sources if you want integrated debugging (only if you're compiling it). And it has 'issues' with international characters (at least my every build has). And sometimes if you "tweak" it to work on X, it gives junk on console (you must change console/X font). But i haven't thought of replacing it with anything other yet !

  12. #12
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You know it's a bad sign when the first thing a tutorial covers is how to exit the program!
    Nah, it is akin to the "hell week" kind of activities that elite military units put their trainees through. If you cannot take it, quit immediately :q!
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  13. #13
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by laserlight View Post
    Nah, it is akin to the "hell week" kind of activities that elite military units put their trainees through. If you cannot take it, quit immediately :q!
    Yeah, but do you really want your editor to be like an assault course?

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  14. #14
    Registered User
    Join Date
    Jul 2008
    Posts
    12

    editor:back to topic

    I installed eclipse with C plugin (ganymede).However i am facing problems regarding setup.Any other alternatives.Code::Blocks doesnt help.

  15. #15
    Registered User
    Join Date
    Jul 2008
    Posts
    133
    Well, there's always khmkhkpirkhmmkatekmhbaykhm....

Popular pages Recent additions subscribe to a feed