- Link failure

From: [at]} <Gérard>
Date: Wed, 10 May 2006 00:43:39 +0200

----boundary-LibPST-iamunique-107488992_-_-
Content-type: text/plain

Rex Couture a crit :

>At 02:40 PM 5/9/2006, Rene Krywult wrote:
>
>
>>Every module you import MUST be in the Linker list ... and every module imported in an imported module, too.

>>
>>
>
>
> Thanks. It doesn't seem to make any difference, however.
>DevLinker.LinkExe
>Junk.exe := TestJunk StdLog 1 applogo.Ico ~
>
>still gets me
>"StdLog not present (imported in TestJunk)"
>
>(It is present, and it's shown in the Loaded Modules list).
>
> And it's not true for the example, which does actually link correctly. This is from the example:
>
>(* [Command button] DevLinker.LinkExe
>Simple.exe := Simple 1 applogo.Ico ~ *) (* Works *)
>
>MODULE Simple;
>IMPORT S := SYSTEM, WinApi; ...
>
> There's some magic I'm missing somewhere.
>
>Sincerely,
>Rex Couture
>
>--- BlackBox
>--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
>
>
SYSTEM and WinApi are pseudo-modules that generate no code. So, there is
no need to import them. But you must link every module whose code is
used by your module or by modules imported by your module, sorted by
importation order (imported modules first). In your case, you get
something like:

DevLinker.LinkExe TestJunk.exe :Kernel+ Fonts Ports Files Dialog Math Strings Stores Sequencers Models
Log Meta Converters Services Views Dates Controllers Properties
Mechanisms Containers Printers Printing Documents Windows HostFiles
HostRegistry HostFonts HostPorts OleData HostMechanisms HostWindows
HostPrinters StdDialog StdApi StdCmds StdCFrames HostCFrames HostDialog
TextModels TextMappers TextRulers TextSetters TextViews TextControllers
StdLog TestJunk

For a static link, you must uses LinkExe instead of Link. See the docu
of DevLinker.
But the resulting exe file doesn't work, because some hooks are not
correctly initialized (don't ask me why). I suggest you use the menu
command "Info->Create Tool", that gives a more reliable result.

Cheers.

Grard

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-107488992_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e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gc3VnZ2VzdCB5b3Ug
dXNlIHRoZSBtZW51IFxwYXINCmNvbW1hbmQgIkluZm8tPkNyZWF0ZSBUb29sIiwgdGhhdCBnaXZl
cyBhIG1vcmUgcmVsaWFibGUgcmVzdWx0LlxwYXINClxwYXINCkNoZWVycy5ccGFyDQpccGFyDQpH
XCdlOXJhcmRccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhF
TFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KfX0ALjAgcg=


----boundary-LibPST-iamunique-107488992_-_---
Received on Wed May 10 2006 - 00:43:39 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:02 UTC