Unable to find modinfo [sample] [Unable to open module [sample] [/home/xxx/.znc/modules/sample.so: undefined symbol: _ZN7CModule13OnClientCapLsEP7CClientRSt3setI7CStringSt4lessIS3_ESaIS3_EE]]
#### Steps to reproduce:
1. Use ZNC compiled with --enable-debug
2. Add `#include <map>` at the top of sample.cpp
3. znc-buildmod sample.cpp
4. loadmod sample
> Unable to find modinfo [sample] [Unable to open module [sample] [/home/xxx/.znc/modules/sample.so: undefined symbol: _ZN7CModule13OnClientCapLsEP7CClientRSt3setI7CStringSt4lessIS3_ESaIS3_EE]]
<!-- github-sync-id:5805222 -->
Yeh, zncconfig.h or any other ZNC header.
All of them already include zncconfig.h, and you'll need to include at least Modules.h anyway to write a module.
So, this works:
#include <znc/Modules.h>
#include <map>
Yeh, zncconfig.h or any other ZNC header.
All of them already include zncconfig.h, and you'll need to include at least Modules.h anyway to write a module.
So, this works:
```
#include <znc/Modules.h>
#include <map>
```
<!-- github-comment-id:7238920 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Steps to reproduce:
#include <map>at the top of sample.cppFix: Add
#include <znc/zncconfig.h>before any STL library.Yeh, zncconfig.h or any other ZNC header.
All of them already include zncconfig.h, and you'll need to include at least Modules.h anyway to write a module.
So, this works: