Compiling clean source of 45.2, errors.

  • pilojo
    14th Jan 2011 Member 0 Permalink
    @Diissaster
    -_-... you set the includes wrong... do it again...
  • Diissaster
    14th Jan 2011 Member 0 Permalink
    How?
    No it doesnt say on wiki.
  • pilojo
    14th Jan 2011 Member 0 Permalink
    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

    quote from wiki... learn to read...
  • Pilihp64
    14th Jan 2011 Developer 0 Permalink
    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
    14th Jan 2011 Member 0 Permalink
    @cracker64
    That too :P
  • Diissaster
    14th Jan 2011 Member 0 Permalink
    cracker64:
    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

    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

    quote from wiki... learn to read...

    IV'E DONE THEM BOTH!
  • pilojo
    14th Jan 2011 Member 0 Permalink
    Press F9 in your keyboard.
    It should compile. If not, Converse with me (tian110796)
    If it compiles continue to the element coding tutorial.

    Bother reading that?
  • Diissaster
    14th Jan 2011 Member 0 Permalink
    Yes. But tian110796 is not online. And when i click f9 it shows me the errors nothing else.
  • Pilihp64
    14th Jan 2011 Developer 0 Permalink
    WIKI:
    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
  • Diissaster
    14th Jan 2011 Member 0 Permalink
    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


    @cracker64
    ?
    Bold things i've done wrong.