Article View: comp.lang.modula2
Article #2856Re: HELP with FST Modula-2 FOREIGN MODULEs in MS-DOS
From: Jan Walter
Date: Thu, 28 Sep 1995 06:39
Date: Thu, 28 Sep 1995 06:39
41 lines
2034 bytes
2034 bytes
In article <44d4hu$22lq@rover.ucs.ualberta.ca>, pkobly@pop.srv.ualberta.ca (Patrick Kobly) writes: > > Msg-ID: <44d4hu$22lq@rover.ucs.ualberta.ca> > Posted: 28 Sep 1995 03:24:46 GMT > > Org. : University of Alberta > > Help, I'm desperate. I need to use an OBJ file createdby Turbo C++ in my > Modula MODULE. Apparently, this is supposed to be able to be done using > the FOREIGN [C|PASCAL] DEFINITION MODULE statement, but whenever I try to > do this, it says it can't find GRAPHICS.MOD, when I want to use > GRAPHICS.OBJ. BTW, I do understand the difference between object and > source code, so that's not the problem. Apparently, when MODULEs are > compiled using FST, they are of a different type than OBJ files. . . they > are M2O files. > I tried one other thing to get it to work (it didn't) I set the compiler > to output OBJ files and tried to use MS-DOS's LINK to link that OBJ with > the graphics one. It didn't work, LINK complained about missing CODE > SEGMENTS (I think). . . HELP! > Patrick Kobly > You have to remember to link in the borland RTL (run-time library) for the C functions and the RTL for FST. Have a look in the TC/BIN directory for the right obj and lib files. The other thing you will need is the source for the FST library modules (i.e. the registered compiler) so you can link in their obj code as well. Hope that helps, Jan Walter -- Facts below, opinions above. The "unfancy" sig... // Centurion Services & Wholesale // // "Quality from the Start" // // Jan_Walter@mindlink.bc.ca // // Telefax: (604) 279-1800 //
Technical Details
Message-ID:
<78508-812270385@mindlink.bc.ca>Path:
arc1-ca.pugleaf.net!mindlink.bc.ca!a9282Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mindlink.bc.ca!a9282 From: Jan_Walter@mindlink.bc.ca (Jan Walter) Newsgroups: comp.lang.modula2 Subject: Re: HELP with FST Modula-2 FOREIGN MODULEs in MS-DOS Date: Wed, 27 Sep 95 23:39:45 -0700 Organization: MIND LINK! - British Columbia, Canada Distribution: world Message-ID: <78508-812270385@mindlink.bc.ca> NNTP-Posting-Host: mindlink.net