DevKitPro GBA无法编译示例

时间:2018-09-16 21:19:05

标签: c devkit gameboy devkitpro gba

每当我尝试在DevKitPro中进行“制作”时,都会丢弃此错误:

Sunday = 2

我已经尝试过这些事情: 使DEVKITPRO,DEVKITARM,DEVKITPPC永久存在

WeekDayOrWeekEnd

CREATE FUNCTION [dbo].WeekDayOrWeekEnd (@input datetime) RETURNS VARCHAR(250) AS BEGIN DECLARE @Result VARCHAR(250) SET @Result =CASE WHEN DATEPART(dw,@input) IN (1,2) THEN 'Weekend' ELSE 'Weekday' END RETURN @Result END

CREATE PROCEDURE dates AS BEGIN DECLARE @startdate smalldatetime; DECLARE @dateafteryear smalldatetime; DECLARE @weekafter smalldatetime; DECLARE @daylater smalldatetime; SET @startdate = getdate(); SET @dateafteryear = DATEADD(YYYY,1,@startdate) SET @weekafter = DATEADD(week,1,@startdate) SET @daylater = DATEADD(day,1,@startdate) print 'Original Date ' + CAST(@startdate AS VARCHAR)+' is a '+ [dbo].WeekDayOrWeekEnd(@startdate) print 'A year later ' + CAST(@dateafteryear AS VARCHAR)+' is a '+ [dbo].WeekDayOrWeekEnd(@dateafteryear) print 'A week later ' + CAST(@weekafter AS VARCHAR)+' is a '+ [dbo].WeekDayOrWeekEnd(@weekafter) print 'A day later ' + CAST(@daylater AS VARCHAR) +' is a '+ [dbo].WeekDayOrWeekEnd(@daylater) END 在.bash_profile内

我尝试重新安装所有内容,对所有内容进行sudo'等等。

我的系统是MacOS Sierra 10.13.4,devkitPro pacman 1.0.1

如果有人可以帮助我,我将不胜感激。

对不起,英语错误。

0 个答案:

没有答案