Compiling, Again

  • TheTempest
    25th May 2011 Member 0 Permalink
    ||obj\Debug\C:\Users\Ty\My Mod\FacialTurd-The-Powder-Toy-128e8c1\src\Resources\powder-res.res: Invalid argument|



    That's the only error I get when I compile, any clue as to what I am supposed to do?
  • TheWiseEyes
    25th May 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • TheTempest
    25th May 2011 Member 0 Permalink
    Not sure what you mean, here's the code in powder-res.res

    #define IDI_ICON1 101
    #define IDI_ICON2 102
    IDI_ICON1 ICON DISCARDABLE "powder.ico"
    IDI_ICON2 ICON DISCARDABLE "document.ico"

    Nevermind, Fixed it. Now I get this




  • devast8a
    25th May 2011 Former Staff 0 Permalink
    Can you post the entire error log somewhere, unedited please.
  • TheTempest
    25th May 2011 Member 0 Permalink
    I fixed it, now this.


    ||warning: command line option "-Wc++0x-compat" is valid for C++/ObjC++ but not for C|
    ||warning: command line option "-std=c++0x" is valid for C++/ObjC++ but not for C|
    C:\Users\Ty\My Mod\FacialTurd-The-Powder-Toy-128e8c1\src\air.c|2|fatal error: air.h: No such file or directory|
    ||=== Build finished: 1 errors, 2 warnings ===|



    Exact Build Log:



    -------------- Build: Debug in My Mod ---------------

    Compiling: FacialTurd-The-Powder-Toy-128e8c1\src\air.c
    cc1.exe: warning: command line option "-Wc++0x-compat" is valid for C++/ObjC++ but not for C
    cc1.exe: warning: command line option "-std=c++0x" is valid for C++/ObjC++ but not for C
    C:\Users\Ty\My Mod\FacialTurd-The-Powder-Toy-128e8c1\src\air.c:2:17: fatal error: air.h: No such file or directory
    compilation terminated.
    Process terminated with status 1 (0 minutes, 0 seconds)
    1 errors, 2 warnings



  • Neospector
    25th May 2011 Member 0 Permalink
    @TheTempest (View Post)
    Ignore warnings.
    The one error is that it cannot find air.h
    Make sure your "includes" file is linked

    Powder Toy Wiki:

    Now go to Search directories -> Compiler, still in Build Options. Add the following:
    includes - (note: if you get air.h not found, try adding the full path to the includes folder)
  • TheTempest
    25th May 2011 Member 0 Permalink
    Thanks so much guys. I compiled, so now I'm ready to begin >:)