Thread: [Solved] amtl-autoptr include error
View Single Post
fakuivan
Senior Member
Join Date: Nov 2015
Old 01-11-2017 , 23:00   Re: amtl-autoptr include error
Reply With Quote #3

Here's the solution, from #sourcemod@GameSurge. Thanks to asherkin

Code:
[16:04:04] <asherkin> In file included from /home/code/projects/sourcemod/libs/amtl/amtl/am-autoptr.h
[16:04:12] <asherkin> fakuivan: that path does not look correct
[16:04:24] <asherkin> your amtl should be coming from inside the sourcemod checkout
[16:04:41] <asherkin> since a SM version is pinned against a specific AMTL commit
[16:09:05] <fakuivan> yep, but 1.8 has no am-autoptr.h
[16:09:49] <fakuivan> AutoPtr used to be on am-utility.h since https://github.com/alliedmodders/sourcemod/commit/3cccfc15da4eda796d79b3b50cadd081ba308bc4
[16:10:09] <fakuivan> is now on am-autoptr.h*
[16:27:06] <fakuivan> #ifdef LATEST_AMTL
[16:27:06] <fakuivan> #include "am-utility.h"
[16:27:06] <fakuivan> #else
[16:27:06] <fakuivan> #include "amtl/am-autoptr.h"
[16:27:06] <fakuivan> #endif
[16:27:48] <fakuivan> asherkin, that could be a solution 🤔
[16:29:38] <asherkin> you should just pick 1.8 as the target minimum and build against that
[16:29:45] <asherkin> all my shit is built against 1.6 \o/
fakuivan is offline