Jump to content
  • Advertisement
Sign in to follow this  
serratemplar

Using VS.NET and the gcc compiler.

This topic is 4865 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

How do I do it? =) I'm getting "c:\..\gcc is not recognized as an internal or external command, operable program, or batch file." But it IS, I insist. I can invoke gcc from the command-line with no issues. Any thoughts?

Share this post


Link to post
Share on other sites
Advertisement
Provide the full path?

Also, beware that the GCC command-line options are not the same as the CL command-line options, so just setting options from the VC IDE will not produce a command line that's understandable by GCC.

Share this post


Link to post
Share on other sites
In the same place you would normally add include/library paths there is another option in the same drop down box for adding executable paths. Add the path to gcc, then just reference the executable as gcc.exe.

Alan

Share this post


Link to post
Share on other sites
I apologize, I asked this question in a very vague and confusing way. I was trying to put together a make file that would build my program using gcc, and that was the error I was getting, which means I'm either grossly in error in the way I'm formulating the make file OR I'm grossly in error in the way I think VS.NET compiles things given a makefile.

That said, is there a way to set up a project to use an alternative compiler that doesn't involve making my own makefile?

Share this post


Link to post
Share on other sites
I'd like to know what is wrong with using the VS project templates to make
a new project that compiles with the VS compiler.

If you dont want to do that, you can make a VS project.
Then exclude all files from the regular build, and force a custom build step on all files that calls gcc.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!