U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » MtRpcServer package compilation fail
MtRpcServer package compilation fail [message #55765] Fri, 11 December 2020 14:06
Xemuth is currently offline  Xemuth
Messages: 387
Registered: August 2018
Location: France
Senior Member
MtRpcServer/MtRpcServer.cpp:75 :

Actual :
static BOOL WINAPI CtrlCHandlerRoutine(__in  DWORD dwCtrlType)


Should be :
static BOOL WINAPI CtrlCHandlerRoutine(DWORD dwCtrlType)


Explanation : When compiling with CLANG, compilation fail in __in (which is not declared) :
C:\Upp\upp\reference\MtRpcServer\MtRpcServer.cpp (76): error: unknown type name '__in'

if we look at __in declaration(for CLANG) : upp/bin/clang/include/sal.h:262
We see this block of code :
/* FIXME: __in macro conflicts with argument names in libstdc++. For this reason,
 * we disable it for C++. This should be fixed in libstdc++ so we can uncomment
 * it in fixed version here. */
#if !defined(__cplusplus) || !defined(__GNUC__)
#define __in
#define __out
#endif


The __in declaration have no purpose on compilation, it only serve to mark which args are input( got info from here)
of course, no problem when compiling with MSVS.


[Updated on: Fri, 11 December 2020 14:15]

Report message to a moderator

 
Read Message
Previous Topic: build show "There were errors." without explanation
Next Topic: [BUG] Umk/TheIDE Last trunk on debian compilation error
Goto Forum:
  


Current Time: Sat Apr 25 20:24:23 GMT+2 2026

Total time taken to generate the page: 0.00600 seconds