[comp.windows.ms] Problem with linking files

steveo@dbrmelb.dbrhi.oz (Stephen Oakes) (10/04/90)

Recently, someone described his problems with using "link" to create an
executable file to run under windows.  The errors encountered were:
	No stack segment,
	Unresolved external  (lots of these).

I have exactly the same problem, but I didn't see any solution.  If the 
original poster knows what is wrong, could he please tell me?

(More detailed description follows)

I am using a 386 with 4Meg memory.
I am using MSC V5.1, and SDK V3.0.
I haven't been able to create a single windows program yet, :-<
even though I have followed the instructions in the SDK "Guide to Programming".

The resource compiler seems to have no problems, nor does the compiler (cl).

The problem seems to be with the linker.  /* When I use link, I get a message
saying that it is version 3.65.  I also have version 4.something, which came
with QC2.  There doesn't seem to be any difference. */

In SDK "Tools", page 2-1 it says:
	"IMPORTANT  Microsoft C version 5.1 and Microsoft QuickC versions
	2.0 and later include two linkers.  If you are developing your
	application with one of these versions, use the segmented-
	executable linker."

I have only been able to find one linker on the original MSC discs, and
in the manual.  What is this mysterious "segmented-executable" linker?
Is this the problem??

Any help greatly appreciated,

- o		Stephen Oakes.
\_/

richgi@microsoft.UUCP (Richard GILLMANN) (10/06/90)

>I have only been able to find one linker on the original MSC discs, and
>in the manual.  What is this mysterious "segmented-executable" linker?
>Is this the problem??

LINK 3.65 and earlier Microsoft linkers are pre-Windows.  You need
to use either the linker supplied in the Windows SDK or you can use
LINK 5.01 which was shipped with C5.1 in addition to LINK 3.65.  Or
better yet, use LINK 5.10 from C6.0.