Wireshark-dev: Re: [Wireshark-dev] Error compiling acustomdllpluginforWireshark0.99.7
From: "A Verma" <laughaloud43@xxxxxxxxx>
Date: Thu, 6 Mar 2008 14:32:10 +0530
Hi,
Thanks for the inputs.
Here are the lines with line numbers:

1077    hours = tagv.secs / 3600;

1078 mins = (tagv.secs - (hours * 3600)) / 60;

1079  secs = tagv.secs - (hours * 3600) - (mins * 60);

  

1103  hours = tagv.secs / 3600;

1104 mins = (tagv.secs - (hours * 3600)) / 60;

1105 secs = tagv.secs - (hours * 3600) - (mins * 60);

 

Where :

    nstime_t tagv;

    unsigned int hours;

    unsigned int mins;

    unsigned int secs

I want to know the way to suppress the warnings on windows.
Also,I have tried many things but the following errors are not going away:

Generating Code...

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c

l.EXE"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n

make.exe"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n

make.exe"' : return code '0x2'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\n

make.exe"' : return code '0x2'

Any suggestions?

thanks,

Ash

On 3/6/08, Stephen Fisher <stephentfisher@xxxxxxxxx> wrote:
On Thu, Mar 06, 2008 at 12:59:46PM +0530, A Verma wrote:

> Can you pls suggest me what to do. I am getting both warnings and
> errors, I have tried a lot of things but they don't go away. I am new
> to development with wireshark.
>
> The errors that I am getting are:

> packet-xxx.c(1077) : error C2220: warning treated as error - no
> 'object' file generated

> packet-xxx.c(1077) : warning C4244: '=' : conversion from 'time_t' to
> 'unsigned int', possible loss of data

<snip>

Can you show us the lines of your code that are generating these
warnings?  The line numbers are shown in parenthesis after packet-xxx.c.

> Also can you pls tell me how to supress the warnings?

If you fix the cause of the warnings, thenn they will go away :).

> I tried this and got the following errors:
> C:\wireshark>/.configure --disable-warnings-as-errors
> '/.configure' is not recognized as an internal or external command,
> operable program or batch file.

That will only work on Unix builds, not Windows.


Steve
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev