I want to develop an IDA plugin. I have installed IDA 4.9 Free and IDA 4.9 SDK which I have patched appropriately after Woodmann. I have setup a build environment after Micallef. However, I have obviously messed up somewhere, because when I try to compile the template example "hello world" plugin, it fails
1>------ Rebuild All started: Project: whatever_you_like, Configuration: Release Win32 ------
1>Deleting intermediate and output files for project 'whatever_you_like', configuration 'Release|Win32'
1>Compiling...
1>appropriately.cpp
1>C:\Program Files\IDA Free\sdk\include\lines.hpp(697) : error C2059: syntax error : '='
1>C:\Program Files\IDA Free\sdk\include\lines.hpp(697) : error C2059: syntax error : ')'
1>Build log was saved at "file://d:\Visual Studio 2008\Projects\whatever_you_like\Release\BuildLog.htm"
1>whatever_you_like - 2 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
The line in lines.hpp that is generating the errors is
APPEND(ptr, end, closing_comment());
and the APPEND macro is defined as follows
// append a string to the buffer checking the buffer size
#define APPEND(buf, end, name) \
do \
{ \
const char *__in = name; \
while ( true ) \
{ \
if ( buf >= end ) \
{ \
buf = end-1; \
buf[0] = '\0'; \
break; \
} \
if (( *buf = *__in++) == '\0' ) \
break; \
buf++; \
} \
} while ( 0 )
which is basically how it's defined in the more recent 5.2 SDK.
I would be very grateful for some advice from anyone with more experience than me of any of IDA 4.9 Free, IDA 4.9 SDK, VCE++2008 or even C++. Thanks :)







