Page 1 of 1

CPUMemoryTOP Failed to compile on Mac

PostPosted: Sun Aug 12, 2018 7:03 pm
by mouren
Mac OSX High Sierra, Xcode 9.4.1, TD 2018.25000

The included CPUMemoryTOP example has failed to compile with the error
"Unknown type name 'NSOpenGLContext' TOP_CPlusPlusBase.h"

Has anybody ran into this issue?

I haven't found anything on Google or the forum. Actually, when I was just searching for NSOpenGLContext, the forum told me the term is too common to search? :D Not sure how that can be, but ok.

Any help would be greatly appreciated.
Thank you!

Da.

Re: CPUMemoryTOP Failed to compile on Mac

PostPosted: Wed Aug 15, 2018 11:22 am
by malcolm
Sorry about that, it'll be fixed in the next build. if you put

Code: Select all
class NSOpenGLContext;
at the top of the TOP_CPlusPlusBase.h file with the other similar class forward declaration, it'll fix that compile issue.

Re: CPUMemoryTOP Failed to compile on Mac

PostPosted: Sun Aug 19, 2018 12:50 am
by mouren
Thank you, Malcolm!

It works now.

Da.