Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!hplabs!hp-sdd!megatek!spot!hollen From: hollen@spot.megatek.uucp (Dion Hollenbeck) Newsgroups: comp.sys.ibm.pc Subject: Re: External variables using Microsoft C and MASM Message-ID: <393@megatek.UUCP> Date: 1 Nov 88 20:10:23 GMT References: <142@ultb.UUCP> Sender: news@megatek.UUCP Lines: 16 From article <142@ultb.UUCP>, by pad3563@ultb.UUCP (P.A. Deupree ): > I've recently been trying to figure out how to interface between Microsoft C > and Microsoft Macro Assembler and I'm having a few problems. [.....stuff deleted....] > It won't accept my externally defined variables. I defined them all as EXTRN > in the assembly program and gave them _ in front. However, I'm still getting > tons of linker messages saying they are undefined and I can't figure it. > This seems to be your problem, do not use the '_' in front. While it is true that the complier prepends a '_' in front of all functions, it does not do this for variables. This should solve your problem. Dion Hollenbeck (619) 455-5590 x2814 Megatek Corporation, 9645 Scranton Road, San Diego, CA 92121 seismo!s3sun!megatek!hollen ames!scubed/