|
Luigi Auriemmaaluigi.org (ARCHIVE-ONLY FORUM!) |
|
It is currently 19 Jul 2012 13:30
|
View unanswered posts | View active topics
|
Page 1 of 1
|
[ 2 posts ] |
|
Author |
Message |
f2gcy
|
Post subject: can't compile stcppipe in VC2005 Posted: 17 Apr 2009 16:44 |
|
Joined: 17 Apr 2009 16:28 Posts: 1
|
first, i found that #include <ws2tcpip.h> #include <winsock.h> is better like #include <winsock2.h> #include <ws2tcpip.h>
then i found that gettimeofday() has to be replaced manually
then i get error: c:\program files\microsoft visual studio 8\vc\platformsdk\include\winbase.h(4236) : error C2373: 'GetTickCount' : redefinition; different type modifiers
and came to this forum :-\
any help?
|
|
Top |
|
|
|
|
|
|
|
aluigi
|
Post subject: Re: can't compile stcppipe in VC2005 Posted: 17 Apr 2009 18:01 |
|
Joined: 13 Aug 2007 21:44 Posts: 4068 Location: http://aluigi.org
|
uhmmm it's strange that you get that error with GetTickCount (I guess you commented gettimeofday and uncommented the 2 lines above it, right?).
now you have 2 options that you can try: - put a (int32_t) before GetTickCount, example: acp_pck.ts.tv_usec = (int32_t)GetTickCount(); - put a 0 at the place of that function, example: acp_pck.ts.tv_usec = 0;
the second one is not a fix because the generated CAP file will no longer have the milliseconds setted in its dumped packets but it's not a so bad thing.
|
|
Top |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|