GithubHelp home page GithubHelp logo

silk's People

Contributors

jetgu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

silk's Issues

centos7.x编译安装失败

In file included from AST.h:3:0,
from Parser.h:28,
from Interpreter.h:27,
from SilkLang.cpp:3:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^
SilkLang.cpp: In function ‘int main(int, char**)’:
SilkLang.cpp:17:75: error: ‘printf’ was not declared in this scope
printf("Silk programming language version %s (%s)\n", _VERSION,_PLATFORM);
^
SilkLang.cpp:22:25: error: ‘stdin’ was not declared in this scope
if (fgets(buff, 1024, stdin))
^
SilkLang.cpp:22:30: error: ‘fgets’ was not declared in this scope
if (fgets(buff, 1024, stdin))
^
SilkLang.cpp:46:50: error: ‘printf’ was not declared in this scope
printf("cannot open file %s.", filename.c_str());
^
SilkLang.cpp:47:11: error: ‘getchar’ was not declared in this scope
getchar();
^
In file included from /usr/include/c++/4.8.2/regex:35:0,
from Library.cpp:5:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from Library.h:2:0,
from Library.cpp:1:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^
Library.cpp: In function ‘void dll_callback(PARAMS*)’:
Library.cpp:63:56: error: ‘sprintf’ was not declared in this scope
sprintf(buff, "_getargv("temp_argv")[%d]", i);
^
Library.cpp:80:45: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "temp%d%d", rand(),rand());
^
Library.cpp: In static member function ‘static std::string Tool::mysprintf(std::string&, std::vector&)’:
Library.cpp:317:65: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].strValue().c_str());
^
Library.cpp:334:58: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].intValue());
^
Library.cpp:336:61: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].strValue()[0]);
^
Library.cpp:357:58: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].intValue());
^
Library.cpp:359:61: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].strValue()[0]);
^
Library.cpp:376:58: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].intValue());
^
Library.cpp:378:61: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].strValue()[0]);
^
Library.cpp:391:59: error: ‘sprintf’ was not declared in this scope
sprintf(buff, fmt.c_str(), vecArgs[index].floatValue());
^
Library.cpp: In static member function ‘static std::string Tool::readfile(const string&)’:
Library.cpp:410:44: error: ‘fopen’ was not declared in this scope
FILE fp = fopen(strFilename.c_str(), "rb");
^
Library.cpp:414:23: error: ‘fseek’ was not declared in this scope
fseek(fp, 0, SEEK_END);
^
Library.cpp:415:22: error: ‘ftell’ was not declared in this scope
_INT size = ftell(fp);
^
Library.cpp:418:51: error: ‘fread’ was not declared in this scope
_INT ret = fread(buffer, 1, sizeof(char)size, fp);
^
Library.cpp:422:11: error: ‘fclose’ was not declared in this scope
fclose(fp);
^
Library.cpp: In static member function ‘static CVariable Tool::interpreter(const string&, const string&, const std::vector&, const CVariable&, std::string)’:
Library.cpp:543:38: error: ‘fopen’ was not declared in this scope
out = fopen(outputfile.c_str(), "w");
^
Library.cpp:575:13: error: ‘fclose’ was not declared in this scope
fclose(out);
^
Library.cpp: In member function ‘void
File::open(const char
, const char*)’:
Library.cpp:582:33: error: ‘fopen’ was not declared in this scope
FILE fp = fopen(filename, mode);
^
Library.cpp: In member function ‘void File::close(void
)’:
Library.cpp:589:23: error: ‘fclose’ was not declared in this scope
fclose((FILE*)handle);
^
Library.cpp: In member function ‘bool File::read(void*, long int, CVariable&)’:
Library.cpp:600:52: error: ‘fread’ was not declared in this scope
_INT ret = fread(buffer, 1, sizeof(char)size, fp);
^
Library.cpp: In member function ‘bool File::write(void
, CVariable&)’:
Library.cpp:617:43: error: ‘fwrite’ was not declared in this scope
fwrite(buffer, 1, sizeof(char)size, fp);
^
Library.cpp:622:42: error: ‘fwrite’ was not declared in this scope
fwrite(&value, 1, sizeof(_INT) * 1, fp);
^
Library.cpp:627:44: error: ‘fwrite’ was not declared in this scope
fwrite(&value, 1, sizeof(double) * 1, fp);
^
Library.cpp: In member function ‘long int File::size(void
)’:
Library.cpp:644:24: error: ‘fseek’ was not declared in this scope
fseek(fp, 0, SEEK_END);
^
Library.cpp:645:22: error: ‘ftell’ was not declared in this scope
_INT len = ftell(fp);
^
Library.cpp: In member function ‘bool File::seek(void*, long int)’:
Library.cpp:660:32: error: ‘fseek’ was not declared in this scope
fseek(fp, (long)pos, SEEK_SET);
^
Library.cpp: In static member function ‘static bool Func::call_func(const std::vector&, CVariable&)’:
Library.cpp:1778:47: error: no matching function for call to ‘remove(const char*)’
int res=remove(filename.strValue().c_str());
^
Library.cpp:1778:47: note: candidate is:
In file included from /usr/include/c++/4.8.2/algorithm:62:0,
from Library.cpp:4:
/usr/include/c++/4.8.2/bits/stl_algo.h:1091:5: note: template<class _FIter, class _Tp> _FIter std::remove(_FIter, _FIter, const _Tp&)
remove(_ForwardIterator __first, _ForwardIterator __last,
^
/usr/include/c++/4.8.2/bits/stl_algo.h:1091:5: note: template argument deduction/substitution failed:
Library.cpp:1778:47: note: candidate expects 3 arguments, 1 provided
int res=remove(filename.strValue().c_str());
^
Library.cpp:1793:86: error: ‘rename’ was not declared in this scope
int res = rename(filename_old.strValue().c_str(), filename_new.strValue().c_str());
^
Library.cpp:2320:81: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "%s", inet_ntoa((struct in_addr)hostInfo->h_addr_list[i]));
^
Library.cpp:2363:46: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "temp%d%d", rand(), rand());
^
Library.cpp:2386:46: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "temp%d%d", rand(), rand());
^
Library.cpp:2555:20: error: ‘stdin’ was not declared in this scope
int x = fgetc(stdin);
^
Library.cpp:2555:25: error: ‘fgetc’ was not declared in this scope
int x = fgetc(stdin);
^
Library.cpp:2556:19: error: ‘feof’ was not declared in this scope
if(feof(stdin))
^
Library.cpp:2580:23: error: ‘stdout’ was not declared in this scope
fputc(strBuf[i], stdout);
^
Library.cpp:2580:29: error: ‘fputc’ was not declared in this scope
fputc(strBuf[i], stdout);
^
Library.cpp: In static member function ‘static bool Func::run_code(const string&, const std::vector&, CVariable&, const string&)’:
Library.cpp:2636:88: error: ‘sprintf’ was not declared in this scope
sprintf(buff, "response.write(arrayHtml[%d]);", (int)arrayHtml.arrValue()->size() - 1);
^
Library.cpp:2647:87: error: ‘sprintf’ was not declared in this scope
sprintf(buff, "response.write(arrayHtml[%d]);", (int)arrayHtml.arrValue()->size() - 1);
^
Library.cpp: In static member function ‘static bool Func::regex_func(const std::vector&, CVariable&)’:
Library.cpp:3034:21: error: ‘regex_constants’ was not declared in this scope
static map<string, regex_constants::syntax_option_type> flagMap;
^
Library.cpp:3034:56: error: template argument 2 is invalid
static map<string, regex_constants::syntax_option_type> flagMap;
^
Library.cpp:3034:56: error: template argument 4 is invalid
Library.cpp:3034:65: error: invalid type in declaration before ‘;’ token
static map<string, regex_constants::syntax_option_type> flagMap;
^
Library.cpp:3035:14: error: request for member ‘size’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.size() == 0)
^
Library.cpp:3037:22: error: ‘regex’ has not been declared
flagMap["icase"] = regex::icase;
^
Library.cpp:3038:23: error: ‘regex’ has not been declared
flagMap["nosubs"] = regex::nosubs;
^
Library.cpp:3039:25: error: ‘regex’ has not been declared
flagMap["optimize"] = regex::optimize;
^
Library.cpp:3040:24: error: ‘regex’ has not been declared
flagMap["collate"] = regex::collate;
^
Library.cpp:3041:27: error: ‘regex’ has not been declared
flagMap["ECMAScript"] = regex::ECMAScript;
^
Library.cpp:3042:22: error: ‘regex’ has not been declared
flagMap["basic"] = regex::basic;
^
Library.cpp:3043:25: error: ‘regex’ has not been declared
flagMap["extended"] = regex::extended;
^
Library.cpp:3044:20: error: ‘regex’ has not been declared
flagMap["awk"] = regex::awk;
^
Library.cpp:3045:21: error: ‘regex’ has not been declared
flagMap["grep"] = regex::grep;
^
Library.cpp:3046:22: error: ‘regex’ has not been declared
flagMap["egrep"] = regex::egrep;
^
Library.cpp:3058:4: error: ‘regex’ was not declared in this scope
regex re(pattern);
^
Library.cpp:3058:10: error: expected ‘;’ before ‘re’
regex re(pattern);
^
Library.cpp:3061:5: error: ‘regex_constants’ is not a class or namespace
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3061:41: error: expected ‘;’ before ‘type’
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3066:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3066:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3067:7: error: ‘type’ was not declared in this scope
type = flagMap[vecFlag[0]];
^
Library.cpp:3067:21: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = flagMap[vecFlag[0]];
^
Library.cpp:3071:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3071:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3072:7: error: ‘type’ was not declared in this scope
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3072:28: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3075:5: error: ‘re’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3075:25: error: ‘type’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3077:4: error: ‘smatch’ was not declared in this scope
smatch result;
^
Library.cpp:3077:11: error: expected ‘;’ before ‘result’
smatch result;
^
Library.cpp:3078:26: error: ‘result’ was not declared in this scope
if (regex_match(text, result, re))
^
Library.cpp:3078:34: error: ‘re’ was not declared in this scope
if (regex_match(text, result, re))
^
Library.cpp:3078:36: error: ‘regex_match’ was not declared in this scope
if (regex_match(text, result, re))
^
Library.cpp:3101:4: error: ‘regex’ was not declared in this scope
regex re(pattern);
^
Library.cpp:3101:10: error: expected ‘;’ before ‘re’
regex re(pattern);
^
Library.cpp:3104:5: error: ‘regex_constants’ is not a class or namespace
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3104:41: error: expected ‘;’ before ‘type’
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3109:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3109:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3110:7: error: ‘type’ was not declared in this scope
type = flagMap[vecFlag[0]];
^
Library.cpp:3110:21: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = flagMap[vecFlag[0]];
^
Library.cpp:3114:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3114:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3115:7: error: ‘type’ was not declared in this scope
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3115:28: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3118:5: error: ‘re’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3118:25: error: ‘type’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3120:4: error: ‘smatch’ was not declared in this scope
smatch result;
^
Library.cpp:3120:11: error: expected ‘;’ before ‘result’
smatch result;
^
Library.cpp:3123:41: error: ‘result’ was not declared in this scope
if (regex_search(iterStart, iterEnd, result, re))
^
Library.cpp:3123:49: error: ‘re’ was not declared in this scope
if (regex_search(iterStart, iterEnd, result, re))
^
Library.cpp:3123:51: error: ‘regex_search’ was not declared in this scope
if (regex_search(iterStart, iterEnd, result, re))
^
Library.cpp:3142:4: error: ‘regex’ was not declared in this scope
regex re(pattern);
^
Library.cpp:3142:10: error: expected ‘;’ before ‘re’
regex re(pattern);
^
Library.cpp:3145:5: error: ‘regex_constants’ is not a class or namespace
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3145:41: error: expected ‘;’ before ‘type’
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3150:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3150:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3151:7: error: ‘type’ was not declared in this scope
type = flagMap[vecFlag[0]];
^
Library.cpp:3151:21: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = flagMap[vecFlag[0]];
^
Library.cpp:3155:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3155:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3156:7: error: ‘type’ was not declared in this scope
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3156:28: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3159:5: error: ‘re’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3159:25: error: ‘type’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3161:4: error: ‘smatch’ was not declared in this scope
smatch result;
^
Library.cpp:3161:11: error: expected ‘;’ before ‘result’
smatch result;
^
Library.cpp:3165:49: error: ‘result’ was not declared in this scope
bool bret = regex_search(iterStart, iterEnd, result, re);
^
Library.cpp:3165:57: error: ‘re’ was not declared in this scope
bool bret = regex_search(iterStart, iterEnd, result, re);
^
Library.cpp:3165:59: error: ‘regex_search’ was not declared in this scope
bool bret = regex_search(iterStart, iterEnd, result, re);
^
Library.cpp:3189:4: error: ‘regex’ was not declared in this scope
regex re(pattern);
^
Library.cpp:3189:10: error: expected ‘;’ before ‘re’
regex re(pattern);
^
Library.cpp:3192:5: error: ‘regex_constants’ is not a class or namespace
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3192:41: error: expected ‘;’ before ‘type’
regex_constants::syntax_option_type type = regex::ECMAScript;
^
Library.cpp:3197:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3197:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[0]) != flagMap.end())
^
Library.cpp:3198:7: error: ‘type’ was not declared in this scope
type = flagMap[vecFlag[0]];
^
Library.cpp:3198:21: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = flagMap[vecFlag[0]];
^
Library.cpp:3202:18: error: request for member ‘find’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3202:46: error: request for member ‘end’ in ‘flagMap’, which is of non-class type ‘int’
if (flagMap.find(vecFlag[i]) != flagMap.end())
^
Library.cpp:3203:7: error: ‘type’ was not declared in this scope
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3203:28: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘std::basic_string’)
type = type | flagMap[vecFlag[i]];
^
Library.cpp:3206:5: error: ‘re’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3206:25: error: ‘type’ was not declared in this scope
re = regex(pattern, type);
^
Library.cpp:3208:40: error: ‘re’ was not declared in this scope
string result = regex_replace(text, re, replace);
^
Library.cpp:3208:51: error: ‘regex_replace’ was not declared in this scope
string result = regex_replace(text, re, replace);
^
Lexer.cpp: In member function ‘void CLexer::error()’:
Lexer.cpp:23:32: error: ‘printf’ was not declared in this scope
printf("Invalid character\r\n");
^
In file included from AST.h:3:0,
from Parser.h:28,
from Interpreter.h:27,
from Interpreter.cpp:4:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^
Interpreter.cpp: In member function ‘void CInterpreter::error(const string&, const CToken&)’:
Interpreter.cpp:80:156: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "%s: %s (file: %s line: %d, column: %d)\r\n", err.c_str(), token.value().c_str(), token.filename().c_str(), token.lineNo(), token.column());
^
Interpreter.cpp: In member function ‘void CInterpreter::get_index_value(CVariable&, CVariable&, CVariable&)’:
Interpreter.cpp:423:31: error: ‘CVariable::VARTYPE’ is not a class or namespace
if (var.type() == CVariable::VARTYPE::DICT || var.type() == CVariable::VARTYPE::CLASS)
^
Interpreter.cpp:423:73: error: ‘CVariable::VARTYPE’ is not a class or namespace
if (var.type() == CVariable::VARTYPE::DICT || var.type() == CVariable::VARTYPE::CLASS)
^
Interpreter.cpp: In member function ‘void CInterpreter::visit_Assign(Assign*, CVariable&)’:
Interpreter.cpp:544:31: error: ‘CVariable::VARTYPE’ is not a class or namespace
if (vartype == CVariable::VARTYPE::DICT || vartype == CVariable::VARTYPE::CLASS)
^
Interpreter.cpp:544:70: error: ‘CVariable::VARTYPE’ is not a class or namespace
if (vartype == CVariable::VARTYPE::DICT || vartype == CVariable::VARTYPE::CLASS)
^
Interpreter.cpp:583:31: error: ‘CVariable::VARTYPE’ is not a class or namespace
if (vartype == CVariable::VARTYPE::DICT || vartype == CVariable::VARTYPE::CLASS)
^
Interpreter.cpp:583:70: error: ‘CVariable::VARTYPE’ is not a class or namespace
if (vartype == CVariable::VARTYPE::DICT || vartype == CVariable::VARTYPE::CLASS)
^
Interpreter.cpp: In member function ‘void CInterpreter::visit_Builtin(BuiltinStatement*, CVariable&)’:
Interpreter.cpp:836:58: error: ‘fprintf’ was not declared in this scope
fprintf(m_pFileOut, "%s ", result.strValue().c_str());
^
Interpreter.cpp:838:45: error: ‘printf’ was not declared in this scope
printf("%s ", result.strValue().c_str());
^
In file included from AST.h:3:0,
from Parser.h:28,
from Interpreter.h:27,
from Interpreter.cpp:4:
Variable.h:26:42: error: ‘strtoll’ was not declared in this scope
#define _ATOI(val) strtoll(val, NULL, 10)
^
Interpreter.cpp:1108:21: note: in expansion of macro ‘_ATOI’
res = CVariable(_ATOI(value.c_str()));
^
Variable.h:26:42: error: ‘strtoll’ was not declared in this scope
#define _ATOI(val) strtoll(val, NULL, 10)
^
Interpreter.cpp:1116:21: note: in expansion of macro ‘_ATOI’
res = CVariable(_ATOI(os.str().c_str()));
^
Interpreter.cpp:1142:51: error: ‘atof’ was not declared in this scope
res = CVariable().setDouble(atof(value.c_str()));
^
Interpreter.cpp:1150:54: error: ‘atof’ was not declared in this scope
res = CVariable().setDouble(atof(os.str().c_str()));
^
Interpreter.cpp:1256:47: error: ‘fprintf’ was not declared in this scope
fprintf(m_pFileOut, "%s", format.c_str());
^
Interpreter.cpp:1258:34: error: ‘printf’ was not declared in this scope
printf("%s", format.c_str());
^
Interpreter.cpp:1295:22: error: ‘stdin’ was not declared in this scope
fgets(buff, 1024, stdin);
^
Interpreter.cpp:1295:27: error: ‘fgets’ was not declared in this scope
fgets(buff, 1024, stdin);
^
Interpreter.cpp: In member function ‘void CInterpreter::re_printf(const char*, ...)’:
Interpreter.cpp:1532:42: error: ‘vsnprintf’ was not declared in this scope
n = vsnprintf(buffer, 1024, format, args);
^
Interpreter.cpp:1536:35: error: ‘fprintf’ was not declared in this scope
fprintf(m_pFileOut, "%s", buffer);
^
Interpreter.cpp:1538:22: error: ‘printf’ was not declared in this scope
printf("%s", buffer);
^
Interpreter.cpp: In member function ‘void CInterpreter::visit_Member(AST*, AST*, CVariable&)’:
Interpreter.cpp:1568:31: error: ‘CVariable::VARTYPE’ is not a class or namespace
if (var.type() == CVariable::VARTYPE::STRING)
^
Interpreter.cpp:1573:36: error: ‘CVariable::VARTYPE’ is not a class or namespace
else if (var.type() == CVariable::VARTYPE::ARRAY)
^
Interpreter.cpp:1578:36: error: ‘CVariable::VARTYPE’ is not a class or namespace
else if (var.type() == CVariable::VARTYPE::DICT)
^
Interpreter.cpp:1583:36: error: ‘CVariable::VARTYPE’ is not a class or namespace
else if (var.type() == CVariable::VARTYPE::CLASS)
^
Interpreter.cpp:1724:126: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "Object [%s] not found function name [%s]\r\n", obj->token().value().c_str(), memb->token().value().c_str());
^
Interpreter.cpp: In member function ‘void CInterpreter::print_object(CVariable&)’:
Interpreter.cpp:1845:63: error: ‘fprintf’ was not declared in this scope
fprintf(m_pFileOut, ""%s" ", result.strValue().c_str());
^
Interpreter.cpp:1847:50: error: ‘printf’ was not declared in this scope
printf(""%s" ", result.strValue().c_str());
^
Interpreter.cpp:1886:62: error: ‘fprintf’ was not declared in this scope
fprintf(m_pFileOut, ""%s" ", result.strValue().c_str());
^
Interpreter.cpp:1888:49: error: ‘printf’ was not declared in this scope
printf(""%s" ", result.strValue().c_str());
^
Interpreter.cpp:1934:64: error: ‘fprintf’ was not declared in this scope
fprintf(m_pFileOut, ""%s" ", result2.strValue().c_str());
^
Interpreter.cpp:1936:51: error: ‘printf’ was not declared in this scope
printf(""%s" ", result2.strValue().c_str());
^
In file included from Variable.cpp:1:0:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^
In file included from CallStack.h:4:0,
from CallStack.cpp:1:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^
In file included from AST.h:3:0,
from Parser.h:28,
from Parser.cpp:1:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^
Parser.cpp: In member function ‘void CParser::re_printf(const char*, ...)’:
Parser.cpp:30:42: error: ‘vsnprintf’ was not declared in this scope
n = vsnprintf(buffer, 1024, format, args);
^
Parser.cpp:34:35: error: ‘fprintf’ was not declared in this scope
fprintf(m_pFileOut, "%s", buffer);
^
Parser.cpp:36:22: error: ‘printf’ was not declared in this scope
printf("%s", buffer);
^
Parser.cpp: In member function ‘void CParser::error(const string&, const CToken*)’:
Parser.cpp:43:165: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "%s: %s (file: %s line: %d, column: %d)\r\n", err.c_str(), pToken->value().c_str(), pToken->filename().c_str(), pToken->lineNo(), pToken->column());
^
Parser.cpp:45:185: error: ‘sprintf’ was not declared in this scope
sprintf_s(buff, "%s: %s (file: %s line: %d, column: %d)\r\n", err.c_str(), m_prev_token.value().c_str(), m_prev_token.filename().c_str(), m_prev_token.lineNo(), m_prev_token.column());
^
Parser.cpp: In member function ‘void CParser::parse_content(const string&, std::vector<AST*>&, std::string)’:
Parser.cpp:171:39: error: ‘STATICTYPE’ is not a class or namespace
parser.m_statics[var->value()] = STATICTYPE::VAR;
^
Parser.cpp: In member function ‘AST* CParser::class_def(bool)’:
Parser.cpp:211:27: error: ‘STATICTYPE’ is not a class or namespace
m_statics[class_name] = STATICTYPE::FUN;
^
Parser.cpp: In member function ‘AST* CParser::function(std::string, bool)’:
Parser.cpp:286:25: error: ‘STATICTYPE’ is not a class or namespace
m_statics[fun_name] = STATICTYPE::FUN;
^
Parser.cpp: In member function ‘AST* CParser::program()’:
Parser.cpp:467:32: error: ‘STATICTYPE’ is not a class or namespace
m_statics[var->value()] = STATICTYPE::VAR;
^
Parser.cpp: In member function ‘AST* CParser::factor()’:
Parser.cpp:871:36: error: ‘STATICTYPE’ is not a class or namespace
if (m_statics[token.value()] == STATICTYPE::FUN)
^
Parser.cpp: In member function ‘AST* CParser::term_square_dot()’:
Parser.cpp:930:41: error: ‘Member::MEMBERTYPE’ is not a class or namespace
Member::MEMBERTYPE memtype = Member::MEMBERTYPE::VAR;
^
Parser.cpp:932:23: error: ‘Member::MEMBERTYPE’ is not a class or namespace
memtype = Member::MEMBERTYPE::FUN;
^
In file included from AST.h:3:0,
from AST.cpp:1:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^
AST.cpp: In constructor ‘Num::Num(const CToken&, Num::NUMTYPE)’:
Variable.h:26:42: error: ‘strtoll’ was not declared in this scope
#define _ATOI(val) strtoll(val, NULL, 10)
^
AST.cpp:28:14: note: in expansion of macro ‘_ATOI’
m_nValue = _ATOI(m_token.value().c_str());
^
AST.cpp:30:42: error: ‘atof’ was not declared in this scope
m_dValue = atof(m_token.value().c_str());
^
In file included from AST.h:3:0,
from GlobalData.h:2,
from GlobalData.cpp:1:
Variable.h:63:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>>& map(){ return m_vecInfo; }
^
Variable.h:65:28: error: ‘>>’ should be ‘> >’ within a nested template argument list
vector<pair<string, string>> m_vecInfo;
^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.