#11 win32 portability

open
nobody
None
5
2008-07-11
2008-07-11
Anonymous
No

Cannot cleanly compile in Win32 using Visual Studio (tried the free Express version). Suggestions for some fixes, but I can't fix the missing setitimer and itimerval.

header.h
--------
#ifdef WIN32
#include <intrin.h>
typedef int64_t max_size_t;
#else
#include <iperf-int.h>
typedef uint64_t max_size_t;
#endif

main.cpp
--------
iperf-2.0.4\vs\main.cpp(126) : error 2065: 'SIGALRM' : undeclared identifier
iperf-2.0.4\vs\main.cpp(316) : error C2664: 'Settings_ParseCommandLine' : cannot convert parameter 2 from 'LPTSTR *' to 'char **'

Client.cpp
----------
missing itimerval()
missing setitimer()
#define ENOBUFS WSAENOBUFS
missing ITIMER_REAL

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks