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. The Lounge
  3. Using the VC++ (6) IDE with an external compiler

Using the VC++ (6) IDE with an external compiler

Scheduled Pinned Locked Moved The Lounge
c++visual-studioquestion
7 Posts 7 Posters 9 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 Offline
    A Offline
    Andrew Torrance
    wrote on last edited by
    #1

    I met a chap once who used the VC++ ide to compile for a unix box by using an external compiler. I did not make note of how he did it , I think he must have written a custom app wizard and then hooked up to the relevant compiler that way . Does anyone know of another way ? I am kind of used to the IDE now and I would rather use it than have get on with a different editor.:confused:

    R N A Y RaviBeeR 6 Replies Last reply
    0
    • A Andrew Torrance

      I met a chap once who used the VC++ ide to compile for a unix box by using an external compiler. I did not make note of how he did it , I think he must have written a custom app wizard and then hooked up to the relevant compiler that way . Does anyone know of another way ? I am kind of used to the IDE now and I would rather use it than have get on with a different editor.:confused:

      R Offline
      R Offline
      Roger Allen
      wrote on last edited by
      #2

      You can do this my wrapping a custom makefile. For example, I need to compile code for an 80C552 microcontroller using the C51 compiler from Keil. I did this using a makefile as follows:

      glpka.abs : actions.obj assay.obj asshelp.obj autosamp.obj curve.obj \
      upload.obj users.obj xz_arm.obj pka5.obj
      blink

      actions.obj : actions.c defines.h register.h
      c51 actions.c large noamake symbols order noprint

      assay.obj : assay.c defines.h register.h
      c51 assay.c large noamake symbols order noprint

      asshelp.obj : asshelp.c defines.h register.h
      c51 asshelp.c large noamake symbols order noprint

      autosamp.obj : autosamp.c defines.h register.h
      c51 autosamp.c large noamake symbols order noprint

      curve.obj : curve.c defines.h register.h
      c51 curve.c large noamake symbols order noprint

      dispense.obj : dispense.c defines.h register.h
      c51 dispense.c large noamake symbols order noprint

      upload.obj : upload.c defines.h register.h
      c51 upload.c large noamake symbols order noprint

      users.obj : users.c defines.h register.h
      c51 users.c large noamake symbols order noprint

      xz_arm.obj : xz_arm.c defines.h register.h
      c51 xz_arm.c large noamake symbols order noprint

      pka5.obj : pka5.a51 reg80552.inc defines.inc pca.inc equ.inc
      a51 pka5.a51 xref

      Each line shows the file that needs to be built, and what files it is dependant on. The following lines say how each dependant file is built. For example GLpKa.abs rund the batch file "blink", which runs a banked linker on the object files, while for users.obj it invokes the C51 compiler on the .c file. So if you want to do this for your own project using a different compiler, make a makefile, open it in VC editor, it will ask if you want to wrap it. From there you can compile and build your project. The only downside is that you have to add new files etc to the makefile manually. :(( HTH Roger Allen Sonork 100.10016

      1 Reply Last reply
      0
      • A Andrew Torrance

        I met a chap once who used the VC++ ide to compile for a unix box by using an external compiler. I did not make note of how he did it , I think he must have written a custom app wizard and then hooked up to the relevant compiler that way . Does anyone know of another way ? I am kind of used to the IDE now and I would rather use it than have get on with a different editor.:confused:

        N Offline
        N Offline
        Nish Nishant
        wrote on last edited by
        #3

        Andrew Torrance wrote: I am kind of used to the IDE now and I would rather use it than have get on with a different editor Well, you can easily use the VC 6.0 editor Here what I do when we have a Unix based project is to map the linux partition using Samba. Then I simply open the required files in VC and do my editing Of course you cant compile or debug For that keep a shell open [via telnet] regards Nish p.s. lookin up strncpy on msdn beats doing a man strncpy anyday p.s. to p.s strncpy was chosen randomly :-) Sonork ID 100.9786 voidmain
        www.busterboy.org
        Nish is a BIG fan of Goran Ivanisevic

        1 Reply Last reply
        0
        • A Andrew Torrance

          I met a chap once who used the VC++ ide to compile for a unix box by using an external compiler. I did not make note of how he did it , I think he must have written a custom app wizard and then hooked up to the relevant compiler that way . Does anyone know of another way ? I am kind of used to the IDE now and I would rather use it than have get on with a different editor.:confused:

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

          A while back Intel released a new version of their C++ compiler which could be plugged into Visual C++ as an alternative to Microsoft's. Perhaps by looking at how they do it, you can make yours work. Regards, Alvaro

          1 Reply Last reply
          0
          • A Andrew Torrance

            I met a chap once who used the VC++ ide to compile for a unix box by using an external compiler. I did not make note of how he did it , I think he must have written a custom app wizard and then hooked up to the relevant compiler that way . Does anyone know of another way ? I am kind of used to the IDE now and I would rather use it than have get on with a different editor.:confused:

            Y Offline
            Y Offline
            Yuri Gershanov
            wrote on last edited by
            #5

            A regular (and expensive) way for developing for Unix platforms using VC IDE is Visual MainWin. It includes not only the compiler front end (allowing compilation from the IDE), but more or less full implementation of Win32 under HP-UX, Solaris, Aix and Linux. But for a small project this is definitely an overkill. Another way is to write your own front-end, a simple program that will run the Unix compiler remotely (using, for example, rexec or telnet protocol), providing it with appropriate command line, intercept its messages (stdout? stderr?) and translate them into native IDE's format: path(lineno): message. Then you can install the program as a tool in the IDE, redirect its output to the Output Window and enjoy. I did that some years ago, and it worked. --yuri

            1 Reply Last reply
            0
            • A Andrew Torrance

              I met a chap once who used the VC++ ide to compile for a unix box by using an external compiler. I did not make note of how he did it , I think he must have written a custom app wizard and then hooked up to the relevant compiler that way . Does anyone know of another way ? I am kind of used to the IDE now and I would rather use it than have get on with a different editor.:confused:

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

              In my previous life, I used VC++ to edit and compile Java. I just added a custom tool that invoked a .BAT file that compiled my Java codebase. I'm not sure if this will suit your purpose, but it's an effective and easy way to use VC++ for Java. /ravi "There is always one more bug..." ravib@ravi.com http://www.ravib.com

              1 Reply Last reply
              0
              • A Andrew Torrance

                I met a chap once who used the VC++ ide to compile for a unix box by using an external compiler. I did not make note of how he did it , I think he must have written a custom app wizard and then hooked up to the relevant compiler that way . Does anyone know of another way ? I am kind of used to the IDE now and I would rather use it than have get on with a different editor.:confused:

                N Offline
                N Offline
                Neville Franks
                wrote on last edited by
                #7

                Hi Andrew, You could like at an IDE like our ED for Windows, that is similar to VC but supports running most any compiler, supports 33+ programming languages, and gives you are very powerfull editing environment. It is popular with folks doing cross development, embedded development etc.etc. You can download a free trial from our Web site. See my signature. If I can help with any specific issues please let me know. Neville Franks, Author of ED for Windows. Version 4.01 just released, with a C++ Class View that actually works. www.getsoft.com

                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