473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

default build configurations

I would like to have my new C++ projects start out with two configurations, UnicodeDebug and UnicodeRelease, instead of the standard Debug and Release configurations that Visual Studio always creates. Is there a way to configure Visual Studio to do this

Thanks in advance

-
Pete H
Nov 17 '05 #1
4 2523
HI,I have been using C# with .NET for years, and before that used C++ in VS6
C++ without any problems.When I tried C++ in VS.NET the default build always
fails. It doesn't tell what happened, just creates HTML file.I need to know
how to troubleshoot it, where is the log. The so called RSP000005.rsp is the
command, not the output.Task list is blank!It works perfectly fine from
command line, e.g. cl.exe /Zi /clr HelloVC.cpp.I need to know why the VS.NET
adds dozens of step for just HelloWorld Application, and how to make it just
use "/Zi /clr" that work.Here is the cryptic log: (By the way it even
deletes the RSP000005.rsp file, and there is no error except"Build log was
saved at
"file://f:\Edixml\Dev\ConsoleWin321\Debug\BuildLog.htm"Con soleWin321 - 1
error(s), 0 warning(s)"Creating temporary file
"f:\Edixml\Dev\ConsoleWin321\Debug\RSP000005.r sp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
/Yu"stdafx.h" /Fp"Debug/ConsoleWin321.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb"
/W3 /c /Wp64 /ZI /TP
..\ConsoleWin321.cpp
]
Creating command line "cl.exe
@f:\Edixml\Dev\ConsoleWin321\Debug\RSP000005.rsp /nologo"
Creating temporary file "f:\Edixml\Dev\ConsoleWin321\Debug\RSP000006.r sp"
with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
/Yc"stdafx.h" /Fp"Debug/ConsoleWin321.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb"
/W3 /c /Wp64 /ZI /TP
..\stdafx.cpp
]
Creating command line "cl.exe
@f:\Edixml\Dev\ConsoleWin321\Debug\RSP000006.rsp /nologo"
"Pete H" <an*******@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
I would like to have my new C++ projects start out with two configurations, UnicodeDebug and UnicodeRelease, instead of the standard
Debug and Release configurations that Visual Studio always creates. Is
there a way to configure Visual Studio to do this?
Thanks in advance.

--
Pete H

Nov 17 '05 #2
I figured out! It is the environment variables that were not setup properly
by VS.NET
I had to run: "E:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat" before starting the devenv

Thanks anyway!

"Fakher Halim" <fa****@msn.com> wrote in message
news:ut*************@TK2MSFTNGP09.phx.gbl...
HI,I have been using C# with .NET for years, and before that used C++ in VS6 C++ without any problems.When I tried C++ in VS.NET the default build always fails. It doesn't tell what happened, just creates HTML file.I need to know how to troubleshoot it, where is the log. The so called RSP000005.rsp is the command, not the output.Task list is blank!It works perfectly fine from
command line, e.g. cl.exe /Zi /clr HelloVC.cpp.I need to know why the VS.NET adds dozens of step for just HelloWorld Application, and how to make it just use "/Zi /clr" that work.Here is the cryptic log: (By the way it even
deletes the RSP000005.rsp file, and there is no error except"Build log was
saved at
"file://f:\Edixml\Dev\ConsoleWin321\Debug\BuildLog.htm"Con soleWin321 - 1
error(s), 0 warning(s)"Creating temporary file
"f:\Edixml\Dev\ConsoleWin321\Debug\RSP000005.r sp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
/Yu"stdafx.h" /Fp"Debug/ConsoleWin321.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb"
/W3 /c /Wp64 /ZI /TP
.\ConsoleWin321.cpp
]
Creating command line "cl.exe
@f:\Edixml\Dev\ConsoleWin321\Debug\RSP000005.rsp /nologo"
Creating temporary file "f:\Edixml\Dev\ConsoleWin321\Debug\RSP000006.r sp"
with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
/Yc"stdafx.h" /Fp"Debug/ConsoleWin321.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb"
/W3 /c /Wp64 /ZI /TP
.\stdafx.cpp
]
Creating command line "cl.exe
@f:\Edixml\Dev\ConsoleWin321\Debug\RSP000006.rsp /nologo"
"Pete H" <an*******@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
I would like to have my new C++ projects start out with two

configurations, UnicodeDebug and UnicodeRelease, instead of the standard
Debug and Release configurations that Visual Studio always creates. Is
there a way to configure Visual Studio to do this?

Thanks in advance.

--
Pete H


