Thanks. I guess MSVC 6 (cl version 12) understands exit(), so we didn't
run across this before. I'll check in the change.
--gilbert
----- Original Message -----
From: "David O Shea" <david_oshea@xxxxxxxxxxxxx>
To: <ethereal-users@xxxxxxxxxxxx>
Sent: Friday, April 20, 2001 2:34 PM
Subject: [Ethereal-users] Win32 build error (tethereal.c)
> I get the following error when I try to compile ethereal 0.8.17-a:
>
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for
80x86
> Copyright (C) Microsoft Corp 1984-1997. All rights reserved.
>
> tethereal.c
> .\tethereal.c(592) : error C4035: 'main' : no return value
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> I'm using MSVC 5.0 SP3. I notice that the code at the end of main() in
tethereal looks like this:
>
> exit(0);
> }
>
> Whereas in editcap.c (which compiles fine) it looks like this:
>
> exit(0);
> return 0; /* Silence compiler warnings */
> }
>
> I guess the hack from editcap needs to go into tethereal too. I tried it
and it works fine.
>
> Regards,
> David
>
> --
> Find the best deals on the web at AltaVista Shopping!
> http://www.shopping.altavista.com
>
> _______________________________________________
> Ethereal-users mailing list
> Ethereal-users@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-users
>