delorie.com/archives/browse.cgi | search |
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 |
From: | "Giuliano Garuti" <giuliano DOT garuti AT sunriseprotel DOT com> |
To: | "Cygwin CD v1. 0" <cygwin AT sources DOT redhat DOT com> |
Subject: | Help - Building DLLs |
Date: | Wed, 2 Aug 2000 09:36:46 +0200 |
Message-ID: | <NEBBKGMMIMIICFDAAJFFKEBHCAAA.giuliano.garuti@sunriseprotel.com> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
X-SLUIDL: | 0B0C7143-66F711D4-83540090-270A949D |
------=_NextPart_000_0000_01BFFC65.2D0286E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Recently I purchased the Cygwin v1.0 software to compile Linux C source files in the Windows NT environment. But something went wrong. So I decided to face the problem by steps. First I created 2 simple source C files named "myprog.c" and "mydll.c" (these files are attached to the e-mail). Then I executed the subsequent commands in the shell: gcc -c myprog.c gcc -c mydll.c ld --dll -o mydll.dll mydll.o -e _mydll_init AT 12 -d -cref -shared --base-file mydll.base dlltool --base-file=mydll.base --output-def mydll.def --output-exp mydll.exp --dllname mydll.dll ld --dll -o mydll.dll mydll.o -e _mydll_init AT 12 -d -cref -shared --base-file mydll.base mydll.exp dlltool --base-file=mydll.base --def mydll.def --output-exp mydll.exp --dllname mydll.dll ld --dll -o mydll.dll mydll.o -e _mydll_init AT 12 -d -cref -shared mydll.exp dlltool --def mydll.def --dllname mydll.dll --output-lib mydll.a gcc -o myprog myprog.o mydll.a At the end of this process this error message is displayed: myprog.o(.text+0x26):myprog.c: undefined reference to 'do_nothing' collect2: ld returned 1 exit status What do you suggest I do to resolve the problem? The software is very important as it will and can aid me in developing my research. BUT it does not work and I need to know what I am doing wrong or why the software is not working. Please respond to my email, my questions. Please answer directly using my email. Thanks for your attention. Best Regards. Giuliano Garuti Software Developer Sunrise Telecom Protel Division Srl Via Jacopo Peri, 41/C 41100 Modena ITALY Phone: +39059403711 Fax: +39059403715 Video Conference: +39059403700 email: giuliano DOT garuti AT sunriseprotel DOT com Web: www.sunriseprotel.com ------=_NextPart_000_0000_01BFFC65.2D0286E0 Content-Type: application/octet-stream; name="myprog.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="myprog.c" #include <stdio.h> extern void do_nothing(void); main() { printf("Hello, World!\n"); do_nothing(); sleep(1); } ------=_NextPart_000_0000_01BFFC65.2D0286E0 Content-Type: application/octet-stream; name="mydll.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mydll.c" void do_nothing(void) { int i=0; i++; } ------=_NextPart_000_0000_01BFFC65.2D0286E0 Content-Type: application/x-zip-compressed; name="DLL test.zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="DLL test.zip" UEsDBBQAAAAIAHSC+ijqBiMWtAAAALUBAAAHAAAAbXlkbGwub/NhZGYAgTVAzANmsTLqlaRWlDAg gAIQ9zCgAqBYgl5KYkkiA37gwMBwQC+puJiAMoYGoLrQzqfNbwSOu/4BCfx3/dP5JvYwshq9tMyc VCj7338GhnTG3MqUnBy9ZDSzWKA0IxCzgVnCGCKqcBEFBiZGBgyAHAYgaWZGBUw1SP5nAqvBUMKA 7HdmHGoMgTg9OdkoPjk/twDoxRQ9hvj4+PS8UrhAfDJDfEp+fF5+SUZmXjoDAFBLAwQKAAAAAACJ gv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AAACADKSvooK4kZcmsAAAB+AAAACAAA AAAAAAABACAAtoESBwAAbXlwcm9nLmNQSwECFAAUAAAACAB2gvoongNh2RMBAABPAgAACAAAAAAA AAAAACAAtoGjBwAAbXlwcm9nLm9QSwUGAAAAAAkACQDoAQAA3AgAAAAA ------=_NextPart_000_0000_01BFFC65.2D0286E0 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com ------=_NextPart_000_0000_01BFFC65.2D0286E0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |