README file for building the SNFMulti library using Code::Blocks Copyright (c) 2009 ARM Research Laboratories This is the README file for the Code::Blocks project for building the 64-bit SNFMulti DLL using Code::Blocks. These directions are for building the SNFMulti DLL using the 64-bit MinGW compiler. This README file should be in the CodeBlocks\SNFMulti directory of the SNF_CS developer distribution. To build the library: 1) Install the 64-bit MinGW as described in the README file in the above directory. 2) Ensure that the SNFMulti and CodeDweller source directories are in the correct location. They should be in ..\..\SNFMulti and ..\..\CodeDweller (relative to this directory). 3) Open the SNFMulti Code::Blocks project (SNFMulti.cbp). 4) Select the Debug or Release targets. 5) Build the library. The library is created in bin\Debug or bin\Release relative to this directory. Creating the SNFMulti project file ---------------------------------- 1) Create a Code::Blocks DLL project. Create the project file in this directory, and name it SNFMulti. 2) Select a 64-bit compiler (MinGW-64; see the README file in the parent directory for setting up Code::Blocks to use a 64-bit MinGW compiler). 3) Select the Debug target (Build->Select target->Debug). 4) Add the .cpp, .hpp, and .h files in the SNFMulti and CodeDweller directories in the SNF_CS developer distribution (Right-click on the SNFMulti project in the projects window, and choose "Add files"). Add the files to both the Debug and Release versions. 5) Add the link directory contining the libWS2_32.a library (default directory is c:\MinGW-64\x86_64-pc-mingw32\lib64): a) Open the Build Options window (Projects->Build Options). b) Click on SNFMulti (on the left-hand pane) so that the following applies to both the Debug and Release versions. c) Choose the Search Directories tab. d) Select the Linker tab. e) Add the library directory "c:\MinGW-64\x86_64-pc-mingw32\lib64". 6) Add the libWS2_32.a library: a) Open the Build Options window. b) Click on SNFMulti. c) Choose the Linker settings tab. d) Add the library "libws2_32.a" to the Link libraries window. 7) Add the compiler options: a) Open the Build Options window. b) Click on SNFMulti. c) Select the Compiler settings tab. d) Select the Compiler Flags tab. e) Turn off compiler warnings. f) Select the Other options tab. g) Add "-mthreads -O3".