想要学习编写IDA插件,用VC6.0编写,根据看雪里有人给的配置,设置完,编译,出现一堆奇怪的错误,网上搜了一下,没找到解决办法啊,特来求助,具体如下:
Compiling...
template.cpp
c:\program files\ida\sdk\include\pro.h(1709) : warning C4003: not enough actual parameters for macro 'DEFINE_LIST_ITERATOR'
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ')' before ';'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ')' before ';'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2433: '__formal' : 'friend' not permitted on data declarations
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2059: syntax error : ')'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2327: 'iterator::cur' : member from enclosing class is not a type name, static, or enumerator
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2065: 'cur' : undeclared identifier
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2065: 'x' : undeclared identifier
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2150: 'x' : bit field must have type 'int', 'signed int', or 'unsigned int'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2149: 'x' : named bit field cannot have zero width
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2059: syntax error : 'public'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2228: left of '.cur' must have class/struct/union type
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2656: 'iterator' : function not allowed as a bit field
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : warning C4183: 'iterator': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2327: 'qlist<T>::iterator' : member from enclosing class is not a type name, static, or enumerator
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ',' before '&'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2059: syntax error : '&'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2327: 'qlist<T>::iterator' : member from enclosing class is not a type name, static, or enumerator
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ',' before '&'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2059: syntax error : '&'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2327: 'qlist<T>::iterator' : member from enclosing class is not a type name, static, or enumerator
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ';' before '&'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2501: 'iterator' : missing storage-class or type specifiers
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2501: '++' : missing storage-class or type specifiers
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2327: 'qlist<T>::iterator' : member from enclosing class is not a type name, static, or enumerator
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ';' before '++'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2501: 'iterator' : missing storage-class or type specifiers
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2327: 'qlist<T>::iterator' : member from enclosing class is not a type name, static, or enumerator
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ';' before '&'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2501: 'iterator' : missing storage-class or type specifiers
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2501: '--' : missing storage-class or type specifiers
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2327: 'qlist<T>::iterator' : member from enclosing class is not a type name, static, or enumerator
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2143: syntax error : missing ';' before '--'
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
c:\program files\ida\sdk\include\pro.h(1709) : error C2501: 'iterator' : missing storage-class or type specifiers
c:\program files\ida\sdk\include\pro.h(1845) : see reference to class template instantiation 'qlist<T>' being compiled
执行 cl.exe 时出错.