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.

DS development > Problems with Visual C++ Express Edition..

#38856 - YaW - Fri Apr 01, 2005 3:36 pm

Hi,
First of all, sorry for my English, I'm Spanish.

I follow the Aaron Rogers tutorial for installing the NDSEnv, I try building the Template with my version of Visual C++ Express and it didn't work. I don't think that I make any mistake, maybe is problem of the Visual Express.
I'm very intersted on programming in DS and I wanna know if there is any fix to solve this problem.

Thanks!

#38918 - MumblyJoe - Sat Apr 02, 2005 12:41 am

How exactly did it not work? Could you try again and post any error messages?
_________________
www.hungrydeveloper.com
Version 2.0 now up - guaranteed at least 100% more pleasing!

#38921 - YaW - Sat Apr 02, 2005 1:32 am

This is the error
Quote:
------ Build started: Project: dsdemo, Configuration: ViaPassthrough Win32 ------
Performing Makefile project actions
Project : error PRJ0003 : Error spawning 'cmd.exe'.
Build log was saved at "file://c:\ndsdev\projects\template\BuildLog.htm"
dsdemo - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


And this is inside the BuildLog.htm
Quote:
Build Log


Build started: Project: dsdemo, Configuration: ViaPassthrough|Win32

Command Lines


Creating temporary file "C:\DOCUME~1\YaW\CONFIG~1\Temp\BAT0000022330823760.bat" with contents
[
@echo off

make

if errorlevel 1 goto VCReportError

goto VCEnd

:VCReportError

echo Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"

exit 1

:VCEnd
]
Creating command line "C:\DOCUME~1\YaW\CONFIG~1\Temp\BAT0000022330823760.bat"

Output Window


Performing Makefile project actions
Project : error PRJ0003 : Error spawning 'cmd.exe'.

Results


Build log was saved at "file://c:\ndsdev\projects\template\BuildLog.htm"
dsdemo - 1 error(s), 0 warning(s)

#40022 - YaW - Thu Apr 14, 2005 3:27 pm

The problem is in the cmd.exe O.O, well i tried to make from the command line and it works perfectly... How to fix in the VS?

#40051 - Darkain - Thu Apr 14, 2005 7:25 pm

YaW wrote:
The problem is in the cmd.exe O.O, well i tried to make from the command line and it works perfectly... How to fix in the VS?


are you not on Win2000/WinXP? that would mean a lack of cmd.exe, and instead be command.com (or .exe, not sure which)
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS

#40053 - YaW - Thu Apr 14, 2005 7:29 pm

I'm using WinXP with SP1, i'm getting crazy with this error ><

#40113 - Kir - Fri Apr 15, 2005 6:09 am

Check your environment variables (in System Properties). There must be at least two of them :
1) ComSpec=c:\winnt\system32\cmd.exe
2) Path=c:\winnt;c:\winnt\system32;...

Your paths may be different from mine, 'cause I'm using Win2000, not XP.
You can also try to change user environment variables temp & tmp, so they won't lead to C:\Documents and Settings\Your_User_Name\Local Settings\Temp, and, for example, lead to c:\temp instead. NT virtual dos machine have many glitches in long file name handling, so this could be cause...

#40126 - PhoenixSoft - Fri Apr 15, 2005 9:39 am

In XP, it's C:\WINDOWS\SYSTEM32 instead of C:\WINNT\SYSTEM32.

#40130 - YaW - Fri Apr 15, 2005 10:41 am

Kir wrote:
Check your environment variables (in System Properties). There must be at least two of them :
1) ComSpec=c:\winnt\system32\cmd.exe
2) Path=c:\winnt;c:\winnt\system32;...

Your paths may be different from mine, 'cause I'm using Win2000, not XP.
You can also try to change user environment variables temp & tmp, so they won't lead to C:\Documents and Settings\Your_User_Name\Local Settings\Temp, and, for example, lead to c:\temp instead. NT virtual dos machine have many glitches in long file name handling, so this could be cause...


I add the C:\WINDOWS\system32 and C:\Windows to the Path in environment variables but it still don't work... This is very strange