Point is not a template


#1

Hi everyone!

I’m trying to compile an existing Juce-based project in Visual Studio 2010, and having troubles with the Point template. It’s used as

and I get a “Point is not a template” compile error. It gets fixed by including the Point header in the file, but then all of the member functions become undefined.

I’m new with Juce and not really experienced with programming in general. Any help please?


#2

be sure you’re including the juce library header. you dont want to be including any of the juce headers separately.

#include “…/JuceLibraryCode/JuceHeader.h”

hope this helps.


#3

It did!
Thank you very much. Feel a bit stupid at the moment. I was confused because it didn’t say “undeclared identifier” as it does when includes are missing