![]() |
Creating a Precompiled Source File
Hey, does anyone know how to create and use precompiled C++ source code in Microsoft Visual Studio 2005? I have a class that I like and would like to not have to hunt it down and bring the source with my every time I want to use it. From my understanding this is the same technique most compiler manufactures use to hide/make more efficient the code to things such as the istream and ostream classes and things of the sort. What I mean is all I would have to do is include the header file for the class, like the iostream header file, and I wouldn't have to mess the source code every time I use the class.
Thanks |
Re: Creating a Precompiled Source File
>>Hey, does anyone know how to create and use precompiled C++ source code in Microsoft Visual Studio 2005?
Yes, use them all the time. They are the default. But they don't do what you are asking. What you want to do is to create either a DLL or a static library. Then in the header file you create for it you can use a paragma to force inclusion of the *.lib file. |
Re: Creating a Precompiled Source File
Maybe I should start a new thread...
Thanks BTW! |
Re: Creating a Precompiled Source File
Quote:
|
Re: Creating a Precompiled Source File
Different topic, a new thread might attract people who know a lot about creating libraries but not precompiled code.:)
|
Re: Creating a Precompiled Source File
Quote:
|
Re: Creating a Precompiled Source File
Quote:
|
Re: Creating a Precompiled Source File
Quote:
|
| All times are GMT -5. The time now is 3:18 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC