Using the VC++ (6) IDE with an external compiler
-
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:
-
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:
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
blinkactions.obj : actions.c defines.h register.h
c51 actions.c large noamake symbols order noprintassay.obj : assay.c defines.h register.h
c51 assay.c large noamake symbols order noprintasshelp.obj : asshelp.c defines.h register.h
c51 asshelp.c large noamake symbols order noprintautosamp.obj : autosamp.c defines.h register.h
c51 autosamp.c large noamake symbols order noprintcurve.obj : curve.c defines.h register.h
c51 curve.c large noamake symbols order noprintdispense.obj : dispense.c defines.h register.h
c51 dispense.c large noamake symbols order noprintupload.obj : upload.c defines.h register.h
c51 upload.c large noamake symbols order noprintusers.obj : users.c defines.h register.h
c51 users.c large noamake symbols order noprintxz_arm.obj : xz_arm.c defines.h register.h
c51 xz_arm.c large noamake symbols order noprintpka5.obj : pka5.a51 reg80552.inc defines.inc pca.inc equ.inc
a51 pka5.a51 xrefEach 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
-
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:
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 -
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 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
-
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 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
-
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:
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
-
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:
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