aMule Forum
English => Compilation problems => Topic started by: Menion on June 11, 2016, 01:03:58 PM
-
Hi
I've just pulled the latest git source base.
If I enable Boost::asio the compilation fails because IPFilterScanner fails to link against CLoggr:IsEnabled
I see that in case that __DEBUG__ is not defined, the definition of such function is done in Logger.h returning false.
I compile with --disable-debug, so my understanding is that for some reason this __DEBUG__ define is not managed correctly in case of Boost:Asio
Bye
-
i read somewhere that if you enable boost you have to disable debug it's a known thing
-
No, it's not a known thing and most importantly they should not affect each other. I have built aMule successfully with both debug and boost enabled.
Could you please attach a log of the error?
-
ah ok my mistake!
-
No, it's not a known thing and most importantly they should not affect each other. I have built aMule successfully with both debug and boost enabled.
Could you please attach a log of the error?
Hi
I should clean and rebuild the source tree, however I remember the error.
It was failing to link a lib because of a missing CLogger:IsEnabled()
In the GIT rev I have used this method was defined in Logger.h returning false in case of #ifndef__DEBUG__.
Otherwise if__DEGUG__ is defined, the definition of such method is in Logger.cpp. I have fixed the issue removing the return false definition from .h and moved it under ifdef-else in the .cpp.
I cannot be more specific about what was the exact component failing to build, but was Boost:Asio specific for sure and with - - disable-debug.
But please consider that it was the same directory where I built the non Asio version, going through a new .configure so maybe it was the problem?
Bye