Very novice question (not for the faint at heart)

edited October 2011 in Help request
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 "" 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!


  • edited October 2011
    Hi SilverSonic and welcome here! :)

    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:
    int main(int argc, char **argv)
      orx_Execute(argc, argv, Init, Run, Exit);
      return EXIT_SUCCESS;

    You can look at the tutorial #10 and after to see actual working examples.

    Hope this helps!
  • edited October 2011
    ooooooooh... yes this helps tons! Thank you :D
  • edited October 2011
    My pleasure! :)
Sign In or Register to comment.