hi,
i'm using vc++ 2008 express edition to build my small exercises projects, building solution ok, no errors no warns, my problem started after i tried build my project, , the problem is the path of .exe project application, vc++ create it in path " D:\", although my folder "release" is inside my project folder, how can i change the build output path to the release folder ?

i hope guide me
regards
MFA

Dani AI

Generated

As reported, the executable ending up at the root of D: while the project has a Release folder usually means something in the project is overriding the normal output location. was right to point at the properties dialog; the next step is to look deeper for overrides that the simple General page can miss.

Check these specific places (in the Release configuration): the Linker -> General -> Output File (an absolute path here will put the EXE exactly where it names), Build Events -> Post-Build Event (commands that copy the target to another drive), and any imported property sheets (.vsprops/.props) visible in the Property Manager. Search the project files (.vcproj, .sln, .user) for literal occurrences of D: or D:\ to find hidden overrides. Also confirm the Properties window is editing the Release configuration and the correct platform (Win32/x64), since edits to the wrong configuration have no effect on the active build.

To force the Release folder explicitly, set the output to a macro-based path such as:

$(ProjectDir)Release\$(TargetName)$(TargetExt)

or more generally:

$(ProjectDir)$(Configuration)\$(TargetName)$(TargetExt)

Avoid using drive-relative strings like D: (without the backslash), since D: can be interpreted as a drive-relative path and produce confusing results; use D:\ if an absolute location is intended.

Finally, confirm where the linker actually placed the file by examining the Build Output window after a rebuild: the linker line shows the full path of the generated executable, and any post-build copy commands will also be visible there. If Indielib or a sample project supplied with it was used, those project templates sometimes include post-build steps or property sheets that redirect outputs; check for those as well.

Recommended Answers

All 6 Replies

With your project open, use menu Project | Properties, Configuration Properties, General. There you should see the path for the Release execuatable ( .\Release). If it's not that, set it to be so.

i do, but nothing changed, i forgot tell u that i'm using indielib library, i'm not using pure vc++, i'm using indielib, indielib is game graphics engine, is that may the problem

According to indielib's wiki, you should still find the executable in a Release subfolder of your project.

What happens if you try to run the project from VC++ ( Debug | Start without debugging)? Does it execute?

yes, executed

Then your executable must be in the folder where the project properties says it is.

Perhaps you could attach a screenshot of the Properties dialog showing the path?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.