Ryan-rsm-McKenzie / CommonLibSSE

A reverse engineered library for hacking Skyrim Special Edition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example plugin compile error

thallada opened this issue · comments

Hi, thank you for this library and your very helpful tutorial.

I'm new to C++, and I'm having trouble setting up the example plugin. I added span-lite to the includes directory of CommonLibSSE and managed to successfully compile that lib.

However I can't get the MyFirstPlugin CommonLibSSE example plugin to compile:

ForceIncludes

I'm getting the error Cannot open include file: 'ForceInclude.h': No such file or directory. I'm very confused because I don't see this ForceIncludes.h file mentioned anywhere. It's pointing to the #include "version.h" in main.cpp.

Don't know if this is helpful but these are the properties of the project:

properties

Edit: I got rid of that error by removing ForceInclude.h from the "Forced Include File" option in Configuration Properties > C/C++ > Advanced but I still have 3022 compiler errors so I clearly have something set up incorrectly.

It's been a long time since I've written these tutorials and a lot of things have changed since then. I've gone ahead and updated the "Getting Started" tutorial and example project to reflect how I develop plugins these days. It should build now.

@Ryan-rsm-McKenzie awesome, thanks. Works perfectly for me now!