Results 1 to 8 of 8

Thread: ODE under FreePaascal on Win32

  1. #1

    ODE under FreePaascal on Win32

    I've been trying to get ODE working under FreePascal using the units supplied with JEDI-SDL. The applicaiton compiles OK but I get the following error message when trying to run the app.

    "The procedureentry point dWorldQuickStop could not be located in the dynamic link library ode.dll"

    The same code compiled using Delphi runs without any problems.

    Any one have any ideas?
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  2. #2
    Anonymous
    Guest

    Re: ODE under FreePaascal on Win32

    [quote="technomage"]I've been trying to get ODE working under FreePascal using the units supplied with JEDI-SDL. The applicaiton compiles OK but I get the following error message when trying to run the app.

    "The procedureentry point dWorldQuickStop could not be located in the dynamic ]

    Is it a C procedure? If it is C++ (without extern) it might be mangled. FPC can't interface directly to C++, wrap it in C first.

  3. #3

    ODE under FreePaascal on Win32

    FPC is very strict with most things and external definitions are no different, while Delphi/Kylix will allow you to get away with the definition existing, while the DLL/SO does not contain the implementation. In this case, the definition dWorldQuickStop exists in the .pas file but does not exist in the DLL. So you have 2 options....
    1. Comment out the definition of dWorldQuickStop and everything should be sweet.

    2. Create a new DLL, or if you get the error on Linux, a new SO that include the missing dWorldQuickStop

    I hope this helps.

    PS I have just sent an email to the DelphiODE dudes asking them if is should be there all not. In either case a definate solution should be fortchcoming in the next few days.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  4. #4

    ODE under FreePaascal on Win32

    I've had the same error..
    You could try to download the latest ode.dll from the site, maybe the one included is old (the linux one is definetly old)

    Bye!
    If you save your data in a proprietary format, the owner of the format owns your data.
    <br /><A href="http://msx80.blogspot.com">http://msx80.blogspot.com</A>

  5. #5

    ODE under FreePaascal on Win32

    To solve this kind of errors you have to compile with smartlinking ON :!:
    There are only 10 types of people in this world; those who understand binary and those who don't.

  6. #6

    ODE under FreePaascal on Win32

    Is that for Delphi or FPC or both?
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  7. #7

    ODE under FreePaascal on Win32

    Delphi uses smartlinking by default, FPC smartilinking works only for functions but solves the strict library checking, there might be some problems with the headers or the library, you only get these errors when some function is really missing or has a different name.
    The future must be... Fast and OpenSource so...
    <br />Think Open and Lightning Fast!

  8. #8

    ODE under FreePaascal on Win32

    Hi Dean,
    I just compiled my TruckOff demo using FPC and did not get any error messages. Having said that, I think I may have found your problem.

    In your ODEImport.pas file do you have a function declared "dWorldQuickStop". If so this should actually be "dWorldQuickStep". If you change it to dWorldQuickStep it should compile and run fine with FreePascal.
    Maybe a stray find and replace or typo crept into your version, because the CVS version correctly has the dWorldQuickStep declaration.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •