Article View: comp.lang.modula2
Article #3093Re: Linking XLib into Modula-2 programs
From: MC / JE Harvey
Date: Wed, 06 Dec 1995 15:43
Date: Wed, 06 Dec 1995 15:43
46 lines
2329 bytes
2329 bytes
In article: <4a3h8r$j38@azure.acsu.buffalo.edu> rastrl@cs.buffalo.edu (Robert L Rast) writes: > I've been down this road before with TS 1.17. > What compiler is XLib from? I'm not blindingly sure, the doumentation is rather sketchy, and although the source files are obviously C, I am still in considerable doubt as to exactly which compiler. > Are you prepending an underscore on your object names in > the definition modules. Chances are, the objects in the XLib > has them. Also, put a: (*$G-*) in the .def files. This is a > directive to the compiler to not prefix object names with the > module name. I had tried putting underscores before the variable names, but with little success, however i had *not* put the (*$G-*) compiler directive in, so I will try that as well. > I had problems using the (*$K+*) directive (use C calling > convention). Wow! Well, I do have plenty of time on my hands right now, so I will take care to work around these obstacles.... thanks a lot, because some of these problems are not at all clear from first sight. > You might have to extract everything (.obj) out of the library. > I don't think TS 1.17 supports libraries. If you do this, you > will probably have to write .def for each .obj even if a .obj > object is not referenced in your .mod files. > Then just do: > > IMPORT somename; (* for linker resolution *) > I had a sinking feeling that I might have to write def files for every module. I'll experiment, and see what happens. > Let me know how it goes, I certainly will. Martin Harvey (mch24@cam.ac.uk)
Technical Details
Message-ID:
<476954430wnr@harvey27.demon.co.uk>Path:
arc1-ca.pugleaf.net!mail2news.demon.co.uk!harvey27.demon.co.ukReferences:
<114982385wnr@harvey27.demon.co.uk> <4a3h8r$j38@azure.acsu.buffalo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!mail2news.demon.co.uk!harvey27.demon.co.uk From: MC / JE Harvey <jeh@harvey27.demon.co.uk> Newsgroups: comp.lang.modula2 Subject: Re: Linking XLib into Modula-2 programs Date: Wed, 06 Dec 1995 15:43:32 GMT Organization: None Message-ID: <476954430wnr@harvey27.demon.co.uk> References: <114982385wnr@harvey27.demon.co.uk> <4a3h8r$j38@azure.acsu.buffalo.edu> Reply-To: jeh@harvey27.demon.co.uk X-NNTP-Posting-Host: harvey27.demon.co.uk X-Broken-Date: Wednesday, Dec 06, 1995 15.43.32 X-Newsreader: Newswin Alpha 0.7 X-SMTP-Posting-Host: harvey27.demon.co.uk [Wed, 6 Dec 95 19:35:12 GMT] X-SMTP-Posting-Host: post.demon.co.uk [Wed, 6 Dec 95 19:36:30 GMT]