Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-03

Re: stdcall vs. cdecl: another "using a FPC-generated .dll with Microsoft Visual C++" question

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Seth Grover
Show quoted text 5 lines
Not exactly on topic, but I'm curious why you want to link statically like this and not dynamically. AFAIK, VS can call LoadLibrary and GetProcAddress just fine. Jeff.

You're right, it can. The product the company I work for produces is a shared library, and I'm just looking into and making sure that our .dll is usable in as many was by as many platforms as possible. If a customer wants to link statically, I'd like to be able to have that option.

FWIW, I've just gone through and updated our .pas/.h headers to interface with our .so/.dll to use cdecl in both UNIX and Windows and it seems to work fine.

-SG

This email is fiction. Any resemblance to actual events or persons living or dead is purely coincidental. Seth Grover sethdgrover[at]gmail[dot]com