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!news4.google.com!news.glorb.com!Spring.edu.tw!news.nctu.edu.tw!feeder.seed.net.tw!netnews!not-for-mail From: "bubble" Newsgroups: comp.lang.ada Subject: Re: linking problem in DPAPI Date: Thu, 29 Dec 2005 12:19:55 +0800 Organization: HiNetNews Message-ID: References: NNTP-Posting-Host: 211-21-128-195.hinet-ip.hinet.net X-Trace: netnews.hinet.net 1135829999 13678 211.21.128.195 (29 Dec 2005 04:19:59 GMT) X-Complaints-To: usenet@HiNetnews.hinet.net NNTP-Posting-Date: Thu, 29 Dec 2005 04:19:59 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Xref: g2news1.google.com comp.lang.ada:2389 Date: 2005-12-29T12:19:55+08:00 List-Id: hello,Stephen I find a tools , "dll2s" ,in http://home.lanck.net/mf/win_pe.shtml#D2 generator a crypt32.a and replace the libcrypt32.a in lib/gcc/pentium-mingw32msv/3.4.5.... and I stilll get the same error message. I am not sure I am do it correctly. could you possible do the test in your way? "Stephen Leake" ???????:u3bkdz9qs.fsf@acm.org... > "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