|
楼主 |
发表于 2008-11-6 12:53:52
|
显示全部楼层
在编译mesa时遇到这些错误:(这些提示信息中包含很多的乱码,除去那些乱码,就是下面显示的信息了)../common/xmlconfig.c:937: error: ‘struct OptConfData’ has no member named ‘parser’
../common/xmlconfig.c:939: error: ‘struct OptConfData’ has no member named ‘ignoringDevice’
../common/xmlconfig.c:940: error: ‘struct OptConfData’ has no member named ‘ignoringApp’
../common/xmlconfig.c:941: error: ‘struct OptConfData’ has no member named ‘inDriConf’
../common/xmlconfig.c:942: error: ‘struct OptConfData’ has no member named ‘inDevice’
../common/xmlconfig.c:943: error: ‘struct OptConfData’ has no member named ‘inApp’
../common/xmlconfig.c:944: error: ‘struct OptConfData’ has no member named ‘inOption’
../common/xmlconfig.c:946: warning: implicit declaration of function ‘parseOneConfigFile’ 从提示信息上可以看出是xmlconfig.c文件中的struct OptConfData问题,但是在该文件中struct OptConfData定义如下:
struct OptConfData {
const char *name;
XML_Parser parser;
driOptionCache *cache;
GLint screenNum;
const char *driverName, *execName;
GLuint ignoringDevice;
GLuint ignoringApp;
GLuint inDriConf;
GLuint inDevice;
GLuint inApp;
GLuint inOption;
};
xmlconfig.c中报错的地方程序如下所示:
userData.parser = p;
userData.name = filenames;
userData.ignoringDevice = 0;
userData.ignoringApp = 0;
userData.inDriConf = 0;
userData.inDevice = 0;
userData.inApp = 0;
userData.inOption = 0;
userData定义信息:
struct OptConfData userData; |
|