Article View: comp.lang.modula2
Article #3079Linking XLib into Modula-2 programs
From: MC / JE Harvey
Date: Tue, 05 Dec 1995 04:19
Date: Tue, 05 Dec 1995 04:19
24 lines
1509 bytes
1509 bytes
I am having difficulties with the XLib Mode X graphics Library. More specifically, I am trying to link the XLib object files into a Modula-2 program, using the Jensen and Partners International TopSpeed Implementation of Modula-2 Version 1.17. I have created a definition file for the object modules, and set the compiler up to use the C procedure calling convention, but when I try to link the program, the linker gives me several error messages of the form: "XMAIN$<variable name> was unresolved in Module <program name>" Obviously this indicates that the variable names as declared in the definition module, and the actual variable names in the object file do not mach up, but I have checked these both with the Xlib documentation, and also the source code. Does anyone have any ideas? Martin Harvey. (If the solutions are very long and complicated then email on: mch24@cam.ac.uk)
Technical Details
Message-ID:
<114982385wnr@harvey27.demon.co.uk>Path:
arc1-ca.pugleaf.net!mail2news.demon.co.uk!harvey27.demon.co.ukShow 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: Linking XLib into Modula-2 programs Date: Tue, 05 Dec 1995 04:19:34 GMT Organization: None Message-ID: <114982385wnr@harvey27.demon.co.uk> Reply-To: jeh@harvey27.demon.co.uk X-NNTP-Posting-Host: harvey27.demon.co.uk X-Broken-Date: Tuesday, Dec 05, 1995 04.19.34 X-Newsreader: Newswin Alpha 0.7 X-SMTP-Posting-Host: harvey27.demon.co.uk [Tue, 5 Dec 95 4:20:32 GMT] X-SMTP-Posting-Host: post.demon.co.uk [Tue, 5 Dec 95 4:22:37 GMT]