The problem is that i can't manage to compile the simplest (int main(){}) boost asio program with Code Blocks.
I'm using Windows 7.
Googling gave me some controversial suggestions:

1) to add -lwsock32 key - Done(Compiler settings->Other options-> -lwsock32)
2) to link with ws2_32.dll and wsock32.dll - Done (Linker settings->paths to these dlls)
3) to link with boost system lib - Done(Linker settings -> path to libboost_system-mgw47-mt-1_52.a)
4) to add _WIN32_WINNT=0x0601 for Windows 7 option - Done (Compiler settings->#defines _WIN32_WINNT=0x0601)
5) to include winsocks2.h as a header - Done.
6) to add option -std=gnu++11 - Done

And still it doesn't work.

Just keeps writing the same error message "Swprintf was not declared in this scope." within "win_static_mutex.ipp" file

Search directories->Linker - Doesn't seem to contain errors: C:\Windows\SysWOW64 and C:\Boost\lib

So what should I do else or maybe i made something unnecessary?

Thanks beforehand for possible advices.

2 Years
Discussion Span
Last Post by Alxprog

So, should I include cwchar header in win_static_mutex.ipp file?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.