Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2024-03-19 05:14:38



Reply to topic  [ 2 posts ] 
Build fails when USE_NETBIOS OFF is selected 
Author Message

Joined: 2011-10-07 10:39:20
Posts: 181
Reply with quote
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


2022-04-13 21:38:11
Profile

Joined: 2009-03-17 18:42:51
Posts: 5523
Reply with quote
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...


2022-04-13 23:05:25
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.