Hello.
Began to study the ORX. In a lesson ->
http://orx-project.org/wiki/en/orx/tutorials/community/grey/tutorial2
There was a problem. Crash error ->
Error 1 error C2600: 'StandAlone:: StandAlone': cannot define a compiler-generated special member function (must be declared in the class first) d: job orx source standalone.cpp 17
In what may be the problem?
More ... if we remove from StandAlone.cpp
StandAlone:: StandAlone ()
{
}
, then the dialog box is opened
Microsoft Visual Studio
project_d.exe has triggered a breakpoint
button break, click Continue button and Ignore (inactive).
Thanks in advance!
Comments
I haven't tried Grey's tutorial myself so I might not be the best person to answer this.
It might sound trivial, but the compiler error suggest you have a member function in your implementation/.cpp that isn't first declared in the class, have you checked for all your member functions?
if you still can't find the issue, can you post your .cpp/.h files here or somewhere accessible for us to look at?
Code is completely copied from http://orx-project.org/wiki/en/orx/tutorials/community/grey/tutorial2
There's also something that should happen.
What did I do wrong? Not so set up a project? Several times reworked.
http://depositfiles.com/files/507y7sada
*edit*
Okay, found the issue
When coding, it is good practice (and why I've set the tutorials up as I have) to separate the class definition (basically everything in the header [.h] file) and the implementation (everything in the .cpp file).
The implementation of various functions need to know -what- they are implementing however, so you tell them by using the class name, followed by two colons. In our case this is "StandAlone::"
Inside the definition, the code already 'knows' what class it is trying to find, so adding that extra piece of information confuses the compiler.
The fix for your issue is simply to change one line in StandAlone.H
from: to:
Several times to open and instantly close the window.
Then there
If you click "Continue" it appears:
orxViewport_CreateFromConfig ("Viewport");
in StandAlone.cpp
For debugging, you'll need to set up the working directory.
Also, you can use relative paths (..in) -will- find your correct directory. Basically think of it as directions from the project file... so ".." means "up one level" etc (if I'm explaining things you know, feel free to ignore this
I do not understand what was going on. :dry:
try this though: http://grey.orx-project.org/project.zip
(*edit* worst case... this should work: http://grey.orx-project.org/ORX.zip -- it's a complete 'working' tutorial 2 file)
*edit* more typo fixing
Replaced project.sln, everything remained as before.
You do not have compiled the project from the tutorial:
http://orx-project.org/wiki/en/orx/tutorials/community/grey/tutorial2
This will help me.
*edit* and no need to be sorry mate
*edit* fixed typo in link
erm, haha
http://grey.orx-project.org/ORX.zip