Now go to Search directories ->' Compiler, still in Build Options. Add the following: The includes folder of the source C:\MinGW\include\SDL C:\MinGW\include\
TPT Wiki: Now go to Search directories ->' Compiler, still in Build Options. Add the following: The includes folder of the source C:\MinGW\include\SDL C:\MinGW\include\
pilojo:
Now, the tricky part. Go to Project �' Build options �' Linker settings. Add the following in the link libraries: C:\MinGW\lib\libmingw32.a
Now go to Search directories ->' Compiler, still in Build Options. Add the following: The includes folder of the source
this means the includes folder INSIDE the powder toy folder, it does not give a directory because it could be wherever you placed it, an example C:\Users\Name\Documents\TPT-SOURCE\includes
In the left hand side of the Code::Blocks window you will see the project name to be listed there. Right-click then add files recursively. Select the includes and the src folder of the source (Might be done separately (select includes first then src second)) You should see that there are subfolders under the project name named Sources, Headers, and Resources. This means you have successfully added the files. Now, the tricky part. Go to Project â†' Build options â†' Linker settings. Add the following in the link libraries: C:\MinGW\lib\libmingw32.a
C:\MinGW\lib\libSDLmain.a
C:\MinGW\lib\libSDL.dll.a
C:\MinGW\lib\bzip2.lib
C:\MinGW\lib\libwsock32.a
C:\MinGW\lib\libws_32.a
Now go to Search directories â†' Compiler, still in Build Options. Add the following: The includes folder of the source
C:\MinGW\include\SDL
C:\MinGW\include\
The last one. In Compiler Settings â†' Other options, still in Build Options, Add the line: -w -m32 -std=c99 -D_POSIX_C_SOURCE=200112L -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -mmmx -DX86 -mwindows -DWIN32