RE: [fpc-devel] DLL WIN64: Entry point not found
I have downloaded the latest snapshot. The error is thill there. With the test dll which I have send yesterday it's work fine now, but the finall DLL wich contains over 20 exported function I have an error. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yury Sidorov Sent: jeudi 19 juillet 2007 09:39 To: FPC-Pascal users discussions; FPC developers' list Subject: Re: [fpc-devel] DLL WIN64: Entry point not found From: Luc Vigato, Sita Software [EMAIL PROTECTED] Hello, I have compiled a DLL under Win64. It's a UDF-library for Firbird 2.1. Under Linux 64bit all things are working, only in WIN64 not. The problem is that Firebird says that he cannot find the Entry Point of each of my functions. It's not a Firebird problem, i have made a test application who calls the function from the DLL and i have the same error entry point not found. Calling convention is: cdecl Can someone help me please ? These is my command line to compile the library. fpc -S2 -Sh -dFREE_IT -Fu../Units SitaUdfLib.dpr Output of fpc - Free Pascal Compiler version 2.1.5 [2007/05/31] for x86_64 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Win64 for x64 Compiling SitaUdfLib.dpr Compiling UnitFonctionUdfString.pas Linking SitaUdfLib.dll 977 lines compiled, 0.5 sec, 635888 bytes code, 312064 bytes data 1 note(s) issued You need to upgrade to the latest svn version (or download snapshot) of FPC 2.1.5. DLL bugs were fixed after 2007/05/31. Yury Sidorov. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] DLL WIN64: Entry point not found
From: Mark - WBIsoft.COM [EMAIL PROTECTED] I had the same behaviour with a WIN64 DLL being loaded by WINLOGON.EXE, it fails to work - GetProcAddress calls fail, however, the same DLL loaded by an FPC app worked fine !!! I'm trying to build a simple demo DLL but with Gina replacement it's not that simple !!! I think there is some issue with the DLL image generated by FPC, just not sure what it is yet !? You need to upgrade to the latest svn version (or download snapshot) of FPC 2.1.5. DLL bugs were fixed after 2007/05/31. Yury Sidorov. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] DLL WIN64: Entry point not found
I am running that version ! I will try to construct a simple DLL to be tested. Mark - Original Message - From: Yury Sidorov [EMAIL PROTECTED] To: FPC developers' list fpc-devel@lists.freepascal.org Sent: Thursday, July 19, 2007 1:51 PM Subject: Re: [fpc-devel] DLL WIN64: Entry point not found From: Mark - WBIsoft.COM [EMAIL PROTECTED] I had the same behaviour with a WIN64 DLL being loaded by WINLOGON.EXE, it fails to work - GetProcAddress calls fail, however, the same DLL loaded by an FPC app worked fine !!! I'm trying to build a simple demo DLL but with Gina replacement it's not that simple !!! I think there is some issue with the DLL image generated by FPC, just not sure what it is yet !? You need to upgrade to the latest svn version (or download snapshot) of FPC 2.1.5. DLL bugs were fixed after 2007/05/31. Yury Sidorov. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.9/907 - Release Date: 18/07/2007 15:30 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] DLL WIN64: Entry point not found
The problem can be caused by relocation. Try to force a dll to relocate in all cases by using -WB0 command line switch. Then create sample host application using fpc and try to reproduce the problem. Yury. - Original Message - From: Mark - WBIsoft.COM [EMAIL PROTECTED] To: FPC developers' list fpc-devel@lists.freepascal.org Sent: Thursday, July 19, 2007 4:58 PM Subject: Re: [fpc-devel] DLL WIN64: Entry point not found I am, the only problem is the sample needs to be a complete gina - as it's the loading by WINLOGON.EXE that causes it to break !! - Original Message - From: Yury Sidorov [EMAIL PROTECTED] To: FPC developers' list fpc-devel@lists.freepascal.org Sent: Thursday, July 19, 2007 2:46 PM Subject: Re: [fpc-devel] DLL WIN64: Entry point not found From: Luc Vigato, Sita Software [EMAIL PROTECTED] I have downloaded the latest snapshot. The error is thill there. With the test dll which I have send yesterday it's work fine now, but the finall DLL wich contains over 20 exported function I have an error. Try to create sample dll which reproduces the problem and submit bug report. Yury. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.9/907 - Release Date: 18/07/2007 15:30 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel