Hi Gents. My project has been rocketing along nicely for a few weeks now and I have tried to move as much non-orx related c++ variables and functions into code & header files.
I would now like to move things like orxOBJECT declarations into a header (functions too) but I receive errors. I noticed I also got errors for things like STL strings and had to use std::string in the header because including <string> isn't appropriate in a header.
Of course my #include
"orxPluginAPI.h" is in my main .cpp file and my header is included from here so I figure I need to do something like the following:
pstPlayer = orxObject_CreateFromConfig("Player");
//extern orxOBJECT *pstPlayer; ???
But I get an error:
syntax error : missing ';' before '*'
This is all due to my limited but growing knowledge of c++. I'm sure the answer is quite basic to seasoned programmers.