help with powder.c

  • zentini
    21st Jan 2011 Member 0 Permalink
    when i tried to compile, these errors come up:

    1>src\update.c(97): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(105): Siehe Deklaration von 'strcpy'
    1>src\update.c(101): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(105): Siehe Deklaration von 'strcpy'
    1>src\update.c(106): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\stdio.h(234): Siehe Deklaration von 'fopen'
    1>src\update.c(168): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(105): Siehe Deklaration von 'strcpy'
    1>src\update.c(172): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\string.h(105): Siehe Deklaration von 'strcpy'
    1> powder.c
    1>src\powder.c(367): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(368): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(369): warning C4244: '=': Konvertierung von 'double' in 'float', möglicher Datenverlust
    1>src\powder.c(721): warning C4554: '&': Prüfen Sie Operatorrangfolge auf mögliche Fehler; verwenden Sie runde Klammern, um den Vorrang zu verdeutlichen
    1>src\powder.c(745): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(746): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(747): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(748): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(750): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(751): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(752): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(753): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(755): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(756): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(757): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(758): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(760): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(761): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust
    1>src\powder.c(762): warning C4244: '=': Konvertierung von 'int' in 'float', möglicher Datenverlust


    and lots more errors

    what can i do? pls help
  • Finalflash50
    21st Jan 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • zentini
    21st Jan 2011 Member 0 Permalink
    end at the end comes a message wich says: error ... cant open ...,exe cannot found
  • Felix
    21st Jan 2011 Member 0 Permalink
    Pastebin the error messages, and only the error messages. Also, are you compiling vanilla code?
  • PizzaPlatypus
    21st Jan 2011 Member 0 Permalink
    Paste only the bits with error not the warnings, warnings don't matter.
  • Felix
    21st Jan 2011 Member 0 Permalink
    PizzaPlatypus:
    Paste only the bits with error not the warnings, warnings don't matter.

    And that is exactly what I wrote ...
  • zentini
    21st Jan 2011 Member 0 Permalink
    1>src\powder.c(1311): error C2143: Syntaxfehler: Es fehlt ';' vor 'Typ'
    1>src\powder.c(1312): error C2065: 'neighbors': nichtdeklarierter Bezeichner
    1>src\powder.c(1317): error C2065: 'neighbors': nichtdeklarierter Bezeichner
    1>src\powder.c(1322): error C2065: 'neighbors': nichtdeklarierter Bezeichner


    now these are all ERRORS i found the rest are warnings
  • zentini
    21st Jan 2011 Member 0 Permalink
    Felix:
    Also, are you compiling vanilla code?

    vanilla code?
  • Felix
    21st Jan 2011 Member 0 Permalink
    zentini:
    vanilla code?

    Code that is not modified. Also, pastebin the lines where the errors occur.
  • zentini
    21st Jan 2011 Member 0 Permalink
    yes its not modified

    http://pastebin.com/cREHVenY

    that are the lines