![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Call me Chuck
|
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 |
|
|
|
|
|
#2 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 545
Rep Power: 4
![]() |
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. |
|
|
|
|
|
#3 |
|
Call me Chuck
|
Re: Creating a Precompiled Source File
Maybe I should start a new thread...
Thanks BTW! |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Oct 2007
Posts: 39
Rep Power: 0
![]() |
Re: Creating a Precompiled Source File
|
|
|
|
|
|
#5 |
|
Call me Chuck
|
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.
![]() |
|
|
|
|
|
#6 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 545
Rep Power: 4
![]() |
Re: Creating a Precompiled Source File
|
|
|
|
|
|
#7 |
|
Programmer
Join Date: Oct 2007
Posts: 39
Rep Power: 0
![]() |
Re: Creating a Precompiled Source File
|
|
|
|
|
|
#8 |
|
Call me Chuck
|
Re: Creating a Precompiled Source File
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating enxecutble file? | Evil Genius | C | 2 | Dec 24th, 2006 12:14 PM |
| Creating a file downloader | LOI Kratong | C++ | 19 | Jul 3rd, 2006 7:53 PM |
| More than one source file | Klipt | C++ | 12 | Dec 8th, 2005 4:09 PM |
| Creating a new data file | JavaDummy | Java | 3 | Jun 27th, 2005 11:56 AM |
| After execution - Error cannot locate /Skin File? | wchar | Visual Basic | 1 | Mar 5th, 2005 9:04 PM |