[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ns] Problems compiling in Windows



Yes, it works. But later, there is still this error message'
Microsoft (R) Program Maintenance Utility   Version
6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights
reserved.

        for i in  indep-utils/cmu-scen-gen/setdest
indep-utils/webtrace-conv/de
c  indep-utils/webtrace-conv/epa
indep-utils/webtrace-conv/nlanr  indep-utils/w
ebtrace-conv/ucb; do ( cd $i; NMAKE all; ) done
i was unexpected at this time.
NMAKE : fatal error U1077: 'for' : return code '0x1'
Stop.'

So,...

Best Reagrds
Peng He

-----Original Message-----
From: Scott Michel [mailto:[email protected]]
Sent: January 15, 2001 7:45 PM
To: Peng He
Subject: Re: [ns] Problems compiling in Windows


On Mon, Jan 15, 2001 at 06:41:25PM -0500, Peng He wrote:
> And when I copy all the necessary *.h files into OTCL directory, I can
> compile the OTCL. Then I continue to compile ns2, however, the I got
these'
> ...
> LINK : warning LNK4031: no subsystem specified; CONSOLE assumed
> misc.o : error LNK2001: unresolved external symbol _version_string
> ns.exe : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: '"D:\Microsoft Visual
Studio\VC98\bin\link.exe"'
> : re
> turn code '0x460'
> Stop.'

You need a file in the gen subdirectory called version.c, which ought
to contain the following single line:

----
char version_string[] = "2.1b7";
----

If you have that file, then the Makefile apparently is missing it when
you link. You'll have to hack the Makefile and add it to the list of
objects linked into ns.exe.

> Could you tell me what that means and what I should do? Thanks.

Don't set yourself up for sarcastic comments? :-)


-scooter