[Libwebsockets] [libwebsockets] #29: Cannot build with VS2008 on Windows 7 x64

Trac trac at libwebsockets.org
Fri Apr 26 00:59:27 CEST 2013


#29: Cannot build with VS2008 on Windows 7 x64
-----------------------------------+--------------------
 Reporter:  davetaflin             |      Owner:  agreen
     Type:  defect                 |     Status:  new
 Priority:  major                  |  Milestone:
Component:  libwebsockets library  |    Version:
 Keywords:  Windows, x64           |
-----------------------------------+--------------------
 Following the instructions for configuring with CMake (all default
 settings except turning off SSL) results in LWS_VISIBLE not being defined,
 which cascades into many compile errors. It appears to boil down to the
 following portion of libwebsockets.h:

 #ifdef WIN32
 .
 .
 .
 #ifdef LWS_DLL
 #ifdef LWS_INTERNAL
 #define LWS_VISIBLE
 #define LWS_EXTERN extern __declspec(dllexport)
 #else
 #define LWS_VISIBLE
 #define LWS_EXTERN extern __declspec(dllimport)
 #endif
 #endif

 WIN32 is defined but LWS_DLL is not defined, so LWS_VISIBLE and LWS_EXTERN
 remain undefined.

-- 
Ticket URL: <http://libwebsockets.org/trac/ticket/29>
libwebsockets <http://libwebsockets.org>
libwebsockets C library



More information about the Libwebsockets mailing list