Hi,
comments embedded.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Tuesday, February 24, 2004 2:59 PM
> To: [EMAIL PROTECTED]
> Subject: [Freedos-devel] Q: Watcom & debugging
>
>
> Hello,
>
> I'm trying to setup a functional OpenWatcom environment on WinXP (using
> BINNT tools) building real-mode DOS programs. Till now it builds objects
> and executables fine. I have these problems:
>
> a) When I try to use a "normal" librarian (aka LIB.EXE), the Watvom linker
> does accept the library, but does not find no symbol. The wlib tool also
> accepts the library without warning or problem. When I extract the OBJ's
> from the library and re-archive them with the wlib tool, the linker finds
> the symbols, too.

IIRC, there are two kind of libraries: one kind is a simple archive of
objects, with little or no information added, the second type has a symbol
database added, called "index" or "extended index", that allows to the
linker to find simbols without looking in every object.
This functionality was meant only to speed up linking, but I don't know
watcom: perhaps it needs the extended index to link correctly.
The simptoms are clear:
 - if you build the lib with a tool that doesn't add the index -> watcom
linker find no symbol
 - if you build the very same lib with wlib (or any librarian that adds the
index) -> watcom linker links correctly.

Try to use tlink, that has options to include/exclude the index, and see
what happens.

HTH, Ciao



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to