Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Visual C++ 2008- Can't compile for release  (Read 3064 times)

0 Members and 1 Guest are viewing this topic.

Kulade

  • Newbie
  • *
  • Posts: 8
    • View Profile
Visual C++ 2008- Can't compile for release
« on: April 02, 2011, 04:40:55 am »
Hey, everyone.

My programs won't work outside of debug mode. Here's what happens:

I manage to compile the program, then I go to its folder to test it. I've gotten what I think are Buffer Overruns before, but now I just get this:



and it crashes. It shouldn't have those wierd I's.


This is what I did:

1. I used the code from the "graphics-window" project.
2.I change the Additional Dependencies so that I can compile the program for release. I make sure to check these, since everywhere I've looked, someone said that was the problem, but I'm not mixing the debug and release libraries.

3.I go to [Build]->Build (project name) and wait for everything to compile. It compiles fine, with a warning.
Code: [Select]
1>------ Rebuild All started: Project: Rainfall3, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'Rainfall3', configuration 'Debug|Win32'
1>Compiling...
1>Main.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Embedding manifest...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Build log was saved at "file://c:\Users\Mike\Documents\Visual Studio 2008\Projects\Rainfall3\Rainfall3\Debug\BuildLog.htm"
1>Rainfall3 - 0 error(s), 1 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

4. I run the program and it goes wonky.

Any help is appreciated!

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Visual C++ 2008- Can't compile for release
« Reply #1 on: April 02, 2011, 09:12:07 am »
Is the second screenshot correct? You're trying to compile in Release but in the screenshot, the active configuration you're changing is Debug (Top-Left corner).

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Visual C++ 2008- Can't compile for release
« Reply #2 on: April 02, 2011, 09:25:48 am »
It's definitely Debug
Quote
1>------ Rebuild All started: Project: Rainfall3, Configuration: Debug Win32 ------
Laurent Gomila - SFML developer

Kulade

  • Newbie
  • *
  • Posts: 8
    • View Profile
Visual C++ 2008- Can't compile for release
« Reply #3 on: April 02, 2011, 03:16:52 pm »
Quote from: "Contadotempo"
Is the second screenshot correct? You're trying to compile in Release but in the screenshot, the active configuration you're changing is Debug (Top-Left corner).


Thank you so much; I never would've spotted that. I had to use the Configuration Manager to change it, but now it's Active(Release) and it works fine! Thanks again!

 

anything