Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <01C03912.9B429340.kern@sibbald.com> From: Kern Sibbald Reply-To: "kern AT sibbald DOT com" To: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: Question Date: Wed, 18 Oct 2000 14:49:22 +0200 X-Mailer: Microsoft Internet E-mail/MAPI - 8.0.0.4211 Encoding: 57 TEXT, 229 UUENCODE X-MS-Attachment: cygcheck.txt 0 00-00-1980 00:00 Hello, I'm using cygwin 1.1.2 to develop Windows programs such as the port of apcupsd (APC UPS monitor) to Windows, and first off, I'd like to congratulate you on version 1.1.2. It is a major improvement since B20, and I thank you for all your hard work. I especially like the more traditional directory structure of the new version. I have several questions: 1. I'm trying to write a small program that will send an email message (somewhat like /bin/mail). However, I get the following error message when linking my program: gcc -g -O2 -mwindows -mno-cygwin -o email email.o -luser32 -lgdi32 -lmapi32 email.o: In function `WinMain': /home/kern/apcupsd/k/win32/email.c:61: undefined reference to `MAPISendMail AT 20' collect2: ld returned 1 exit status The program is rather simple and makes only one call to MAPISendMail. Can you tell me what I am doing wrong? I've tried compiling/linking with and without the -mno-cygwin option and get the same results. 2. Is there a way to know what Win API's (entry points) are resolved by each of the libxxx.a files in /usr/lib? 3. When I do a cygcheck -s -v -r, I get a lot of registry entries that seem to be related to the earlier versions (B20 and possibly b15?). Is there any way to clean this up? I attach the output to this email for your reference. By the way, there seems to be a memory leak or resource leak somewhere in the cygwin system because if I do several ./configure commands under bash, I am forced to reboot my Win98 system because it becomes painfully slow. Thank you for your help. Best regards, Kern Sibbald ch. Côtes-de-Montmoiret 9 CH-1012 Lausanne Switzerland Tel: +41 (21) 728-3411 Fax: +41 (21) 728-3459 Web: www.sibbald.com Email: kern AT sibbald DOT com begin 600 cygcheck.txt M#0I#>6=N=7,@5VEN DOT 34O3E0 AT 0V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