Am I coding this right?

  • Neospector
    1st Nov 2010 Member 0 Permalink
    Is it missing powder.c or powder (2).c?
  • Pilihp64
    1st Nov 2010 Developer 0 Permalink
    delete any duplicate files in the folder.
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Just have. Error:1>------ Build started: Project: Neospector, Configuration: Debug Win32 ------
    1> powder (2).c
    1>c1 : fatal error C1083: Cannot open source file: 'powder (2).c': No such file or directory
    1> ._main.c
    1>._main.c : warning C4821: Unable to determine Unicode encoding type, please save the file with signature (BOM)
    1>._main.c(1): error C2018: unknown character '0x5'
    1>._main.c(1): error C2018: unknown character '0x16'
    1>._main.c(1): error C2018: unknown character '0x7'
    1>._main.c(1): error C2018: unknown character '0x2'
    1>._main.c(1): error C2061: syntax error : identifier 'OS'
    1>._main.c(1): error C2059: syntax error : ';'
    1>._main.c(1): error C2018: unknown character '0x2'
    1>._main.c(1): error C2143: syntax error : missing '{' before 'constant'
    1>._main.c(1): error C2059: syntax error : '<Unknown>'
    1>._main.c(1): error C2018: unknown character '0xe'
    1>._main.c(1): error C2018: unknown character '0x2'
    1>._main.c(1): error C2018: unknown character '0xe'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1>._main.c(1): error C2018: unknown character '0xe'
    1>._main.c(1): error C2018: unknown character '0xf'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0xf'
    1>._main.c(1): error C2018: unknown character '0x17'
    1>._main.c(1): error C2059: syntax error : 'constant'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1>._main.c(1): error C2018: unknown character '0x1c'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1> Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    It isn't even supposed to be using "powder (2).c"
  • pilojo
    1st Nov 2010 Member 0 Permalink
    delete ._main.c
  • Neospector
    1st Nov 2010 Member 0 Permalink
    pilojo
    There's only one main.c...
  • pilojo
    1st Nov 2010 Member 0 Permalink
    theres ._main.c and main.c.... you have teamviewer? that would be easier.
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Renamed powder.c "powder (2).c" and I get this:
    1>------ Build started: Project: Neospector, Configuration: Debug Win32 ------
    1> powder.c
    1>c1 : fatal error C1083: Cannot open source file: 'powder.c': No such file or directory
    1> ._main.c
    1>._main.c : warning C4821: Unable to determine Unicode encoding type, please save the file with signature (BOM)
    1>._main.c(1): error C2018: unknown character '0x5'
    1>._main.c(1): error C2018: unknown character '0x16'
    1>._main.c(1): error C2018: unknown character '0x7'
    1>._main.c(1): error C2018: unknown character '0x2'
    1>._main.c(1): error C2061: syntax error : identifier 'OS'
    1>._main.c(1): error C2059: syntax error : ';'
    1>._main.c(1): error C2018: unknown character '0x2'
    1>._main.c(1): error C2143: syntax error : missing '{' before 'constant'
    1>._main.c(1): error C2059: syntax error : '<Unknown>'
    1>._main.c(1): error C2018: unknown character '0xe'
    1>._main.c(1): error C2018: unknown character '0x2'
    1>._main.c(1): error C2018: unknown character '0xe'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1>._main.c(1): error C2018: unknown character '0xe'
    1>._main.c(1): error C2018: unknown character '0xf'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0xf'
    1>._main.c(1): error C2018: unknown character '0x17'
    1>._main.c(1): error C2059: syntax error : 'constant'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1>._main.c(1): error C2018: unknown character '0x1c'
    1>._main.c(1): error C2018: unknown character '0x1e'
    1> Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • pilojo
    1st Nov 2010 Member 0 Permalink
    1>._main.c(1): error C2018: unknown character '0x1e'
  • Neospector
    1st Nov 2010 Member 0 Permalink
    Ugh I just give up. Too many errors, why can't the program tell me something simple, like "error in __ file line __ character __?"
  • Pilihp64
    1st Nov 2010 Developer 0 Permalink
    the problem isn't IN the files, it is where you have them
    edit:
    i suggest deleting EVERYTHING and starting with a clean source and get it to compile normally before you start changing things.