[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ns-2.1b5 installation problem with Win98
Please download the newest ptypes2tcl.cc from the snapshot. The old one
has problem with MSVC.
Alternatively, apply this patch:
--- ptypes2tcl.cc~ 1999/03/12 22:32:47
+++ ptypes2tcl.cc 1999/03/24 23:50:30
@@ -19,7 +19,7 @@
return charbuf;
}
-main() {
+int main() {
p_info pinfo;
printLine("static const char code[] = \"");
@@ -51,4 +51,5 @@
printf("\";\n");
printf("#include \"tclcl.h\"\n");
printf("EmbeddedTcl et_ns_ptypes(code);\n");
+ return 0;
}
- Haobo
On Thu, 13 May 1999, Luca wrote:
> Hi,
> I'm Luca from "La Sapienza" University (Rome). I'm trying to install
> Ns-2.1b5 on my Win 98 system. I configured the conf\makefile.win to match
> what's in my system, but when I run the makefile.vc it looks like compiling
> OK but then it stops and gives me the following error:
>
>
>
>
>
> cl -c -Ox -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DW
> INVER=0x0400 -DWIN32 -D_WIN32 -D_MT -D_DLL -MD -Ox -Zm1000 -DNO_TK -IC:\WIN
> DOWS
> \Desktop\TCL\tk8.0.4\win -IC:\WINDOWS\Desktop\TCL\tk8.0.4\generic -IC:\WINDO
> WS\D
> esktop\TCL\tcl8.0.4\win -IC:\WINDOWS\Desktop\TCL\tcl8.0.4\generic -IC:\WIND
> OWS\
> Desktop\TCL\otcl-1.0a4 -IC:\WINDOWS\Desktop\NetSim\tclcl-1.0b8 -IC:\WINDOWS
> \Des
> ktop\TCL\tk8.0.4\xlib -I. -IC:\progra~1\DevStudio\VC\include -Foptypes2tcl.
> o -T
> p ptypes2tcl.cc
> ptypes2tcl.cc
> ptypes2tcl.cc(54) : warning C4508: 'main' : function should return a value;
> 'voi
> d' return type assumed
> link -LIBPATH:C:\progra~1\DevStudio\VC\lib /NODEFAULTLIB
> /INCREMENTAL:NO
> /PDB:NONE /RELEASE /NOLOGO msvcrt.lib oldnames.lib kernel32.lib
> wsock32.lib ad
> vapi32.lib -out:ptypes2tcl.exe ptypes2tcl.o
> ./ptypes2tcl > gen\\ptypes.cc
> NMAKE : fatal error U1081: '.' : program not found
> Stop.
> Press any key to continue
>
>
>
> ...What's the problem? Can someone help me? Please answer, I need installing
> it for my studies! Thanks.
>
>
> Luca
>
> E-mail: [email protected]
>
>
>