Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / May 2004

Tip: Looking for answers? Try searching our database.

default build configurations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pete H - 27 May 2004 18:36 GMT
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
Fakher Halim - 28 May 2004 00:45 GMT
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"ConsoleWin321 - 1
error(s), 0 warning(s)"Creating temporary file
"f:\Edixml\Dev\ConsoleWin321\Debug\RSP000005.rsp" 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.rsp"
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"
> 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
Fakher Halim - 28 May 2004 08:09 GMT
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!

> 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
[quoted text clipped - 36 lines]
> > --
> > Pete H
Thobias Jones - 28 May 2004 15:10 GMT
> 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
Fakher Halim - 28 May 2004 18:22 GMT
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

> > 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
[quoted text clipped - 20 lines]
>
> Thobias Jones

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.