delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/22/19:48:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 22 May 2001 19:06:39 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Linking with MAPI problems
Message-ID: <20010522190639.B25000@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
References: <608FFE690078D3118A940000F87B142301CDC6E2 AT ASZMSG002 DOT gak DOT nl> <20010521212023 DOT 30056 DOT qmail AT web14507 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <20010521212023.30056.qmail@web14507.mail.yahoo.com>; from danny_r_smith_2001@yahoo.co.nz on Tue, May 22, 2001 at 07:20:23AM +1000

On Tue, May 22, 2001 at 07:20:23AM +1000, Danny Smith wrote:
>--- "Peschier, J. (r&d)" <Jeroen DOT peschier AT soz DOT pinkroccade DOT nl> wrote: > 
>> Hi!
>> 
>> I am having problem linking with the mapi library:
>> 
>> gcc -c MailTest.c
>> gcc -o test.exe MailTest.o -lmapi32
>> MailTest.o(.text+0x3f):MailTest.c: undefined reference to
>> `MAPISendMail AT 20'
>> collect2: ld returned 1 exit status
>> make: *** [test.exe] Error 1
>> 
>> I've checked that the mapi.h headerfile provided by Cygwin provides a
>> prototype for MAPISendMail. According to the FAQ linking this way to
>> the
>> mapi library should work. 
>
>For some reason, that function name is not in the import lib for
>mapi32.dll.    There may be a good reason for that or it may be an
>oversight.  In the event, that is why you got the undefined reference.

I can't see any reason for this to be missing.  I've added it to
mapi32.def.

(Hopefully Earnie will agree with this decision)

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019