|
SpiderMonkey的配置编译肯定是没有问题的,也已经得到libjs.a和libjs.so两个库文件,但是,
在编译的时候出现如下错误,而且令我不解的是这些错误都是javascript解释引擎里文件的错误,而跟我自己写的测试程序没有关系。
我的测试文件和Makefile见附件。
错误信息:
/home/joe/development/JsEngine/js/src/jsapi.h:1611: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/home/joe/development/JsEngine/js/src/jsapi.h:1618: warning: type defaults to ‘int’ in declaration of ‘jschar’
/home/joe/development/JsEngine/js/src/jsapi.h:1618: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/home/joe/development/JsEngine/js/src/jsapi.h:1623: error: expected declaration specifiers or ‘...’ before ‘uintN’
/home/joe/development/JsEngine/js/src/jsapi.h:1624: error: ‘JS_CallFunction’ declared as function returning a function
/home/joe/development/JsEngine/js/src/jsapi.h:1627: error: expected declaration specifiers or ‘...’ before ‘uintN’
/home/joe/development/JsEngine/js/src/jsapi.h:1628: error: ‘JS_CallFunctionName’ declared as function returning a function
/home/joe/development/JsEngine/js/src/jsapi.h:1631: error: expected declaration specifiers or ‘...’ before ‘uintN’
/home/joe/development/JsEngine/js/src/jsapi.h:1632: error: ‘JS_CallFunctionValue’ declared as function returning a function
/home/joe/development/JsEngine/js/src/jsapi.h:1638: error: ‘JS_IsRunning’ declared as function returning a function
/home/joe/development/JsEngine/js/src/jsapi.h:1641: error: ‘JS_IsConstructing’ declared as function returning a function
/home/joe/development/JsEngine/js/src/jsapi.h:1649: error: ‘JS_IsAssigning’ declared as function returning a function
/home/joe/development/JsEngine/js/src/jsapi.h:1686: error: expected declaration specifiers or ‘...’ before ‘jschar’
。。。。。还有很多同样的错误,这里就不都拷贝出来了,是不是我的编译选项设置得有问题,
本人第一次接触spidermonkey,所以希望大虾多多指点 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|