12-19-2016, 08:14 PM
(This post was last modified: 12-20-2016, 05:37 PM by Rick Johnson.)
Thanks, Garrett, it works beautifully!
Well, at least with the Xcode versions I start with--I'll know soon about Visual Studio. I made a small group of functions in their own namespace, which I include in tool projects as needed. It's baffling, though, that it works great in every build from CS6 through CC 2015.3. With CC 2017 I keep getting errors in hdicoreFiles.h for unknown type name 'mode_t' even though I use the same hdicoreFiles methods in my preferences and registration. I tried using the helper file with the Tool and Annotator samples (works in AI16-20), then adding all of the includes that the others had, with the same result. I'll keep experimenting, though. There's got to be a way...
To see what I'm referring to, it's easy to reproduce. Open the untouched AnnoSample from CORE 0.6.3 in Xcode. In "annoPlugin.h" add "#include "hdicoreFiles.h" and build for AI 21. You'll get two errors in "hdicoreFiles.h" for the two occurrences of the type mode_t. Build for any earlier release and it's fine, or add it to the .cpp file and it's fine (I've only referenced it from my .cpp files). As Spock would say, "Fascinating."
Well, at least with the Xcode versions I start with--I'll know soon about Visual Studio. I made a small group of functions in their own namespace, which I include in tool projects as needed. It's baffling, though, that it works great in every build from CS6 through CC 2015.3. With CC 2017 I keep getting errors in hdicoreFiles.h for unknown type name 'mode_t' even though I use the same hdicoreFiles methods in my preferences and registration. I tried using the helper file with the Tool and Annotator samples (works in AI16-20), then adding all of the includes that the others had, with the same result. I'll keep experimenting, though. There's got to be a way...
To see what I'm referring to, it's easy to reproduce. Open the untouched AnnoSample from CORE 0.6.3 in Xcode. In "annoPlugin.h" add "#include "hdicoreFiles.h" and build for AI 21. You'll get two errors in "hdicoreFiles.h" for the two occurrences of the type mode_t. Build for any earlier release and it's fine, or add it to the .cpp file and it's fine (I've only referenced it from my .cpp files). As Spock would say, "Fascinating."