Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Jim Balson Subject: GNU Assembler and Link Errors Date: Fri, 05 Sep 2003 19:59:19 -0400 Lines: 44 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.2.1) Gecko/20030711 X-Accept-Language: en-us, en Hi, I am working on a project that requires me to use the Microsoft Compielr and Linker to build both DLL's and binaries. However, I do have an assembly language file that needs to get built as well. Because this software already runs on Solaris (SPARC and X86) and Linux, this assembly language file gets assembled using GNU's assembler on Linux/X86. So when the port to Windows stats, I think why not use GNU's assembler on the Linux Assembler file and be done with it. Well, it not working out like I thought. The process is this: 1) Using GNU's assembler, create an object file. 2) Using Microsofts COmpiler, compile all other C sources files. 3) Use Microsofts linker to create a DLL of the object files produced from (1) and (2). Well, I can't seem to link the DLL because there are link errors on the functions that reside in the object file created by GNU's assembler. Is there anything one has to do above and beyond in the assembler file itself when porting form Linux to Windows for the sysbols to recognized using Microsofts linker? The functions are already declared global using the ".globl [func-name]" directive. Right now I'm thinking my only alternative is to rewrite the file using NASM, or MASM, or some other assembler. Any help is apprecieated. Thanks, Jim -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/