Am I coding this right?

  • pilojo
    1st Nov 2010 Member 0 Permalink
    Neospector
    Yeah. I have. Still. Do that. If that doesn't work I'll show you the link to the better wiki.
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Bumping up, I need to know what this error means:
    1>------ Build started: Project: Neospector, Configuration: Debug Win32 ------
    1> powder (2).c
    1>c:\users\john\downloads\powder-42.3-src\powder.h(257): warning C4244: 'initializing' : conversion from 'float' to 'unsigned char', possible loss of data
    1>c:\users\john\downloads\powder-42.3-src\powder.h(257): warning C4047: 'initializing' : 'const char *' differs in levels of indirection from 'int'
    1>c:\users\john\downloads\powder-42.3-src\powder.h(257): warning C4047: 'initializing' : 'const unsigned short' differs in levels of indirection from 'char [56]'
    1>c:\users\john\downloads\powder-42.3-src\powder.h(258): error C2065: 'CDFS' : undeclared identifier
    1>c:\users\john\downloads\powder-42.3-src\powder.h(258): error C2099: initializer is not a constant
    1>c:\users\john\downloads\powder-42.3-src\powder.h(260): error C2059: syntax error : ';'
    1>c:\users\john\downloads\powder-42.3-src\powder.h(335): fatal error C1903: unable to recover from previous error(s); stopping compilation
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • pilojo
    1st Nov 2010 Member 0 Permalink
    1>c:\users\john\downloads\powder-42.3-src\powder.h(260): error C2059: syntax error : ';' Look at that line 260...
  • Neospector
    1st Nov 2010 Member 0 Permalink
    And would you care to tell me what to do in this? You yourself told me that powder.h was fine the way it was...
  • MiXih
    1st Nov 2010 Member 0 Permalink
    omg
    add ;
  • Neospector
    1st Nov 2010 Member 0 Permalink
    wikku9
    Ok ok sheesh. Instead of being a drama queen you could be nice for once and help me with the other errors.
  • pilojo
    1st Nov 2010 Member 0 Permalink
    Neospector
    Did you add #define PT_????
  • Neospector
    1st Nov 2010 Member 0 Permalink
    pilojo
    Yes. #define PT_HOTS 68
    #define PT_STEL 69
    I found a few of the problems which was for some reason I had HOTS diffusing and exploding not to mention melting.
  • Neospector
    1st Nov 2010 Member 0 Permalink
    K- to bide my time while I fix my errors, the following elements will be (attempted) to be coded in:
    COLD- Solid cooler
    TXGS- Toxic gas. Kills stickman, very flammable.
    GOLD- Gold! Strong, conductive. (copy STEL)
    These are semi-basic elements which can be added in with little difficulty. GOLD will be difficult since I might get the same problem which in getting with STEL. But TXGS I just copy the code from O2 and NEUT.
    *prepares for long-winded rant*
  • Neospector
    1st Nov 2010 Member 0 Permalink
    I need to bump this up badly.
    wikku's "advice" didn't work. Still has an error on that line. The errors now consist of
    1>------ Build started: Project: Neospector, Configuration: Debug Win32 ------
    1> powder (2).c
    1>c:\users\john\downloads\powder-42.3-src\powder.h(258): error C2065: 'CDFS' : undeclared identifier
    1>c:\users\john\downloads\powder-42.3-src\powder.h(258): error C2099: initializer is not a constant
    1>c:\users\john\downloads\powder-42.3-src\powder.h(258): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>c:\users\john\downloads\powder-42.3-src\powder.h(260): warning C4047: 'initializing' : 'unsigned char' differs in levels of indirection from 'char [50]'
    1>c:\users\john\downloads\powder-42.3-src\powder.h(260): error C2059: syntax error : ';'
    1>c:\users\john\downloads\powder-42.3-src\powder.h(335): fatal error C1903: unable to recover from previous error(s); stopping compilation
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    So I've eliminated one, which happened to be a couple human errors. Otherwise it doesn't make any sense. Elements in above post will be in Version two. Here's why some make sense:
    Some are just making no sense because I've copied above elements and those aren't having errors.
    Line 60 has no character 50. it's just };;