From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8dd1b8da682c35ae X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!nntp.abs.net!news.abs.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: linking problem in DPAPI References: From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:gi3Zjbwf4RsGwWHtTC9cCzxlcWY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 28 Dec 2005 07:28:27 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1135772908 66.159.65.1 (Wed, 28 Dec 2005 07:28:28 EST) NNTP-Posting-Date: Wed, 28 Dec 2005 07:28:28 EST Xref: g2news1.google.com comp.lang.ada:2380 Date: 2005-12-28T07:28:27-05:00 List-Id: "bubble" 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