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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. A simple C compiler

A simple C compiler

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
15 Posts 7 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.
  • N Offline
    N Offline
    ns
    wrote on last edited by
    #1

    I am writing a C Dll which the user wants to be able to modify the source of and recompile himself. However they dont want to install VC, which is what I am using to create the dll. I looked into the GCCC compiler but got lost because it seems you have to build the source etc and configure it. Does anyone know of a simple free compiler that I can download, which just compiles the dll? The dll has a .c file and a .def file. If the gccc compiler is really not that complicated, perhaps you can simplify the concept and give me a quick outline about it? Appreciate your help, ns

    T N E A J 5 Replies Last reply
    0
    • N ns

      I am writing a C Dll which the user wants to be able to modify the source of and recompile himself. However they dont want to install VC, which is what I am using to create the dll. I looked into the GCCC compiler but got lost because it seems you have to build the source etc and configure it. Does anyone know of a simple free compiler that I can download, which just compiles the dll? The dll has a .c file and a .def file. If the gccc compiler is really not that complicated, perhaps you can simplify the concept and give me a quick outline about it? Appreciate your help, ns

      T Offline
      T Offline
      Taka Muraoka
      wrote on last edited by
      #2

      Cygwin is a UNIX environment for Windows and comes with gcc pre-built. There's also a compiler called DJGPP although I've never used it.


      he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

      B N 2 Replies Last reply
      0
      • T Taka Muraoka

        Cygwin is a UNIX environment for Windows and comes with gcc pre-built. There's also a compiler called DJGPP although I've never used it.


        he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

        B Offline
        B Offline
        benjymous
        wrote on last edited by
        #3

        though there are bound to be lots of difficulties trying to get code written for VC to compile with gcc -- Help me! I'm turning into a grapefruit!

        N 1 Reply Last reply
        0
        • T Taka Muraoka

          Cygwin is a UNIX environment for Windows and comes with gcc pre-built. There's also a compiler called DJGPP although I've never used it.


          he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

          N Offline
          N Offline
          ns
          wrote on last edited by
          #4

          OOps! I should've said I'm on Windows. I did find an gcc executable but now have to figure out how to compile a dll from a .c and a .def file..... Thanks though. Appreciate your help, ns

          1 Reply Last reply
          0
          • N ns

            I am writing a C Dll which the user wants to be able to modify the source of and recompile himself. However they dont want to install VC, which is what I am using to create the dll. I looked into the GCCC compiler but got lost because it seems you have to build the source etc and configure it. Does anyone know of a simple free compiler that I can download, which just compiles the dll? The dll has a .c file and a .def file. If the gccc compiler is really not that complicated, perhaps you can simplify the concept and give me a quick outline about it? Appreciate your help, ns

            N Offline
            N Offline
            ns
            wrote on last edited by
            #5

            I did find a built .exe for windows for the gcc compiler, but now need to find out how to build a dll with a .c and a .def file......any one have any info on this? Dont see it in the docs.... Appreciate your help, ns

            T 1 Reply Last reply
            0
            • B benjymous

              though there are bound to be lots of difficulties trying to get code written for VC to compile with gcc -- Help me! I'm turning into a grapefruit!

              N Offline
              N Offline
              ns
              wrote on last edited by
              #6

              Its a very straightforward C dll which does averaging and similiar number crunching with a signature of MyDll(int* a, int*b)..... Hopefully gcc can handle that...? Anyways I still need to find out how to get a dll out of my .def file and my .c file..... Thanks! Appreciate your help, ns

              B 1 Reply Last reply
              0
              • N ns

                I am writing a C Dll which the user wants to be able to modify the source of and recompile himself. However they dont want to install VC, which is what I am using to create the dll. I looked into the GCCC compiler but got lost because it seems you have to build the source etc and configure it. Does anyone know of a simple free compiler that I can download, which just compiles the dll? The dll has a .c file and a .def file. If the gccc compiler is really not that complicated, perhaps you can simplify the concept and give me a quick outline about it? Appreciate your help, ns

                E Offline
                E Offline
                electronicman_x
                wrote on last edited by
                #7

                There used to be a compiler called DJGPP that was good for C stuffs. It might be free or shareware too. Jeff Rothenberg Project Engineer Vector CANtech, Inc.

                1 Reply Last reply
                0
                • N ns

                  Its a very straightforward C dll which does averaging and similiar number crunching with a signature of MyDll(int* a, int*b)..... Hopefully gcc can handle that...? Anyways I still need to find out how to get a dll out of my .def file and my .c file..... Thanks! Appreciate your help, ns

                  B Offline
                  B Offline
                  benjymous
                  wrote on last edited by
                  #8

                  I have a feeling the way dlls are defined in VC and GCC are different (since this isn't a standardised language issue) - the .def file is a VC thing Don't quote me on that though -- Help me! I'm turning into a grapefruit!

                  1 Reply Last reply
                  0
                  • N ns

                    I am writing a C Dll which the user wants to be able to modify the source of and recompile himself. However they dont want to install VC, which is what I am using to create the dll. I looked into the GCCC compiler but got lost because it seems you have to build the source etc and configure it. Does anyone know of a simple free compiler that I can download, which just compiles the dll? The dll has a .c file and a .def file. If the gccc compiler is really not that complicated, perhaps you can simplify the concept and give me a quick outline about it? Appreciate your help, ns

                    A Offline
                    A Offline
                    Alvaro Mendez
                    wrote on last edited by
                    #9

                    You may consider taking another route: scripting! If you write your source code in VBScript (or JavaScript), you can then use Microsoft's scripting engine to run the code from your main program. Since it's in VBScript, the user will probably be able to modify the code more easily and they won't have to worry about recompiling it, since your main program will interpret it a run-time. Regards, Alvaro


                    Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)

                    N 1 Reply Last reply
                    0
                    • A Alvaro Mendez

                      You may consider taking another route: scripting! If you write your source code in VBScript (or JavaScript), you can then use Microsoft's scripting engine to run the code from your main program. Since it's in VBScript, the user will probably be able to modify the code more easily and they won't have to worry about recompiling it, since your main program will interpret it a run-time. Regards, Alvaro


                      Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)

                      N Offline
                      N Offline
                      ns
                      wrote on last edited by
                      #10

                      Hmmm...have to look into this. Sounds promising...I have to get the background on this. Thanks for the pointer... Appreciate your help, ns

                      A RaviBeeR 2 Replies Last reply
                      0
                      • N ns

                        Hmmm...have to look into this. Sounds promising...I have to get the background on this. Thanks for the pointer... Appreciate your help, ns

                        A Offline
                        A Offline
                        Alvaro Mendez
                        wrote on last edited by
                        #11

                        Here's Microsoft's link to get you started: http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid=28001169[^] I also found a some good articles in CodeGuru (none in CP): http://www.codeguru.com/activex/index.shtml.[^] Look in the Active Scripting section. And here are even more links, courtesy of Google: http://www.google.com/search?sourceid=navclient&q=Windows+Script+Host[^] Regards, Alvaro


                        Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)

                        1 Reply Last reply
                        0
                        • N ns

                          Hmmm...have to look into this. Sounds promising...I have to get the background on this. Thanks for the pointer... Appreciate your help, ns

                          RaviBeeR Offline
                          RaviBeeR Offline
                          RaviBee
                          wrote on last edited by
                          #12

                          NS is back! You can also use Tcl to do scripting. Tcl is opensource. See http://www.tcl.tk/software/tcltk/8.4.html[^]. But you will need a book to figure out how to use it. It's not hard, but a proper tutorial/reference is necessary. The Welch book[^] is pretty good. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

                          1 Reply Last reply
                          0
                          • N ns

                            I did find a built .exe for windows for the gcc compiler, but now need to find out how to build a dll with a .c and a .def file......any one have any info on this? Dont see it in the docs.... Appreciate your help, ns

                            T Offline
                            T Offline
                            Taka Muraoka
                            wrote on last edited by
                            #13

                            I've never done it but there are a lot of people doing Windows development using Cygwin. You need a module called mingw32.


                            he he he. I like it in the kitchen! - Marc Clifton (on taking the heat when being flamed) Awasu v0.4a[^]: A free RSS reader with support for Code Project.

                            1 Reply Last reply
                            0
                            • N ns

                              I am writing a C Dll which the user wants to be able to modify the source of and recompile himself. However they dont want to install VC, which is what I am using to create the dll. I looked into the GCCC compiler but got lost because it seems you have to build the source etc and configure it. Does anyone know of a simple free compiler that I can download, which just compiles the dll? The dll has a .c file and a .def file. If the gccc compiler is really not that complicated, perhaps you can simplify the concept and give me a quick outline about it? Appreciate your help, ns

                              J Offline
                              J Offline
                              Joel Lucsy
                              wrote on last edited by
                              #14

                              Here are a couple of C scripting things you could embed: ICI[^] TCC[^] CINT[^] CSL[^] Joel Lucsy (jjlucsy@concentric.net)

                              N 1 Reply Last reply
                              0
                              • J Joel Lucsy

                                Here are a couple of C scripting things you could embed: ICI[^] TCC[^] CINT[^] CSL[^] Joel Lucsy (jjlucsy@concentric.net)

                                N Offline
                                N Offline
                                ns
                                wrote on last edited by
                                #15

                                Terrific. I've been checking out the scripting idea....hopefully the guy who wants this done will be agreeable to the notion. MAny thanks for all the leads. Appreciate your help, ns

                                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