Re: linking problem in DPAPI



"bubble" <bubble@xxxxxxxxxxxx> writes:

> dear all:
> I got a problem again :)
>
> I am write a little security binding for my application.
> and I got a error message.
> ....app.o(.text+0x3914):app.adb: undefined reference to
> `CryptProtectData@28'
>
> what's the problem?
> give me a hint. thanks
> my compiler is [gnat gpl 2005] and my OS is windows xp.

I have GNAT 5.03a, Windows XP.

This appears to be a library version problem. 'CryptProtectData'
doesn't appear to be in lib/gcc/pentium-mingw32msv/3.4.4/libcrypt32.a,
nor in any other library file in that directory.

However, 'CryptProtectData' is in Windows/system32/crypt32.dll.

So I suggest you use one of the dll tools to recreate libcrypt32.a
from Windows/system32/crypt32.dll, and see if that works. If it does,
send a bug report to AdaCore.

--
-- Stephe
.



Relevant Pages

  • Re: linking problem in DPAPI
    ... I must say those problems will effect someone learning ada and ... > nor in any other library file in that directory. ... > However, 'CryptProtectData' is in Windows/system32/crypt32.dll. ...
    (comp.lang.ada)
  • =?ISO-8859-1?Q?Re=3A_AIDE_by_St=E9phane_Rivi=E8re?=
    ... "This version of the GNAT GPL Edition is suitable for PC/x86 machines ... Windows XP and Windows Vista. ... This package contains the GPL Edition of GNAT, ...
    (comp.lang.ada)
  • Re: LOG OFF
    ... an application on the system that is invoking it to run a library file. ... manually shutting down running applications and processes (hit ... Rick Rogers aka "Nutcase" MS-MVP - Windows ... Associate Expert - WinXP - Expert Zone ...
    (microsoft.public.windowsxp.general)
  • Re: run a dll as an app
    ... library file. ... Rick Rogers aka "Nutcase" MS-MVP - Windows ... Associate Expert - WinXP - Expert Zone ... Error signature is App Name rundll32.exe. ...
    (microsoft.public.windowsxp.general)
  • Re: ? about Fax Viewer
    ... It's not a program per se, it's embedded in a library file. ... > Where is the Windows Pictures and Fax Viewer located? ... > newsreader but it doesn't have a picture viewer associated with it. ...
    (microsoft.public.windowsxp.general)