Compiling Help Needed

  • Wazabi-Bros
    27th Mar 2012 Member 0 Permalink
    First of all I'm really sorry I keep asking for help, but that's how we all learn and flourish.
    Before you troll me, remember we all have had our difficulties before.

    Now onto the issue.
    I'm having major pains with compiling. I'm using Visual Studio C++ 2010... Just as the wiki states.
    The problem is, there are errors I can't get to go away.

    To keep you up to speed I've followed this wiki.
    https://powdertoy.co.uk/Wiki/W/Coding-tutorial.html
    I've followed it very closely and made sure that all my code was correct. All the edited files are still where the were.

    I think, (May be incorrect) that the seed of all my problems so far are these two steps on the wiki to build
    https://powdertoy.co.uk/Wiki/W/Win32_code_setup.html )

    "Press File > New > New Project from Existing Code."
    "Choose the folder from your source code folder."

    Now So far I've tried getting my source from the Facial Turd download and the Source-Required download.
    Also I've tried getting my source directly from PT SOURCE (My mod folder with Facial turd and Source-Required ).
    After following the wikis guide, I come up with two errors on all three ways: 

    1>------ Build started: Project: RANB, Configuration: Release Win32 ------
    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error : Element <FloatingPointModel> has an invalid value of "Precise (/fp:fast)".
    1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147,5): error : Element <WarningLevel> has an invalid value of "Level0 (/W0)".
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Does anyone have any ideas?

    ASLO
    When compiled (F7) it creates 9 files. I need a little help in figuring what each mean.
    Which one do I use to edit?
    (RANB Is the name of the mod)

    Build
    Debug
    ipch
    Release
    RANB.sdf
    RANB.snl
    RANB.vcxproj
    RANB.vcxproj.filters
    RANB.vcxproj.user

    Which makes the .exe?




  • boxmein
    27th Mar 2012 Former Staff 0 Permalink
    Build, Debug are the Visual Studio's working directories. In Debug\ go all the files created by debugging. In Build\ go all the finished files. The .sdf, .snl, .vcxproj, .vcxproj.filters, .vcxproj.user files are the project("Solution") files, they can easily be opened up in VSC++.
  • Wazabi-Bros
    27th Mar 2012 Member 0 Permalink
    @boxmein (View Post)
    How do I stop the error and when all the errors are gone will an exe be created???
  • tian110796
    27th Mar 2012 Member 0 Permalink
    The errors seem to be on the visual c++ configurations, and not on your code. So try reinstalling visual c++.
    When the errors are gone, the .exe would be either in the Debug or Release folder depending on the text shown around the top middle of the visual c++ window
  • boxmein
    27th Mar 2012 Former Staff 0 Permalink
    Basically, people call "creating an executable" compiling. Programs call it "building".
    [](/ajwut)Whoa, the errors point to .NET framework 4.0-s build program's inner DLLs, would you try to reinstall VSC++? (Just in case!)

    (I installed cygwin on my machine with make and all the gcc suite, et cetera, just in case I ever need to "make" a project. You can try with make as well, if you want to, if your source code is correct, then there shouldn't be anything stopping you from trying)

    // Cygwin!
    ~$ cd C:/PowderToy/src/
    ~$ make powder-sse.exe powder-sse2.exe powder-sse3.exe
    // If this works, the output's last words should be "strip powder-"something
    // I got a special error 127, which means there is something missing in build/, but that's another story.
  • Wazabi-Bros
    27th Mar 2012 Member 0 Permalink
    @tian110796 (View Post)
    So Re-Install? Will that delete the files?
  • boxmein
    27th Mar 2012 Former Staff 0 Permalink
    @Wazabi-Bros (View Post)
    Those special files are Visual Studio project files, those just organize the project and keep the linker etc settings for you.
    Re-installing should fix your possibly broken MSBuild installation. Some time before, when I compiled with msbuild, it spawned at least 20 separate MSBuilds which I had to close one by one. My computer slowed down a lot..
    Conclusion: Visual Studio is bugged as hell and you should compile with make.
  • tian110796
    27th Mar 2012 Member 0 Permalink
    @Wazabi-Bros (View Post)
    No, because the project files are not part of the installation.

    Also, try using code::blocks (there is also a tutorial for it in the wiki) as visual c++ is very buggy, like what boxmein said.

  • abczyx123987
    27th Mar 2012 Member 0 Permalink
    @Wazabi-Bros (View Post)
    What happens if you follow the wiki to compile again, except don't touch the options that have to do with warning level or floating point model?
  • Wazabi-Bros
    27th Mar 2012 Member 0 Permalink
    @abczyx123987 (View Post)
    So try compiling again, without touching those values? Ok' Ill post errors if I get any :)