Release

  • singularity
    21st Aug 2010 Member 0 Permalink
    Well I made a video of my problems.

    http://www.youtube.com/watch?v=6kf0ManGRGU

    I was told to make my PT go faster then I must choose release and not debug =).

    Problems yet again.
  • bchandark
    21st Aug 2010 Member 0 Permalink
    It's private.
    Describe your problems.
  • singularity
    21st Aug 2010 Member 0 Permalink
    Oh sorry.

    Well

    Under #include there is a red line and it says Error cannot open source file.

    #include <SDL.h>
    #include <bzlib.h>


    Here is the log:

    1>------ Build started: Project: Singularity's Powder Toy, Configuration: Release Win32 ------
    1> powder.c
    1>powder.c(29): fatal error C1083: Cannot open include file: 'SDL.h': No such file or directory
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


    I have it set up for release.

    Thanks in advance.
  • bchandark
    21st Aug 2010 Member 0 Permalink
    Well is SDL.h there? Is everything linked properly? Does it work in Debug?
  • singularity
    21st Aug 2010 Member 0 Permalink
    Yes it does work in debug.

    =(
  • singularity
    21st Aug 2010 Member 0 Permalink
    Also what I go and make it debug mode again the red lines go away and it works.
  • devast8a
    21st Aug 2010 Former Staff 0 Permalink
    singularity
    Debug and Release are completely different settings files.
    You must migrate your include paths from your debug settings over to your release settings.
  • singularity
    21st Aug 2010 Member 0 Permalink
    Hey devast8a how do I do that?

    It would be awesome if you could explain it to me.

    And a good suggestion what about a reputation system?

    Anyways fanks.

    EDIT - Ok almost got it BUT now this is the log

    1>------ Build started: Project: Singularity's Powder Toy, Configuration: Release Win32 ------
    1> powder.c
    1>powder.c(950): warning C4067: unexpected tokens following preprocessor directive - expected a newline
    1>powder.c(1084): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1085): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1121): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1122): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1123): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1124): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1126): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1127): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1128): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1129): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1131): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1132): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1133): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1134): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1136): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1137): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1138): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1139): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1205): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1206): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(1351): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(1361): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1614): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(1723): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2012): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(2013): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(2059): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(2060): warning C4305: '*=' : truncation from 'double' to 'float'
    1>powder.c(2334): warning C4244: '-=' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(2343): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2344): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2345): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2346): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2475): warning C4244: '=' : conversion from 'unsigned int' to 'float', possible loss of data
    1>powder.c(2510): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2524): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(2525): warning C4244: '=' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(2546): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(2552): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(2558): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(2564): warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(2597): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2603): warning C4244: '-=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(2622): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2628): warning C4244: '-=' : conversion from 'double' to 'float', possible loss of data
    1>powder.c(2645): warning C4305: '+=' : truncation from 'double' to 'float'
    1>powder.c(2646): warning C4305: '-=' : truncation from 'double' to 'float'
    1>powder.c(2651): warning C4305: '+=' : truncation from 'double' to 'float'
    1>powder.c(2652): warning C4305: '-=' : truncation from 'double' to 'float'
    1>powder.c(2902): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
    1>powder.c(2914): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2914): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2915): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2915): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2915): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2915): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2916): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2916): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2917): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2917): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2917): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(2917): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3258): warning C4018: '>' : signed/unsigned mismatch
    1>powder.c(3261): warning C4018: '>' : signed/unsigned mismatch
    1>powder.c(3264): warning C4018: '>' : signed/unsigned mismatch
    1>powder.c(3274): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3274): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3274): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3276): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3276): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3276): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3278): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3278): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3278): warning C4244: 'function' : conversion from 'double' to 'int', possible loss of data
    1>powder.c(3350): warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(3351): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3496): warning C4244: 'function' : conversion from 'int' to 'float', possible loss of data
    1>powder.c(3496): warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3507): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
    1>powder.c(3519): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3519): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3520): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3520): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3520): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3520): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3521): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3521): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3522): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3522): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3522): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(3522): warning C4244: 'function' : conversion from 'float' to 'int', possible loss of data
    1>powder.c(4246): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
    1> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h(371) : see declaration of 'sprintf'
    1>powder.c(4247): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS
  • triclops200
    21st Aug 2010 Former Staff 0 Permalink
    so? there are no errors, it shoukd work .
  • singularity
    21st Aug 2010 Member 0 Permalink
    I did't get all of it but anyway I fixed it =).