From: Eric Rasmussen Newsgroups: comp.os.msdos.djgpp Subject: Using MASM 6.11 w/ DJGPP 2.0? Date: Wed, 16 Oct 1996 17:40:48 -0700 Organization: A poorly-installed InterNetNews site Lines: 49 Message-ID: NNTP-Posting-Host: surfer2.surf.scs.unr.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I have been working with gas, and I'm going out of my mind. :-) So I tried to use MASM 6.11 and compile my .ASM file to COFF format so I could link in the object file using gcc. However, I get GPFs and segment violations when I call any procedure in the .ASM file. Does anyone know if there's a way to make MASM procedures work with DJGPP? Here's the code I am using (both the .ASM and .cc files): test.asm -------- .386P .MODEL FLAT,C text SEGMENT DWORD PUBLIC USE32 MyTest PROC PUBLIC MyTest Ret ; Boy, what a complex routine this is... :-) MyTest ENDP text ENDS END test2.cc -------- extern "C" { void MyTest(); } int main(void) { MyTest(); return 0; } I compile using the command line: gxx test2.c test.o -o test2.exe Thanks in advance for any help! ============================================================================== + Eric Rasmussen + University of Nevada, Reno + Computer Science + rasmusse AT cs DOT unr DOT edu ==================================================================