Il2CppInspector icon indicating copy to clipboard operation
Il2CppInspector copied to clipboard

C++ Scaffold Project invalid codegen

Open blackxored opened this issue 3 years ago • 0 comments

Apologies if this is a dumb question as I'm fairly new to this tool. When generating a C++ scaffold/DLL injection project, I'm getting a bunch of compile errors. I'm using VS2019 community and Windows 10 SDK as recommended.

For instance, il2cpp-types.h:

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2059	syntax error: ';'	IL2CppDLL	D:\Research\inj\appdata\il2cpp-types.h	2307047	

with the line in question and the above are along the lines of:

struct Some {
//...
struct SomeStructType *_member1;
struct AnotherStructType *_member2;
}

I can only assume with my limited knowledge is that it fails to find the symbol, and hence is erroring (there's no missing semicolon), however I can see the struct in the file, and I can also see DO_TYPEDEF(<address>, SomeStructType); Might this be related to the macro? I've no idea.

EDIT: if I hover over DO_TYPEDEF I see SomeStructTypeClass identifier is undefined, not sure if related.

blackxored avatar Nov 17 '21 11:11 blackxored