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!newsfeed.media.kyoto-u.ac.jp!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 14:23:03 +0800 Organization: HiNetNews Message-ID: References: NNTP-Posting-Host: 211-21-128-195.hinet-ip.hinet.net X-Trace: netnews.hinet.net 1135837386 19920 211.21.128.195 (29 Dec 2005 06:23:06 GMT) X-Complaints-To: usenet@HiNetnews.hinet.net NNTP-Posting-Date: Thu, 29 Dec 2005 06:23:06 +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:2391 Date: 2005-12-29T14:23:03+08:00 List-Id: dear all: if the test fail. maybe I should choose Explicit linking by loadLibrary,GetProcAddress function in Package body XXX begin -----start loadLibrary and GetProcAddress... end XXX; but It's not so friendly... off the topic... in MS-windows environment,sometime gcc(not ada) make me confused. why ld.exe can not link .lib format directly? I must say those problems will effect someone learning ada and misunderstand it. "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