Results 1 to 7 of 7

Thread: Free compiler skeleton

  1. #1
    Join Date
    Feb 2001
    Location
    Monza, Italy
    Posts
    34

    Default

    In order to pass to the C++ Borland 5.5 free compiler, i've been trying to convert the skeleton and the uir plugins to CBuilder without success.
    I've tried it manually, creating a new dll project (i tried VCL and NO VCL) and adding the files .cpp, .h, .def. Girder gave me "Invalid DLL in Dir!..". I successfully checked the created dll with the impdef utility that reports the exported functions.
    Then i tried the import utility that comes with CB. Same result, "Invalid DLL in Dir!..".
    Now:
    - any idea of what i'm missing?
    - anybody already did it?
    - Could be Girder a little more explicit, like "Can't find exported function xyz!" ?
    - Delphi people: Did you get the same problem?

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    did you set the compiler to generate
    __stdcalls ?

    -Ron

  3. #3
    Join Date
    Feb 2001
    Location
    Monza, Italy
    Posts
    34

    Default

    I tried, but i didn't found where.
    It's a question of compiler or linker?

  4. #4
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    Try this, it makes the function __stdcalls

    extern "C" int WINAPI init_dll( TFunctions *gf )
    instead of

    __declspec(dllexport) int init_dll( TFunctions *gf )

    replace all the functions like this,
    also take a look if there should be
    a .def file like with the Visual C++
    compiler.

    -Ron

  5. #5
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    Even better try this :

    extern "C" int WINAPI _export init_dll( TFunctions *gf )

  6. #6
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,541

    Default

    I have put an updated Skeleton plugin
    on the developer page it compiles with
    the free borland compiler and with
    MS Visual C++

    -Ron

  7. #7
    Join Date
    Feb 2001
    Location
    Monza, Italy
    Posts
    34

    Default

    Yes, yes, yes! Whoooooo!
    It compiles!
    I had to do some minor changes, but it works. Thanx a lot to you guys!

Posting Permissions

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