Cool VL Viewer forum
http://sldev.free.fr/forum/

Build fails when USE_NETBIOS OFF is selected
http://sldev.free.fr/forum/viewtopic.php?f=4&t=2266
Page 1 of 1

Author:  kathrine [ 2022-04-13 21:38:11 ]
Post subject:  Build fails when USE_NETBIOS OFF is selected

The build for 1.29.0.1 on Windows fails compiling lluuid.cpp when USE_NETBIOS is set to OFF.

Seems a necessary include was removed:
#include "llwin32headerslean.h"

It works when i put it back:

Code:
#if LL_WINDOWS
# if LL_NETBIOS
#  include "llwin32headers.h"
#  include <nb30.h>               // For ADAPTER_STATUS
# else
#  include "llwin32headerslean.h"
# endif
# include <iphlpapi.h>
#endif

Author:  Henri Beauchamp [ 2022-04-13 23:05:25 ]
Post subject:  Re: Build fails when USE_NETBIOS OFF is selected

Thank you, I did not test USE_NETBIOS OFF, lately...

Those damned win32 headers ! :x

I had to change (for v1.29.0, that failed to compile otherwise) the includes order so that llwin32headerslean.h is now automatically included by linden_common.h (which gets included in every *.cpp source file), unless llwin32headers.h was included first (the two llwin32*.h header files share the same #define LL_LLWIN32HEADERS_H include guard for this purpose), but sadly nb30.h needs llwin32headers.h (full headers) while iphlpapi.h only needs the "lean" version and since it appears before linden_common.h... The hen and the egg !

So yeah, no elegant way to solve this issue, and your solution (explicit llwin32headerslean.h inclusion for iphlpapi.h) seems the best choice...

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/