Archived

This topic is now archived and is closed to further replies.

Visual Studio + other compilers? can it be setup?

This topic is 5405 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there any way to set up visual studio to compile using compilers other than what it comes with? I mean i would like to use Visual Studio to edit my code and stuff, but it needs to be compiled with code warrior... also I would like to compile using compilers on on a diffrent computer via...network. thanks

Share this post


Link to post
Share on other sites
Better yet, learn to use the command-line compiler, and how to write makefiles.

Windows versions of make exist, see mingw or unixutils (old).


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Dunno about CW but Intel wrote an utility to integrate theyr compiler into msvc. Maybe this could also be done by writing an add-in to msvc ide and manually gathering the needed compiler options...

Share this post


Link to post
Share on other sites
yea I guess I could write the files in vc++ and compile in code warrior..but thats a pain... is there any way in VC++ to tell it what compiler to use?

could somone point me to info on using the command line way? (and I know what makfiles are..I use them in linux all the time)

Share this post


Link to post
Share on other sites
you can hook in buttons on Visual Studio to kick off batch files. In those batch files, you can have a command which executes your chosen compiler. In conjunction with makefiles, this should work. It''s the system we use to develop games for consoles.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
ok cool thanks, thats what I''ll do.

I am using Codwarrior for the PS2...and I don''t like code warrior very much so I''ll try what you suggested.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I''m blind or something i can''t figure out how to make a button in Visual studio that will run a batch file that I want.... could you tell me how?

Share this post


Link to post
Share on other sites
Define it as an "External Tool".

You may have to play games with the path to make it relative to the current project (VS has predefined tokens for such things).

Then create a button that calls that "External Tool"


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

Share this post


Link to post
Share on other sites
Anyone tried doing this with custom build settings?



Gamedev for learning.
libGDN for putting it all together.
An opensource, cross platform, cross API game development library.

Share this post


Link to post
Share on other sites
What I''d consider is replacing cl.exe and link.exe with shim executables which invoke your compiler of choice.

These would then have to translate the cl.exe and link.exe arguments into the format expected by your compiler.



"If there is a God, he is a malign thug."
-- Mark Twain

Share this post


Link to post
Share on other sites