LINK : fatal error LNK1561: entry point must be defined
I have followed the steps in the tutorial for using Visual Basis 2008 and using the files in "orx-tutorial-msvs2008.zip" and I get this error when I try to compile it.
I believe the line of code
takes care of Declaring the entry point, but Visual Studio 2008 doesn't seem to agree and I'm currently at a loss. Any direction towards better understanding this will be greatly appreciated!
Grey's tutorial on the wiki describes how to setup vs2008 for creating a stand alone application. However the first 9 tutorials (from the tutorial package) are plugins to be used with orx's launcher and are not standalone applications.
What happens here is that the code you're using expects to end up in a plugin (.dll) and not in an application (.exe). So the .exe entry point (main) is indeed missing.
I'd advise going for a standalone application and disregard the structure of plugins if I were you.
The change in code is actually pretty straightforward (if you search on the forum I think as least two threads contain the full process). Basically you need 3 functions for a standalone: Init, Run and Exit + the traditional main.
And then you run orx with:
You can look at the tutorial #10 and after to see actual working examples.
Hope this helps!