By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,254 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

Batch build fail while standard build succeds

P: n/a
I have a mixed solution -most of its projects are in C# and some are in
C++?MFC.
Problem is that when I compile the solution with batch build the MFC files
end up wit compilation errors, but if I compile them personally everything
is OK.
One more note- the MFC project is independent on any other project.
Can some advise please?
Regards
Ronny
Nov 2 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a

"Ronny" <ro***@giron.comwrote in message
news:Ov**************@TK2MSFTNGP03.phx.gbl...
>I have a mixed solution -most of its projects are in C# and some are in
C++?MFC.
Problem is that when I compile the solution with batch build the MFC files
end up wit compilation errors, but if I compile them personally everything
is OK.
One more note- the MFC project is independent on any other project.
Can some advise please?
Regards
Ronny

Interesting combination :-)
I'll assume you've already considered and rejected the possibility of
converting the MFC projects to C# or C++/CLI.
Given that your issues are on the MFC side, I'd consider crossposting your
question to:

microsoft.public.vc.mfc

and including details such as the pertinent sections of the batch files and
quotes of the error messages received.

Nov 2 '08 #2

P: n/a
I work with a solution which contains over 85 projects and around half
of them are in VC++ with MFC, some are in C# and there are few web
service. We always build it from the command line for the releases. It
never gave any problem.

*Can you post the command line that you used for build?*

PvdG42 wrote:
>
"Ronny" <ro***@giron.comwrote in message
news:Ov**************@TK2MSFTNGP03.phx.gbl...
>I have a mixed solution -most of its projects are in C# and some are in
C++?MFC.
Problem is that when I compile the solution with batch build the MFC
files
end up wit compilation errors, but if I compile them personally
everything
is OK.
One more note- the MFC project is independent on any other project.
Can some advise please?
Regards
Ronny

Interesting combination :-)
I'll assume you've already considered and rejected the possibility of
converting the MFC projects to C# or C++/CLI.
Given that your issues are on the MFC side, I'd consider crossposting
your question to:

microsoft.public.vc.mfc

and including details such as the pertinent sections of the batch
files and quotes of the error messages received.

Nov 2 '08 #3

P: n/a
Thanks Mr. Bhawasinka,
Following is the attached command from the VS2005.
Does that help?
Regards
Ronny

/Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_USRDLL" /D "WPCAP" /D "HAVE_REMOTE" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MTd /Yu"stdafx.h" /Fp"Debug\DllPcap.pch" /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:prompt
"Ashutosh Bhawasinka" <di********@ashutosh.inwrote in message news:%2****************@TK2MSFTNGP05.phx.gbl...
I work with a solution which contains over 85 projects and around half of them are in VC++ with MFC, some are in C# and there are few web service. We always build it from the command line for the releases. It never gave any problem.

Can you post the command line that you used for build?

PvdG42 wrote:

"Ronny" <ro***@giron.comwrote in message news:Ov**************@TK2MSFTNGP03.phx.gbl...

I have a mixed solution -most of its projects are in C# and some are in
C++?MFC.
Problem is that when I compile the solution with batch build the MFC files
end up wit compilation errors, but if I compile them personally everything
is OK.
One more note- the MFC project is independent on any other project.
Can some advise please?
Regards
Ronny

Interesting combination :-)
I'll assume you've already considered and rejected the possibility of converting the MFC projects to C# or C++/CLI.
Given that your issues are on the MFC side, I'd consider crossposting your question to:

microsoft.public.vc.mfc

and including details such as the pertinent sections of the batch files and quotes of the error messages received.

Nov 2 '08 #4

P: n/a
Why are you building your application like this??? You should use devenv
command lines to build your entire solution.

First of all, make sure you can build your full solutions at once (not
individual projects) from the IDE in both Release and debug (solution
configuration) mode. Then use *devenv *to build your entire solution,
specifying your build configuration.

NOTE: Don't get confused with solution configuration (release/debug) and
project level configuration. For a solution configuration you can select
which project level configuration to use.

Thanks & Regards,
Ashutosh

Ronny wrote:
Thanks Mr. Bhawasinka,
Following is the attached command from the VS2005.
Does that help?
Regards
Ronny

/Od /D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_USRDLL" /D "WPCAP" /D
"HAVE_REMOTE" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1
/MTd /Yu"stdafx.h" /Fp"Debug\DllPcap.pch" /Fo"Debug\\"
/Fd"Debug\vc80.pdb" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:prompt

"Ashutosh Bhawasinka" <di********@ashutosh.in
<mailto:di********@ashutosh.in>wrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
I work with a solution which contains over 85 projects and around
half of them are in VC++ with MFC, some are in C# and there are
few web service. We always build it from the command line for the
releases. It never gave any problem.

*Can you post the command line that you used for build?*

PvdG42 wrote:
>>
"Ronny" <ro***@giron.comwrote in message
news:Ov**************@TK2MSFTNGP03.phx.gbl...
>> I have a mixed solution -most of its projects are in C# and some
are in
C++?MFC.
Problem is that when I compile the solution with batch build the
MFC files
end up wit compilation errors, but if I compile them personally
everything
is OK.
One more note- the MFC project is independent on any other project.
Can some advise please?
Regards
Ronny

Interesting combination :-)
I'll assume you've already considered and rejected the
possibility of converting the MFC projects to C# or C++/CLI.
Given that your issues are on the MFC side, I'd consider
crossposting your question to:

microsoft.public.vc.mfc

and including details such as the pertinent sections of the batch
files and quotes of the error messages received.
Nov 3 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.