Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Windos/Cygwin

Windos/Cygwin

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
12 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Anka_Ame

    Does someone nows something about how to run a program in Cygwin? I need to study a program, but i can run it only from cygwin.

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #2

    AFAIK Cygwin is a Unix-like env where you can run standard windows executables. What is you doubt about?:confused:

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

    In testa che avete, signor di Ceprano?

    A 1 Reply Last reply
    0
    • CPalliniC CPallini

      AFAIK Cygwin is a Unix-like env where you can run standard windows executables. What is you doubt about?:confused:

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      A Offline
      A Offline
      Anka_Ame
      wrote on last edited by
      #3

      I dont know how to run it. I have c files and headers and i dont know how to compile and make executable files.

      CPalliniC M 2 Replies Last reply
      0
      • A Anka_Ame

        I dont know how to run it. I have c files and headers and i dont know how to compile and make executable files.

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #4

        Well, if you have the development tools installed, then you can use gcc (or g++ for c++ projects) to create the executable for simple projects. If the project is complex, probably you have to create a makefile. AFAIK there are also some IDE's that can be used with Cygwin, for instance DEV-C++ [^]. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        In testa che avete, signor di Ceprano?

        A 1 Reply Last reply
        0
        • CPalliniC CPallini

          Well, if you have the development tools installed, then you can use gcc (or g++ for c++ projects) to create the executable for simple projects. If the project is complex, probably you have to create a makefile. AFAIK there are also some IDE's that can be used with Cygwin, for instance DEV-C++ [^]. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          A Offline
          A Offline
          Anka_Ame
          wrote on last edited by
          #5

          Unfortunately I have a complex project:( and I dont know how to start. Is there a chance to make my program work only under windows?

          CPalliniC 1 Reply Last reply
          0
          • A Anka_Ame

            I dont know how to run it. I have c files and headers and i dont know how to compile and make executable files.

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #6

            There should be an existing makefile ( "makefile" ) or even better, a configure thingy somewhere. if there is a makefile, just type make in the directory where the makefile resides. if there is a configure thingy, just type configure in the directory where the configure is.


            Maximilien Lincourt Your Head A Splode - Strong Bad

            A 1 Reply Last reply
            0
            • A Anka_Ame

              Unfortunately I have a complex project:( and I dont know how to start. Is there a chance to make my program work only under windows?

              CPalliniC Offline
              CPalliniC Offline
              CPallini
              wrote on last edited by
              #7

              If it's a complex project, probably Maximilien reply [^] applies. :)

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

              In testa che avete, signor di Ceprano?

              1 Reply Last reply
              0
              • M Maximilien

                There should be an existing makefile ( "makefile" ) or even better, a configure thingy somewhere. if there is a makefile, just type make in the directory where the makefile resides. if there is a configure thingy, just type configure in the directory where the configure is.


                Maximilien Lincourt Your Head A Splode - Strong Bad

                A Offline
                A Offline
                Anka_Ame
                wrote on last edited by
                #8

                This program has many subfolders and I found a makefile.in in the folder, but there are a lot of makefile.in in others subfolders too. And in the folder Include, who contains the header files I found a config.h.in and a Makefile.common.in

                M M 2 Replies Last reply
                0
                • A Anka_Ame

                  This program has many subfolders and I found a makefile.in in the folder, but there are a lot of makefile.in in others subfolders too. And in the folder Include, who contains the header files I found a config.h.in and a Makefile.common.in

                  M Offline
                  M Offline
                  Maximilien
                  wrote on last edited by
                  #9

                  There should be a README (or some other file that explain how to build that ) file somewhere that you can read to help you. or maybe, if memory serves me well, you could do a "make makefile" where there is a makefile.in; and it should generate the makefiles for the project.


                  Maximilien Lincourt Your Head A Splode - Strong Bad

                  1 Reply Last reply
                  0
                  • A Anka_Ame

                    This program has many subfolders and I found a makefile.in in the folder, but there are a lot of makefile.in in others subfolders too. And in the folder Include, who contains the header files I found a config.h.in and a Makefile.common.in

                    M Offline
                    M Offline
                    markkuk
                    wrote on last edited by
                    #10

                    There should be a script called "configure" in the source directory, and running it creates the Makefile.

                    A 1 Reply Last reply
                    0
                    • M markkuk

                      There should be a script called "configure" in the source directory, and running it creates the Makefile.

                      A Offline
                      A Offline
                      Anka_Ame
                      wrote on last edited by
                      #11

                      I will be very greatfull if you could tell me how to run it, because I dont know anything about cygwin:sigh:

                      1 Reply Last reply
                      0
                      • A Anka_Ame

                        Does someone nows something about how to run a program in Cygwin? I need to study a program, but i can run it only from cygwin.

                        M Offline
                        M Offline
                        malaugh
                        wrote on last edited by
                        #12

                        You could try compiling under windows, just select WIN32 Console application, add all your c files to the project, and compile. It may work of the program has no unix specific calls. If not, you need to install the GCC compiler. Google cygwin to get the files.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups