Mail Archives: djgpp/1996/10/15/11:21:17
From: | "Eric Rasmussen" <rasmusse AT cs DOT unr DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Using MASM 6.11 with DGPP v2.0?
|
Date: | 15 Oct 1996 05:16:16 GMT
|
Organization: | UCCSN System Computing Services
|
Lines: | 50
|
Message-ID: | <01bbba57$ef8ae940$fa28c586@stargate.cs.unr.edu>
|
NNTP-Posting-Host: | pyramid.cs.unr.edu
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I have Microsoft's MASM v6.11, and it can produce COFF object files, which
can be linked in with DJGPP... There is a problem, though - I get General
Protecton Faults and Segment Violatons when I access routines in the
MASM-generated object file. Does anybody know how to successfully use MASM
with DJGPP? Here is the code I am using:
test.asm
-------------
.386P
.MODEL FLAT,C
text SEGMENT DWORD USE32
MyTest PROC
PUBLIC MyTest
Ret ; Complicated function, huh? :-)
MyTest ENDP
ENDS text
END
test2.cc
------------
extern "C" {
void MyTest();
}
int main()
{
MyTest();
return 0;
}
Even with such a simple little program, I get a GPF! Can anyone offer any
suggestions?
Thanks!
======================================================
+ Eric Rasmussen
Morphia +
+ University of Nevada, Reno Paragon
Images +
+ Computer Science Demo Coderz Rule!
:-) +
===============================================
Watch for our new game -- Nuclear Seige -- coming to stores
Christmas 1996!
===============================================
- Raw text -