c editor for cygwin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dschulenburg
    New Member
    • Oct 2006
    • 40

    c editor for cygwin

    Hi, does anyone know a C editor that you can start from cygwin. My compiling command gcc is very long and I can't copy it from a windows C compiler like devC++ or notepad++ into the cygwin shell.

    Thanks !
  • AdrianH
    Recognized Expert Top Contributor
    • Feb 2007
    • 1251

    #2
    Originally posted by dschulenburg
    Hi, does anyone know a C editor that you can start from cygwin. My compiling command gcc is very long and I can't copy it from a windows C compiler like devC++ or notepad++ into the cygwin shell.

    Thanks !
    Hi, what exactly are you asking for? If you are asking for a text editor for editing your source file, you can use a number of text editors such as vim, emacs, even notepad. But then you start stating IDEs such as notepad++ and devC++. Are you asking about an IDE? to allow you to debug?

    Try Eclipse. It takes a bit getting use to but if you use the tutorials, you can get up to speed on how to use it in half a day? There is also something that will give you a C++ perspective (a way of viewing your enviroment). Installation is easy, just unzip the Eclipse SDK into a folder, then unzip the CDT file into the same directory as Eclipse (your C++ perspective). Execute the executable in the root Eclipse path and volia, free IDE that uses cygwin. You will have to map the cygwin drives to windows drives to get the debugger to work. You will be given a button to press if it can't find your source code. It took me a couple of hours or so to dl it and get it up and running. Using the managed makefile option really speeds things up too. Oh, I also found that I had to put the cygwin/bin directory as the first one in the system path. I'm not percisely sure why, but it probably keeps the right executables running that the IDE uses.

    Emacs also allows for most of this too, but unless you find a tutoral or are very patient, it could take a days to understand how to use it effectivly. I've been using it for years and I keep forgetting the somewhat useful, but less used items.

    Adrian

    Comment

    • dschulenburg
      New Member
      • Oct 2006
      • 40

      #3
      Ok, that's allright. Thanks !

      Originally posted by AdrianH
      Hi, what exactly are you asking for? If you are asking for a text editor for editing your source file, you can use a number of text editors such as vim, emacs, even notepad. But then you start stating IDEs such as notepad++ and devC++. Are you asking about an IDE? to allow you to debug?

      Try Eclipse. It takes a bit getting use to but if you use the tutorials, you can get up to speed on how to use it in half a day? There is also something that will give you a C++ perspective (a way of viewing your enviroment). Installation is easy, just unzip the Eclipse SDK into a folder, then unzip the CDT file into the same directory as Eclipse (your C++ perspective). Execute the executable in the root Eclipse path and volia, free IDE that uses cygwin. You will have to map the cygwin drives to windows drives to get the debugger to work. You will be given a button to press if it can't find your source code. It took me a couple of hours or so to dl it and get it up and running. Using the managed makefile option really speeds things up too. Oh, I also found that I had to put the cygwin/bin directory as the first one in the system path. I'm not percisely sure why, but it probably keeps the right executables running that the IDE uses.

      Emacs also allows for most of this too, but unless you find a tutoral or are very patient, it could take a days to understand how to use it effectivly. I've been using it for years and I keep forgetting the somewhat useful, but less used items.

      Adrian

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by dschulenburg
        Hi, does anyone know a C editor that you can start from cygwin. My compiling command gcc is very long and I can't copy it from a windows C compiler like devC++ or notepad++ into the cygwin shell.

        Thanks !
        You could always use emacs. You can run it straight from the cygwin prompt in the shell window.

        Comment

        • dschulenburg
          New Member
          • Oct 2006
          • 40

          #5
          Originally posted by Motoma
          You could always use emacs. You can run it straight from the cygwin prompt in the shell window.
          Yes, thanks, Cheers !

          Comment

          • AdrianH
            Recognized Expert Top Contributor
            • Feb 2007
            • 1251

            #6
            Originally posted by dschulenburg
            Ok, that's allright. Thanks !
            No prob, glad to help.


            Adrian

            Comment

            • macklin01
              New Member
              • Aug 2005
              • 145

              #7
              You might also consider using nedit directly from the cygwin shell. (If you also run x.) -- Paul

              Comment

              Working...