CE6.0编译出错问题

e729   2010-6-24 10:10 楼主
我是将BSP包中的LCD显示部分文件全部拷到另一个目录下,然后在那个目录下的一个文件里面包含了个头文件(这个头文件在那个LCD显示文件中有定义的),也更改了source文件路径的,然后编译出现一大堆错误。sysgen了也不行的。请问是什么原因?

回复评论 (27)

编译出现如下错误,编译出错的头文件文件是在public文件夹下的。

BUILD: [01:0000000332:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(88) : error C2059: syntax error : 'constant'
BUILD: [01:0000000333:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(89) : error C2059: syntax error : 'constant'
BUILD: [01:0000000334:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(93) : error C2059: syntax error : 'constant'
BUILD: [01:0000000335:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(94) :
BUILD: [01:0000000337:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(99) : error C2059: syntax error : 'constant'
BUILD: [01:0000000338:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(100) : error C2059: syntax error : 'constant'
BUILD: [01:0000000339:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(101) : error C2059: syntax error : 'constant'
BUILD: [01:0000000340:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(102) : error C2059: syntax error : 'constant'
BUILD: [01:0000000341:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(103) : error C2059: syntax error : '}'
BUILD: [01:0000000342:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(190) : error C2061: syntax error : identifier 'POINTFIX'
BUILD: [01:0000000343:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(191) : error C2059: syntax error : '}'
BUILD: [01:0000000344:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2143: syntax error : missing ')' before '*'
BUILD: [01:0000000345:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2081: 'PATHDATA' : name in formal parameter list illegal
BUILD: [01:0000000346:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2143: syntax error : missing '{' before '*'
BUILD: [01:0000000347:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2059: syntax error : ')'
BUILD: [01:0000000348:WARNN ] F:\WINCE600\public\common\oak\inc\winddi.h(418) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
BUILD: [01:0000000349:WARNN ] F:\WINCE600\public\common\oak\inc\winddi.h(418) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
BUILD: [01:0000000350:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2146: syntax error : missing ')' before identifier 'prectfx'
BUILD: [01:0000000351:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2081: 'PRECTFX' : name in formal parameter list illegal
BUILD: [01:0000000352:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2061: syntax error : identifier 'prectfx'
BUILD: [01:0000000353:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2059: syntax error : ';'
BUILD: [01:0000000354:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(418) : error C2059: syntax error : ')'
BUILD: [01:0000000355:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2143: syntax error : missing ')' before '*'
BUILD: [01:0000000356:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2081: 'PATHDATA' : name in formal parameter list illegal
BUILD: [01:0000000357:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2143: syntax error : missing '{' before '*'
BUILD: [01:0000000358:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2059: syntax error : ')'
BUILD: [01:0000000359:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2059: syntax error : ';'
BUILD: [01:0000000360:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(965) : error C2081: 'PRECTFX' : name in formal parameter list illegal
BUILD: [01:0000000361:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(983) : error C2061: syntax error : identifier 'PFN_PATHOBJ_bEnum'
BUILD: [01:0000000362:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(993) : error C2059: syntax error : '}'
BUILD: [01:0000000363:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2146: syntax error : missing ')' before identifier 'pCallbacks'
BUILD: [01:0000000364:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2081: 'PENGCALLBACKS' : name in formal parameter list illegal
BUILD: [01:0000000365:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2061: syntax error : identifier 'pCallbacks'
BUILD: [01:0000000366:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2059: syntax error : ';'
BUILD: [01:0000000367:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1005) : error C2059: syntax error : ')'
BUILD: [01:0000000368:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2146: syntax error : missing ')' before identifier 'pCallbacks'
BUILD: [01:0000000369:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2081: 'PENGCALLBACKS' : name in formal parameter list illegal
BUILD: [01:0000000370:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2061: syntax error : identifier 'pCallbacks'
BUILD: [01:0000000371:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2059: syntax error : ';'
BUILD: [01:0000000372:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2059: syntax error : ')'
BUILD: [01:0000000373:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(107) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000374:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(108) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000375:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(109) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000376:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(110) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000377:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(111) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000378:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(112) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000379:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(113) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000380:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(114) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000381:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(115) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000382:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(116) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000383:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(117) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000384:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(118) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000385:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(119) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000386:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(120) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000387:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(121) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000388:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(122) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000389:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(123) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000390:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(134) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000391:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(135) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000392:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(136) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000393:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(137) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000394:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(138) : warning C4214: nonstandard extension used : bit field types other than int
BUILD: [01:0000000395:ERRORE] F:\WINCE600\public\common\oak\inc\genblt.h(169) : error C2143: syntax error : missing ')' before '*'
BUILD: [01:0000000396:ERRORE] F:\WINCE600\public\common\oak\inc\genblt.h(169) : error C2143: syntax error : missing '{' before '*'
BUILD: [01:0000000397:WARNN ] F:\WINCE600\public\common\oak\inc\genblt.h(169) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
BUILD: [01:0000000398:ERRORE] F:\WINCE600\public\common\oak\inc\genblt.h(169) : error C2059: syntax error : 'type'
BUILD: [01:0000000399:ERRORE] F:\WINCE600\public\common\oak\inc\genblt.h(169) : error C2059: syntax error : ')'
BUILD: [01:0000000400:ERRORE] F:\WINCE600\public\common\oak\inc\genblt.h(174) : error C2061: syntax error : identifier 'GenBltSignature'
BUILD: [01:0000000401:ERRORE] F:\WINCE600\public\common\oak\inc\genblt.h(177) : error C2059: syntax error : '}'
BUILD: [01:0000000402:ERRORE] F:\WINCE600\public\common\oak\inc\genblt.h(181) : error C2061: syntax error : identifier 'GenBltSignature'
点赞  2010-6-24 10:13
引用: 引用楼主 winarmlinux 的回复:
我是将BSP包中的LCD显示部分文件全部拷到另一个目录下,然后在那个目录下的一个文件里面包含了个头文件(这个头文件在那个LCD显示文件中有定义的),也更改了source文件路径的,然后编译出现一大堆错误。sysgen了也不行的。请问是什么原因?


假设你在A.cpp里加上了#include , 把"#include"这句话往后挪几行
如果还有错,把build.log的内容贴上来
点赞  2010-6-24 16:48
我在main函数中这样定义是没有问题的:
#include "bsp.h"
#include
#pragma warning(push)
#pragma warning(disable: 4115)
#include
#pragma warning(pop)
#include "loader.h"
#include "sdfmd.h"

#include "bitmap.h"

#include "pimm.h"
但是要是叫我再加了一个文件,编译就出错了的:
#include "bsp.h"
#include
#pragma warning(push)
#pragma warning(disable: 4115)
#include
#pragma warning(pop)
#include "loader.h"
#include "sdfmd.h"

#include "bitmap.h"

#include "pimm.h"

#include "winddi.h"
这样就铸错了的。pimm.h和winddi.h是在同一个目录\WINCE600\PUBLIC\COMMON\OAK\INC下面,请问为什么?
点赞  2010-6-24 17:13
错误时这样的:
BUILD: [01:0000000281:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(88) : error C2059: syntax error : 'constant'
BUILD: [01:0000000282:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(89) : error C2059: syntax error : 'constant'
BUILD: [01:0000000283:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(93) : error C2059: syntax error : 'constant'
BUILD: [01:0000000284:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(94) : error C2059: syntax error : 'constant'
BUILD: [01:0000000285:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(95) : error C2059: syntax error : '}'
BUILD: [01:0000000286:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(99) : error C2059: syntax error : 'constant'
BUILD: [01:0000000287:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(100) : error C2059: syntax error : 'constant'
BUILD: [01:0000000288:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(101) : error C2059: syntax error : 'constant'
BUILD: [01:0000000289:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(102) : error C2059: syntax error : 'constant'
BUILD: [01:0000000290:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(103) : error C2059: syntax error : '}'
BUILD: [01:0000000291:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(190) : error C2061: syntax error : identifier 'POINTFIX'
BUILD: [01:0000000292:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(191) : error C2059: syntax error : '}'
BUILD: [01:0000000293:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2143: syntax error : missing ')' before '*'
BUILD: [01:0000000294:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2081: 'PATHDATA' : name in formal parameter list illegal
BUILD: [01:0000000295:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2143: syntax error : missing '{' before '*'
BUILD: [01:0000000296:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2059: syntax error : ')'
BUILD: [01:0000000297:WARNN ] F:\WINCE600\public\common\oak\inc\winddi.h(420) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
BUILD: [01:0000000298:WARNN ] F:\WINCE600\public\common\oak\inc\winddi.h(420) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
BUILD: [01:0000000299:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2146: syntax error : missing ')' before identifier 'prectfx'
BUILD: [01:0000000300:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2081: 'PRECTFX' : name in formal parameter list illegal
BUILD: [01:0000000301:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2061: syntax error : identifier 'prectfx'
BUILD: [01:0000000302:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2059: syntax error : ';'
BUILD: [01:0000000303:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2059: syntax error : ')'
BUILD: [01:0000000304:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2143: syntax error : missing ')' before '*'
BUILD: [01:0000000305:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2081: 'PATHDATA' : name in formal parameter list illegal
BUILD: [01:0000000306:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2143: syntax error : missing '{' before '*'
BUILD: [01:0000000307:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2059: syntax error : ')'
BUILD: [01:0000000308:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2059: syntax error : ';'
BUILD: [01:0000000309:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(965) : error C2081: 'PRECTFX' : name in formal parameter list illegal
BUILD: [01:0000000310:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(983) : error C2061: syntax error : identifier 'PFN_PATHOBJ_bEnum'
BUILD: [01:0000000311:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(985) : error C2365: 'XLATEOBJ_cGetPalette' : redefinition; previous definition was 'function'
BUILD: [01:0000000313:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(986) : error C2365: 'EngCreateDeviceSurface' : redefinition; previous definition was 'function'
BUILD: [01:0000000315:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(987) : error C2365: 'EngDeleteSurface' : redefinition; previous definition was 'function'
BUILD: [01:0000000317:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(988) : error C2365: 'EngCreateDeviceBitmap' : redefinition; previous definition was 'function'
BUILD: [01:0000000319:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(989) : error C2365: 'EngCreatePalette' : redefinition; previous definition was 'function'
BUILD: [01:0000000321:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(990) : error C2365: 'EngGetPaletteFromPool' : redefinition; previous definition was 'function'
BUILD: [01:0000000323:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(991) : error C2365: 'EngAddPaletteToPool' : redefinition; previous definition was 'function'
BUILD: [01:0000000325:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(992) : error C2365: 'EngReleasePooledPalette' : redefinition; previous definition was 'function'
BUILD: [01:0000000327:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(993) : error C2059: syntax error : '}'
BUILD: [01:0000000328:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2146: syntax error : missing ')' before identifier 'pCallbacks'
BUILD: [01:0000000329:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2081: 'PENGCALLBACKS' : name in formal parameter list illegal
BUILD: [01:0000000330:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2061: syntax error : identifier 'pCallbacks'
BUILD: [01:0000000331:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2059: syntax error : ';'
BUILD: [01:0000000332:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1005) : error C2059: syntax error : ')'
BUILD: [01:0000000333:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2146: syntax error : missing ')' before identifier 'pCallbacks'
BUILD: [01:0000000334:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2081: 'PENGCALLBACKS' : name in formal parameter list illegal
BUILD: [01:0000000335:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2061: syntax error : identifier 'pCallbacks'
BUILD: [01:0000000336:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2059: syntax error : ';'
BUILD: [01:0000000337:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2059: syntax error : ')'
点赞  2010-6-24 17:18
在#include "winddi.h"之前#include "windows.h" ?
点赞  2010-6-24 18:56
有windows.h的,和那个有冲突么?
点赞  2010-6-25 09:01
顶起,学习一下。
点赞  2010-6-25 09:13
引用: 引用 6 楼 winarmlinux 的回复:
有windows.h的,和那个有冲突么?


编译完后,在你的LCD目录下有个build.log文件,请把这个文件的内容贴上来
点赞  2010-6-25 10:45
我现在在bootloader中的common文件夹中的main文件中定义一个头文件#include "precomp.h",并在common文件夹下的source中定义了precomp.h文件所在的路径。胆识编译就是提示找不到precomp.h文件,编译提示错误如下:
BUILD: [01:0000000278:PROGC ] Compiling .\main.c
BUILD: [01:0000000281:ERRORE] F:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\SRC\BOOTLOADER\COMMON\.\main.c(25) : fatal error C1083: Cannot open include file: 'precomp.h': No such file or directory
BUILD: [01:0000000282:PROGC ] Compiling .\flash.c
BUILD: [01:0000000285:PROGC ] Compiling .\utils.c

点赞  2010-6-25 11:14
从报错信息上来看winddi.h中的constant关键词没有被识别出来,建议看看winddi.h中有引用什么别的头文件吗?或是这个文件需要别的头文件来支持?建议不要在public下改动文件,牵扯太多系统的函数。
点赞  2010-6-25 11:18
我没改public文件夹中的内容的。现在主要是我想调用一个总的头文件precomp.h,这个文件中包含很多的头文件,那我要怎么做才能达到解决这个头文件在别的地方调用不会出错呢?
点赞  2010-6-25 11:30
这个错误很明显了。肯定是你的sources没写对。你的precomp.h在哪?sources文件怎么写的?

另外,这个错误和这个讨论最开始的错误有关系吗?
点赞  2010-6-25 11:51
有关系的,只是写法不一样导致的。
precomp.h的路径是:F:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\SRC\DRIVERS\IPU\DISPLAY\COMMON

precomp.h中的内容是:
#pragma warning(push)
#pragma warning(disable: 4201)

#include
#include
#include
#include
#include

#include
#include

#include
#include
#include
#include


source内容是:
!if 0
Copyright (C) 2006-2008 Freescale Semiconductor, Inc. All Rights Reserved.
THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
!endif

TARGETNAME=bootcmn
TARGETTYPE=LIBRARY
RELEASETYPE=PLATFORM
NOMIPS16CODE=1

INCLUDES= \
  $(INCLUDES); \
  $(_PLATFORMROOT)\common\src\soc\$(_COMMONSOCDIR)\boot\fmd\sdmmc; \
  $(_PLATFORMROOT)\common\src\soc\$(_COMMONSOCDIR)\boot\fmd\nand; \
  $(_PLATFORMROOT)\common\src\soc\$(_COMMONSOCDIR)\ipu\inc; \
  $(_PLATFORMROOT)\SRC\DRIVERS\IPU\DISPLAY\COMMON; \

CDEFINES=$(CDEFINES) -DBOOTLOADER

LDEFINES=-subsystem:native /DEBUG /DEBUGTYPE:CV /FIXED:NO

SOURCES=\
    main.c \
    flash.c \
    utils.c \
    nand.c \
    nor.c \
    esdhc.c \
    ether.c \
    nfc_boot.cpp

ARM_SOURCES=\
    startup.s
点赞  2010-6-25 12:19
等半个月我也来中整CE6.0,呵呵……
点赞  2010-6-25 12:31
sources里
$(_PLATFORMROOT)\SRC\DRIVERS\IPU\DISPLAY\COMMON; \
改成
$(_TARGETPLATROOT)\SRC\DRIVERS\IPU\DISPLAY\COMMON; \
点赞  2010-6-25 12:56
改完编译后出现很多错误,这次没出现找不到文件,就是上面我写的哪些错误:
BUILD: [01:0000000281:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(88) : error C2059: syntax error : 'constant'
BUILD: [01:0000000282:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(89) : error C2059: syntax error : 'constant'
BUILD: [01:0000000283:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(93) : error C2059: syntax error : 'constant'
BUILD: [01:0000000284:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(94) : error C2059: syntax error : 'constant'
BUILD: [01:0000000285:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(95) : error C2059: syntax error : '}'
BUILD: [01:0000000286:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(99) : error C2059: syntax error : 'constant'
BUILD: [01:0000000287:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(100) : error C2059: syntax error : 'constant'
BUILD: [01:0000000288:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(101) : error C2059: syntax error : 'constant'
BUILD: [01:0000000289:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(102) : error C2059: syntax error : 'constant'
BUILD: [01:0000000290:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(103) : error C2059: syntax error : '}'
BUILD: [01:0000000291:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(190) : error C2061: syntax error : identifier 'POINTFIX'
BUILD: [01:0000000292:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(191) : error C2059: syntax error : '}'
BUILD: [01:0000000293:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2143: syntax error : missing ')' before '*'
BUILD: [01:0000000294:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2081: 'PATHDATA' : name in formal parameter list illegal
BUILD: [01:0000000295:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2143: syntax error : missing '{' before '*'
BUILD: [01:0000000296:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2059: syntax error : ')'
BUILD: [01:0000000297:WARNN ] F:\WINCE600\public\common\oak\inc\winddi.h(420) : warning C4431: missing type specifier - int assumed. Note: C no longer supports default-int
BUILD: [01:0000000298:WARNN ] F:\WINCE600\public\common\oak\inc\winddi.h(420) : warning C4218: nonstandard extension used : must specify at least a storage class or a type
BUILD: [01:0000000299:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2146: syntax error : missing ')' before identifier 'prectfx'
BUILD: [01:0000000300:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2081: 'PRECTFX' : name in formal parameter list illegal
BUILD: [01:0000000301:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2061: syntax error : identifier 'prectfx'
BUILD: [01:0000000302:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2059: syntax error : ';'
BUILD: [01:0000000303:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(420) : error C2059: syntax error : ')'
BUILD: [01:0000000304:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2143: syntax error : missing ')' before '*'
BUILD: [01:0000000305:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2081: 'PATHDATA' : name in formal parameter list illegal
BUILD: [01:0000000306:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2143: syntax error : missing '{' before '*'
BUILD: [01:0000000307:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2059: syntax error : ')'
BUILD: [01:0000000308:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(964) : error C2059: syntax error : ';'
BUILD: [01:0000000309:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(965) : error C2081: 'PRECTFX' : name in formal parameter list illegal
BUILD: [01:0000000310:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(983) : error C2061: syntax error : identifier 'PFN_PATHOBJ_bEnum'
BUILD: [01:0000000311:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(985) : error C2365: 'XLATEOBJ_cGetPalette' : redefinition; previous definition was 'function'
BUILD: [01:0000000313:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(986) : error C2365: 'EngCreateDeviceSurface' : redefinition; previous definition was 'function'
BUILD: [01:0000000315:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(987) : error C2365: 'EngDeleteSurface' : redefinition; previous definition was 'function'
BUILD: [01:0000000317:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(988) : error C2365: 'EngCreateDeviceBitmap' : redefinition; previous definition was 'function'
BUILD: [01:0000000319:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(989) : error C2365: 'EngCreatePalette' : redefinition; previous definition was 'function'
BUILD: [01:0000000321:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(990) : error C2365: 'EngGetPaletteFromPool' : redefinition; previous definition was 'function'
BUILD: [01:0000000323:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(991) : error C2365: 'EngAddPaletteToPool' : redefinition; previous definition was 'function'
BUILD: [01:0000000325:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(992) : error C2365: 'EngReleasePooledPalette' : redefinition; previous definition was 'function'
BUILD: [01:0000000327:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(993) : error C2059: syntax error : '}'
BUILD: [01:0000000328:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2146: syntax error : missing ')' before identifier 'pCallbacks'
BUILD: [01:0000000329:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2081: 'PENGCALLBACKS' : name in formal parameter list illegal
BUILD: [01:0000000330:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2061: syntax error : identifier 'pCallbacks'
BUILD: [01:0000000331:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1004) : error C2059: syntax error : ';'
BUILD: [01:0000000332:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1005) : error C2059: syntax error : ')'
BUILD: [01:0000000333:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2146: syntax error : missing ')' before identifier 'pCallbacks'
BUILD: [01:0000000334:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2081: 'PENGCALLBACKS' : name in formal parameter list illegal
BUILD: [01:0000000335:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2061: syntax error : identifier 'pCallbacks'
BUILD: [01:0000000336:ERRORE] F:\WINCE600\public\common\oak\inc\winddi.h(1007) : error C2059: syntax error : ';'
点赞  2010-6-25 13:35
引用: 引用 8 楼 xdkui 的回复:
引用 6 楼 winarmlinux 的回复:
有windows.h的,和那个有冲突么?


编译完后,在你的LCD目录下有个build.log文件,请把这个文件的内容贴上来


编译完后,在你的LCD目录下有个build.log文件,请把这个文件的内容贴上来
点赞  2010-6-25 13:45
觉得这种错误一般都是 source文件中 INCLUDE 设置错误
点赞  2010-6-25 15:13
引用: 引用 15 楼 xdkui 的回复:
sources里
$(_PLATFORMROOT)\SRC\DRIVERS\IPU\DISPLAY\COMMON; \
改成
$(_TARGETPLATROOT)\SRC\DRIVERS\IPU\DISPLAY\COMMON; \


按那样改完后就出现很多错误的:
BUILD: [Thrd:Sequence:Type  ] Message
BUILD: [00:0000000000:PROGC ] Build started with parameters:
BUILD: [00:0000000001:PROGC ] Build started in directory: D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON
BUILD: [00:0000000002:PROGC ] Checking for D:\WINCE600\sdk\bin\i386\srccheck.exe.
BUILD: [00:0000000003:PROGC ] Running passes WCEFILES0, MIDL, MC, ASN, THUNK, PRECOMPHEADER, COMPILE, LIB, LINK, MANAGEDRESX, MANAGEDMOD, MANAGEDDLL, MANAGEDEXE, MANAGEDWIN for ARM.
BUILD: [00:0000000004:PROGC ] Loading database "D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\Build.dat".
BUILD: [00:0000000005:PROGC ] Done.
BUILD: [00:0000000006:PROGC ] Computing include file dependencies:
BUILD: [00:0000000007:PROGC ] Checking for SDK include directory: D:\WINCE600\sdk\CE\inc.
BUILD: [00:0000000008:PROGC ] Scan D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\
BUILD: [00:0000000009:PROGC ] Saving D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\Build.dat.
BUILD: [00:0000000010:INFO  ] Done.
BUILD: [00:0000000011:INFO  ] Will Build D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\main.c because target: obj\ARMV4I\retail\main.obj is missing.
BUILD: [00:0000000012:PROGC ] Building COMPILE Pass in D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\ directory.
BUILD: [00:0000000013:PROG  ] 'NMAKE.EXE TargetCompilePass  -i -c BUILDMSG=Stop.  BUILDROOT=D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6 NOLINK=1 NOPASS0=1'
BUILD: [01:0000000014:INFO  ] makefile.def: Including D:\WINCE600\public\common\oak\misc\Sources.default
BUILD: [01:0000000015:INFO  ] makefile.def: BUILDROOT is D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6
BUILD: [01:0000000016:INFO  ] makefile.def: Including D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\sources.cmn
BUILD: [01:0000000017:INFO  ] makefile.def: Including D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\sources
BUILD: [01:0000000018:INFO  ] makefile.def: Including D:\WINCE600\public\common\oak\misc\Sources.CE
BUILD: [01:0000000019:INFO  ] Directory: D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON
BUILD: [01:0000000020:INFO  ] TARGETNAME: bootcmn
BUILD: [01:0000000021:INFO  ] makefile.def: Including D:\WINCE600\public\common\oak\misc\sources.ReleaseType_PLATFORM
BUILD: [01:0000000022:PROGC ] Compiling .\main.c
BUILD: [01:0000000023:INFO  ] cl -nologo   /Gy -Foobj\ARMV4I\retail\main.obj -c -IARM\ -I. -ID:\WINCE600\platform\iMX35-3DS-PDK1_6\src\inc -ID:\WINCE600\platform\common\src\soc\common_fsl_v2_pdk1_6\inc -ID:\WINCE600\platform\common\src\soc\mx35_fsl_v2_pdk1_6\inc -ID:\WINCE600\platform\common\src\inc -ID:\WINCE600\platform\common\src\soc\common_fsl_v2_pdk1_6\boot\fmd\sdmmc -ID:\WINCE600\platform\common\src\soc\common_fsl_v2_pdk1_6\boot\fmd\nand -ID:\WINCE600\public\common\sdk\inc -ID:\WINCE600\public\common\oak\inc -ID:\WINCE600\public\common\ddk\inc -ID:\WINCE600\sdk\CE\inc -I.\Resource\0804 -Ox -Os -GF -Zi -FdD:\WINCE600\platform\iMX35-3DS-PDK1_6\lib\ARMV4I\retail\bootcmn.pdb -D_CRT_SECURE_NO_DEPRECATE -D_USE_32BIT_TIME_T -DUNICODE -D_UNICODE -DUNDER_CE=600 -D_WIN32_WCE=0x600 -DWINCEOEM -DWINCEINTERNAL -DWIN32 -DSTRICT -DARM -DARMV4I -D_ARM_ -DNDEBUG=1 -DCEDDK_USEDDKMACRO -DBSP_PLATFORM_MDK -DBOOTLOADER -DINTERNATIONAL -DINTLMSG_CODEPAGE=1252 -WX -QRimplicit-import- -Zi  -Zc:wchar_t- -Zc:forScope- -wd4867 -wd4430 -MT -U_MT -W4    /GR- -QRarch4T -DTHUMBSUPPORT -QRinterwork-return  /GS D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\.\main.c
BUILD: [01:0000000024:INFO  ] main.c
BUILD: [00:0000000025:INFO  ] Will Build D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\obj\ARMV4I\retail\main.obj because target: D:\WINCE600\platform\iMX35-3DS-PDK1_6\lib\ARMV4I\retail\bootcmn.lib is out of date.
BUILD: [00:0000000026:PROGC ] Building LIB Pass in D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\ directory.
BUILD: [00:0000000027:PROG  ] 'NMAKE.EXE TargetLibFiles  -i -c BUILDMSG=Stop.  BUILDROOT=D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6 LINKONLY=1 NOPASS0=1'
BUILD: [01:0000000028:INFO  ] makefile.def: Including D:\WINCE600\public\common\oak\misc\Sources.default
BUILD: [01:0000000029:INFO  ] makefile.def: BUILDROOT is D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6
BUILD: [01:0000000030:INFO  ] makefile.def: Including D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\sources.cmn
BUILD: [01:0000000031:INFO  ] makefile.def: Including D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON\sources
BUILD: [01:0000000032:INFO  ] makefile.def: Including D:\WINCE600\public\common\oak\misc\Sources.CE
BUILD: [01:0000000033:INFO  ] Directory: D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\src\BOOTLOADER\COMMON
BUILD: [01:0000000034:INFO  ] TARGETNAME: bootcmn
BUILD: [01:0000000035:INFO  ] makefile.def: Including D:\WINCE600\public\common\oak\misc\sources.ReleaseType_PLATFORM
BUILD: [01:0000000036:PROGC ] Linking D:\WINCE600\platform\iMX35-3DS-PDK1_6\lib\ARMV4I\retail\bootcmn.lib
BUILD: [01:0000000037:INFO  ]         link -lib -out:D:\WINCE600\platform\iMX35-3DS-PDK1_6\lib\ARMV4I\retail\bootcmn.lib -machine:thumb @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm7E0.tmp
BUILD: [00:0000000038:PROGC ] Saving D:\WINCE600\PLATFORM\iMX35-3DS-PDK1_6\Build.dat.
BUILD: [00:0000000039:INFO  ] Done.
BUILD: [00:0000000040:PROGC ] Done.
BUILD: [00:0000000041:PROGC ]                        Files  Warnings  Errors
BUILD: [00:0000000042:PROGC ] Midl                       0         0       0
BUILD: [00:0000000043:PROGC ] Message                    0         0       0
BUILD: [00:0000000044:PROGC ] Precomp Header             0         0       0
BUILD: [00:0000000045:PROGC ] Resource                   0         0       0
BUILD: [00:0000000046:PROGC ] MASM                       0         0       0
BUILD: [00:0000000047:PROGC ] SHASM                      0         0       0
BUILD: [00:0000000048:PROGC ] ARMASM                     0         0       0
BUILD: [00:0000000049:PROGC ] MIPSASM                    0         0       0
BUILD: [00:0000000050:PROGC ] C++                        0         0       0
BUILD: [00:0000000051:PROGC ] C                          1         0       0
BUILD: [00:0000000052:PROGC ] Static Libraries           1         0       0
BUILD: [00:0000000053:PROGC ] Exe's                      0         0       0
BUILD: [00:0000000054:PROGC ] Dll's                      0         0       0
BUILD: [00:0000000055:PROGC ] Preprocess deffile         0         0       0
BUILD: [00:0000000056:PROGC ] Resx                       0         0       0
BUILD: [00:0000000057:PROGC ] CSharp Compile             0         0       0
BUILD: [00:0000000058:PROGC ] Other                      0         0       0
BUILD: [00:0000000059:PROGC ]
BUILD: [00:0000000060:PROGC ] Total                      2         0       0
BUILD: [00:0000000061:PROGC ]
BUILD: [00:0000000062:PROGC ] 0 Warnings,  0 Errors
BUILD: [00:0000000063:PROGC ] GetSystemTimes (seconds): Idle: 0     Kernel: 1     User: 0   
BUILD: [00:0000000064:PROGC ] Elapsed  time  (seconds): 0   
点赞  2010-6-25 16:30
12下一页
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复