This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking with MAPI problems


On Tue, May 22, 2001 at 07:20:23AM +1000, Danny Smith wrote:
>--- "Peschier, J. (r&d)" <Jeroen.peschier@soz.pinkroccade.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@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]