Configuring the CodeBlocks on Windows to use the
distributed cleansocks library is annoying, but
not really all that hard.
- The cleansocksinstall.exe should install the Cleansocks
headers and libraries under C:\Program Files (x86)\cleansocks.
Check that this is present. If it decides to put it somewhere else,
just substitute that location in the following instructions.
- Under the menu, click on to get the
tool.
- Along the row that starts with ,
Click the tab.
You will see a
left column labeled . You need to
use the button at the bottom to add several libraries. These are:
libcleansocks.a libcleantlsc.a libssl.a libcrypto.a libwsock32.a libws2_32.a libz.a libgdi32.a
I had to enter each one individually. Congratulations if you can find a
better way.
- Now select the tab, to the right of
. This will show
second-level tabs for , and ,
with selected initially.
- Here, use the button to add the search directory for the include
files. It is .
- Change from to in the sub-tab, and add
the library search path, which is
.
- At the bottom, tell it
That should be all you need to compile and run C++ programs using
cleansocks in CodeBlocks. You might want to download and try
some of the examples to test your configuration.