Re: Why NOT to link using pragma comment (lib, libname)
- From: "Ajay Kalra" <ajaykalra@xxxxxxxxx>
- Date: 12 Sep 2006 21:22:05 -0700
David Ching wrote:
"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message
news:1158107014.872169.96080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Let me repeat it strongly: It has no purpose other than decoration in a
real software environment.
I think you are always thinking of a linking to a 3rd party library.
Thats not how most projects are done. There are 3rd party libraries,
but these are almost negligible in comparison with in house libraries.
I cant think of *any* scenario in the projects/companies I have worked
in (7-8 jobs, 20 years) that this is meaningful.
What if I am inhouse developer and project links against my library. My
library is at the bottom of the food chain but not totally at the
bottom.. It hardly changes and people use Pragmas(fictitious). Now when
I change something for the library, I am forced to "Rebuild All" as I
have no clue who my clients can be. This nightmare will take around >
28 hours of build time. Completely meaningless to me as a stable
library developer.
Why do you have to Rebuild All because you have "no idea who your clients
will be"? You do a Rebuild All because YOUR dependencies have changed.
But you dont need a Rebuild ALL. It may be only 4 out of 40 projects
need building. Why is rebuilding all necessary?
Whoever uses your deliverables does not affect when you do a Rebuild All.
Yes. But why should I have to do Rebuild all if only one of projects
requires building?
And if a Rebuild All takes 28 hours, you have bigger problems than simply
Not really. Thats part of life. 28 hours is a conservative estimate
when done using distributed builds. I spoke to MSFT about this few
years ago. VS2005 compilation was on the same lines as far as time is
concerned.
Do you use precompiled
headers?
Of course.
Have you investigated distributed build systems like Incredibuild?
Yes. I thought it was cool. Compilation time for one of the projects
went down from around 6 hours to 25 mins or so with around 10
Incredibuild clients.
There are other issues as well and some really bad mistakes on MSFT
part. With VC6 you could copy .pch/obj files across computers without a
problem. In VC2003, it was broken. IOW, you must compile all files on
the same computer for debug to work. It was a nightmare. We contacted
MSFT and they did acknowledge it. (I have since moved on from that job
after spending 7 years of gaining very valuable experience.)
---
Ajay
.
- Follow-Ups:
- Re: Why NOT to link using pragma comment (lib, libname)
- From: David Ching
- Re: Why NOT to link using pragma comment (lib, libname)
- References:
- Re: Why NOT to link using pragma comment (lib, libname)
- From: Ajay Kalra
- Re: Why NOT to link using pragma comment (lib, libname)
- From: David Ching
- Re: Why NOT to link using pragma comment (lib, libname)
- From: Ajay Kalra
- Re: Why NOT to link using pragma comment (lib, libname)
- From: David Ching
- Re: Why NOT to link using pragma comment (lib, libname)
- From: Ajay Kalra
- Re: Why NOT to link using pragma comment (lib, libname)
- From: David Ching
- Re: Why NOT to link using pragma comment (lib, libname)
- From: Ajay Kalra
- Re: Why NOT to link using pragma comment (lib, libname)
- From: David Ching
- Re: Why NOT to link using pragma comment (lib, libname)
- Prev by Date: Turning Clear Type font smoothing off
- Next by Date: Re: Tile windows
- Previous by thread: Re: Why NOT to link using pragma comment (lib, libname)
- Next by thread: Re: Why NOT to link using pragma comment (lib, libname)
- Index(es):
Relevant Pages
|