Nov 17 '05 #3
> command line, e.g. cl.exe /Zi /clr HelloVC.cpp.I need to know why the VS.NET
adds dozens of step for just HelloWorld Application, and how to make it just
use "/Zi /clr" that work.Here is the cryptic log: (By the way it even


I don't have an answer for the rest of your problem, but there is a
reason why there are extra command line switches by default. Most
applications are a bit larger than "Hello World" and Visual Studio will
sets up a default environment that is more appropriate for those larger
apps. This means turning on specific optimizations, and other features
that are more likely to be needed.

You can probably wittle your options down to /Zi /clr. In the
Configuration Properties, you can toggle on/off most of the switches and
parameters. In the "Command Line" section, it will list all of the
options that the IDE will send to the compiler, and you can use this
list to verify that what options you want on are actually on and vice-versa.

It sounds like your program itself is correct, but there doesn't seem to
be enough information to troubleshoot. You can check the BuildLog.htm
file that is output in your Debug or Release folder for clues (indeed
part of it is pasted in your message). You might also check that the
linker is outputting the file to the location you expect.

Thobias Jones
Nov 17 '05 #4
Thobias,
Thanks for your help. The reason I figured is simple: ENVIRONMENT VARIABLES
were not correctly setup by the VS.NET 2003 installer. I have to run:
"E:\Program Files\Microsoft Visual Studio .NET
2003\Common7\Tools\vsvars32.bat" before starting the devenv from the shell.
If I start VS.NET without that setup (each time), it would just fail.
Actually I pasted complete BuildLog.htm. It only tells what action were
taken by VS.NET, not what the outcome of those action. It is not logged
anywhere. To make it even more difficult do diagnose is that fact that it
just blows those temporary .rsp files. Of course if I manually feed all the
environment variables those are modified by vsvars32.bat into Windows 2000
(pain to work), it would work fine. But I thought that was the job of VS
installer. I tried to remove the whole VC++, reboot, and the reinstall; but
it never does its job. May be there is a less painful VC++.NET environment
variable option used not known to me. Please let me know if there is one.
Thanks for you reply, Thobias!!

Fakher Halim
"Thobias Jones" <tjones@no_spam.humanhead.com> wrote in message
news:40B7484E.4010707@no_spam.humanhead.com...
command line, e.g. cl.exe /Zi /clr HelloVC.cpp.I need to know why the VS.NET adds dozens of step for just HelloWorld Application, and how to make it just use "/Zi /clr" that work.Here is the cryptic log: (By the way it even
I don't have an answer for the rest of your problem, but there is a
reason why there are extra command line switches by default. Most
applications are a bit larger than "Hello World" and Visual Studio will
sets up a default environment that is more appropriate for those larger
apps. This means turning on specific optimizations, and other features
that are more likely to be needed.

You can probably wittle your options down to /Zi /clr. In the
Configuration Properties, you can toggle on/off most of the switches and
parameters. In the "Command Line" section, it will list all of the
options that the IDE will send to the compiler, and you can use this
list to verify that what options you want on are actually on and

vice-versa.
It sounds like your program itself is correct, but there doesn't seem to
be enough information to troubleshoot. You can check the BuildLog.htm
file that is output in your Debug or Release folder for clues (indeed
part of it is pasted in your message). You might also check that the
linker is outputting the file to the location you expect.

Thobias Jones

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: ted | last post by:
How does the speed of the Scons build tool compare with Ant? Right now with out Ant builds take around an hour. Hoping to speed that up. TIA, Ted
10
by: Bil Muh | last post by:
Hello Developers, I use VC++ .NET v2003. By using Windows Forms .NET, I am developing an application which will work with TCP/IP functions. I can Build my application in Debug Mode normally, but,...
2
by: n_o_s_p_a__m | last post by:
Hi, I want to include a different app.config in the release vs. the debug build. How can this be done?
0
by: Andrew Burlak | last post by:
Hi, Anyone knows if it is possible to specify default settings for newly added ..CPP files? My specific problem is that the project contains several configurations. And in a specific...
6
by: Marco Zapletal | last post by:
hi list, i have an c# project, which contains some additional classes (nunit testclasses), which are not needed in a release build? is it possible to exclude them in the release build process? ...
5
by: Rob R. Ainscough | last post by:
I have a moderately sized web application (30 pages, and 20 DLLs) that takes 10-20 minutes to "Build Solution" after I do a "Clean Solution" -- this is ONLY apparent after a "Clean Solution" I...
5
by: graham.king | last post by:
Hi, I was wondering if it is possible to build all projects in a VS.net solution from the command line without having to open the solution and tick every project in the configuration manage? ...
0
by: spam | last post by:
Ok i have a solution which contains a exe and a dll. The exe references the dll via project references. I build the solution in release mode. In the release folder I can see the dll and exe built....
28
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, I am developing C++ COM native code (unmanaged C++) using Visual Studio 2005. I do not take any new features of 64-bit platform, and currently my code runs fine on 32-bit...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.