473,322 Members | 1,523 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,322 software developers and data experts.

How to build two EXEs using one .dsw file

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
Aug 4 '08 #1
5 2198
On Aug 4, 8:04*am, ajay <erajaysha...@gmail.comwrote:
* * * * *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-lit...t.html#faq-5.9

Cheers! --M
Aug 4 '08 #2
On 2008-08-04 14:04, ajay wrote:
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.

--
Erik Wikström
Aug 4 '08 #3
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

"ajay" <er**********@gmail.comwrote in message
news:67**********************************@w39g2000 prb.googlegroups.com...
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

Aug 4 '08 #4
On Aug 4, 9:37*am, "Ron AF Greve" <ron@localhostwrote:
[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.
Aug 4 '08 #5
Thanks all for your advice...
I am positng my query on Visual Studio specific group...

Regards,
Ajay
Aug 5 '08 #6

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

Similar topics

6
by: Jon | last post by:
I have 3 VB.net executables that reference the same 3 VB.Net DLLs. How is the best way to distribute the EXEs without putting 3 copies of of DLL on a user's machine. I looked into Private...
1
by: James | last post by:
I'm having a problem using the System.Net.WebClient to download .exes from a web server. I'm testing everything on localhost, and the same code works fine with all other types of file. I even tried...
8
by: Mav | last post by:
Hi, all I wonder is that any way to estimate the build time from VS.net(C++ project). We have a lot of projects(40) under one single solution. We use the command line (devenv.exe...
5
by: cameron | last post by:
Is it possible to get the build date, (not the version), of a dll? -Cam
2
by: isamusetu | last post by:
Hello, I have a question. I have a big project, and all the modules are over 100, some of dll was referenced by most of the modules (dll, exe) When one EXE call a DLL, if some functions in the DLL...
2
by: Benny | last post by:
If you rebuild a solution without change anything, the new generated EXEs still has some difference. Is there a way to find out whether two EXEs are functional same?
35
by: Brett Romero | last post by:
I'm using MSBUILD to build release and debug versions of a winform project (VS.NET 2005). The project file has conditionals to file reference DLLs depending on the build configuration (debug or...
0
by: =?Utf-8?B?QmV0aA==?= | last post by:
Hi. I'm trying to provide information about compile-time options at runtime, including the build configuration. I saw in one post that if you set the DEBUG constant, you could rely on it to...
1
by: pavanip | last post by:
Hi, I have one windows application in that i created multiple exes.Now I am trying to build my application and combine multiple exes to one exe.But i am unable to that can you tell me the...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.