Re: [Quickfix-developers] Compilation error on Solaris
Brought to you by:
orenmnero
|
From: Caleb E. <cal...@gm...> - 2005-09-27 12:06:13
|
On 9/27/05, Law, Kelvin (Hong Kong) <Kel...@ml...> wrote: > > "Utility.cpp", line 206: Error: Formal argument 4 of type const char* in > call to setsockopt(int, int, int, const char*, int) is being passed int*. > > Does anyone else encounter this error? > This looks like an issue specific to Solaris 5.6 (which is really out of date by the way - you should consider upgrading). On my SunOS 5.8 box, the setsockopt prototype looks like: /usr/include/sys/socket.h:extern int setsockopt(int, int, int, const void *= , socklen_t); If you have root access, you can try just changing the protoype in sys/socket.h, or you can just tweak the code in Utility.cpp to cast to cons= t char* for that argument. -- Caleb Epstein caleb dot epstein at gmail dot com |