gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > NMake Error

#23554 - rusty - Thu Jul 15, 2004 2:32 am

I'm a bit of a newbie to GBA programming, and I was setting up a make file last to run from NMAKE. I don't use make files that often (actuall the last time as an age) and I get an error saying;

'don't know how to make gcc.exe'

I'm pretty sure that I have the path setup to gcc in my autoexec.bat and in my tools directories.

I'd double check but I use .NET at work, instead of plain old VC6 (as I do at home).

Any ideas?

#23557 - sajiimori - Thu Jul 15, 2004 5:42 am

Yes, you will want your build tools in your path.

#23569 - NoMis - Thu Jul 15, 2004 12:28 pm

Seems like you accidently set your compiler as a make target. There must be a syntax error somewhere. It would be helpful if you post your makefile.

NoMis


Last edited by NoMis on Thu Jul 15, 2004 2:52 pm; edited 1 time in total

#23571 - col - Thu Jul 15, 2004 2:35 pm

afair, NMake and gnu Make use a different syntax.
Is it possible that you are trying to use a gnu Make makefile with NMake?

cheers

Col

#23576 - johnny_north - Thu Jul 15, 2004 4:11 pm

Check out this post: http://forum.gbadev.org/viewtopic.php?t=2352&highlight=

I posted a simplified NMAKE that works. I believe that sajiimori is correct. If a path to gcc.exe is not present, NMAKE might believe that gcc.exe needs to be built and give the error. Same thing happens if you try to link a .o file, but you haven't laid out in the make file the rules to build the .o

#23605 - rusty - Fri Jul 16, 2004 2:44 am

johnny_north wrote:
Check out this post: http://forum.gbadev.org/viewtopic.php?t=2352&highlight=

I posted a simplified NMAKE that works. I believe that sajiimori is correct. If a path to gcc.exe is not present, NMAKE might believe that gcc.exe needs to be built and give the error. Same thing happens if you try to link a .o file, but you haven't laid out in the make file the rules to build the .o


Yup...despite having added the path to gcc in the tools folders, it actually required the path setup to point to the devkitadv\bin folder. Thanks for the link, I'll takje a look at it despite managing to get my make file to work.

Now if only Dev Studio could understand gcc errors and warning :p

#23609 - sajiimori - Fri Jul 16, 2004 3:59 am

Yes, if you figure that one out, let me know. :)

#23614 - Abscissa - Fri Jul 16, 2004 6:26 am

rusty wrote:
Now if only Dev Studio could understand gcc errors and warning :p


Do you mean MS Visual Studio? If you're using version 6, check out VCMake over here: http://www.gbadev.org/tools.php?section=misc I've been using it and it works pretty nicely.

#23653 - wintermute - Sat Jul 17, 2004 5:08 am

Abscissa wrote:
rusty wrote:
Now if only Dev Studio could understand gcc errors and warning :p


Do you mean MS Visual Studio? If you're using version 6, check out VCMake over here: http://www.gbadev.org/tools.php?section=misc I've been using it and it works pretty nicely.


And if you use devkitARM you get MSVC compatible errors anyway, negating the need for extra tools to sort it out.