How to build two EXEs using one .dsw file

A

ajay

Hi All,

I want to build two separate EXEs using one .dsw file. That
dsw file will load two different DSPs for two different projects. One
project would use gcc cross compiler but other project would use
standard cl.exe compiler.

These projects will share some header files but *.c file
will be mutually exclusive.
Does anyone know how to do this?

Thanks,
Ajay
 
M

mlimber

         I want to build two separate EXEs using one .dsw file. That
dsw file will load two different DSPs for two different projects. One
project would use gcc cross compiler but other project would use
standard cl.exe compiler.

          These projects will share some header files but *.c file
will be mutually exclusive.
Does anyone know how to do this?

Maybe, but you should direct your question to a Microsoft-specific
newsgroup since it deals with Microsoft specifics (.DSW and .DSP
files). It is off-topic here since it doesn't deal with the C++
language proper. See this FAQ for what is on-topic here and for ideas
about where you might post to get a useful answer:

http://www.parashift.com/c++-faq-lite/how-to-post.html#faq-5.9

Cheers! --M
 
E

Erik Wikström

Hi All,

I want to build two separate EXEs using one .dsw file. That
dsw file will load two different DSPs for two different projects. One
project would use gcc cross compiler but other project would use
standard cl.exe compiler.

These projects will share some header files but *.c file
will be mutually exclusive.
Does anyone know how to do this?

These questions are platform-specific and thus off-topic here, ask in
groups dealing with your compilers (gnu.gcc and microsoft.public.vc.*).

FWIIW if I understand you correctly you are trying to combine two files
produced by two different compilers, which I don't think is possible.
 
R

Ron AF Greve

Hi,

I am not sure if I understand you correctly. But you can have multiple
projects in a Visual C++ project. For instance in my game engine project I
have a (subproject) that builds antlr.exe another subproject builds another
exe. I also even have a custom project that doesn't use cl.exe at all. It
uses my own compiler to create a C++ program that finally compiles to a
library.

Todo:

Open your main dsw file.
In solution explorer right click
Add new project ( or an existing one if you already got one).

Right click on the project and go to the property pages. There you can set
custom build steps. You can then specify mingw for compiler or even your own
compiler as in my case. by specifying dependecies correctly for instance I
have the following setup
antlr.exe is compiled (in the unlikely case it needs recompilation)
antlr.exe compiles my parser into an .cpp and .hpp files
those files are compiled with addtional sources into a windows executable
The windows executable compiles my gaming language file in to a C++ file

The result is compiled with the rest of the sources in something that
hopefully someday is a finished game :)


Good luck

Regards, Ron AF Greve

http://www.InformationSuperHighway.eu
 
R

red floyd

[redacted]

Ron, I understand that you're trying to be helpful by answering this
sort of stuff, but it is definitely OT here, and it lowers the S/N
ratio. By (politely -- and sometimes I forget that part) directing
someone to a newsgroup where it's more on-topic, the S/N is maintained
at a higher level.
 
A

ajay

Thanks all for your advice...
I am positng my query on Visual Studio specific group...

Regards,
Ajay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top