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

Altering location of .ilk file

Hi,

Is there any way to alter the location where this incremental link
information file is placed? It is always placed in the same location
as the generated .exe file, but I like to keep such 'intermediate'
files separate from my output files.

I've altered $IntDir, but this has no effect on the .ilk file.

Apr 30 '06 #1
4 2781
I'm using Visual C++ 2005 Express Edition :)

Apr 30 '06 #2
> I'm using Visual C++ 2005 Express Edition :)


There does not seem to be a way to do so. I have created a test project,
then manually pointed the output file itself to c:\temp\application.exe.
after a rebuild, the ilk file was also in c:\temp

there is a simple workaround though: set the output folder to the same
location as the intermediate directory. then create a post-build step to
explicitly copy the output files that you want to keep to the 'real' output
dir.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
May 1 '06 #3
Good thinking Bruno. It seems to work.

I'm using

xcopy "$(OutDir)\*.exe" "$(SolutionDir)bin\" /Y
del "$(OutDir)\*.exe"

Where $(OutDir) points to $(SolutionDir)ilk

(The /Y says to overwrite the destination file if it already exists.)

The only problem is that Visual C++ rebuilds the exe file every time I
tell it to build, even though I haven't made any changes.

If I don't use the 'del' command on the 2nd line, then Visual C++ can't
tell if I've deleted the exe file in the bin directory, which isn't
brilliant either.

Any further ideas?

May 1 '06 #4
> The only problem is that Visual C++ rebuilds the exe file every time I
tell it to build, even though I haven't made any changes.

If I don't use the 'del' command on the 2nd line, then Visual C++ can't
tell if I've deleted the exe file in the bin directory, which isn't
brilliant either.


why would you need to delete the exe anyway?
it shouldn't be a problem that it is both in outdir and in solutiondir\bin?

anyway, if there is a file copy problem, maybe you can add a pre-build step
to delete the output files in outdir.
that way they will be gone when the post-build step is executed.

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
May 1 '06 #5

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

Similar topics

9
by: wordsender | last post by:
Hey guys, I can't figure this one out, why is this simple script giving me problems? logfile=file(r'test.txt','w') logfile.write('datetime') test=logfile.readlines() When I run it I get...
0
by: SeanR | last post by:
I have a function to copare two files. It will first copy the original file form a different server to a local temp path and then compare that version to a version that has been restored form tape....
1
by: William Starr Moake | last post by:
Another problem with the browser-based WYSIWYG editor I'm trying to assemble using IE's design mode. This opens the selected page in the editor iframe named iView: <select name="template"...
3
by: Jenny | last post by:
Hi, I want to use a button to display a pdf file. I have Windows 2000 server, IE 6 and Acrobat 7 with plug-in. I can use <a> link to display it. I search this group for js code but they...
14
by: Stingray | last post by:
I think this is more of a general IE/HTTP question but I didn't know where to post. If this is not the place for it, please point me to the right group. Thanks. Here's my question: I have an...
2
by: itmanager8815 | last post by:
I had a question regarding the use of document.location. I have the following script: <HTML> <BODY> <SCRIPT LANGUAGE=JAVASCRIPT> window.status=''; ...
0
by: pornpavee | last post by:
Hi, I have a link in the frontpage define as: <td class="head3btn" onclick="javascript: window.location='/BudgetByBrand.do?level=1'">By Brand</td> In servlet.xml, <bean...
4
by: MarkKM | last post by:
Hello, I'm having troubles with IE7 and the window.location function in an SVG file. This all works fine in IE6 using the Adobe SVG viewer but not in IE7, WHY? Please HELP! We use IE in Kiosk...
0
by: coopdog | last post by:
This is a new issue as of an install to sp1 on vb express 2005. When I publish the application to my drive then I try to install it is wants to be installed from the same location as it was...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.