LMMS - Linux MultiMedia Studio Computer Accessories MN1278 Benutzerhandbuch

Seite von 88
Using the Library with Various Languages 
  
MN1278  05.2001
  
11
 
File Controller 
nmbase.cpp NextMove 
PC 
nmstd.cpp NextMove 
PC 
precomp.cpp All 
serial.cpp All 
Serial 
syncronisation.cpp All 
uncompress.cpp All 
 
3.1.2 
Pre-Compiled Headers in Visual C++ 6.0. 
In order to speed up compilation of C++ projects using C++, the Mint Interface Library files precomp.cpp and 
precomp.h can be used.  This has been found to reduce build times by up to 85% so although not required are 
worth using.  To use precompiled headers, include precomp.h at the top of each source file.  Then include 
precomp.cpp in the project and set it to create the pre-compiled header file.  The following sections go into more 
detail on how to set up precompiled header files in the supported compilers. 
To use pre-compiled headers with a Visual C++ project. 
1. Make 
sure 
precomp.cpp is included in the project. 
2.  If  the project was generated by the App Wizard, it will have created a file called stdafx.cpp to create the 
precompiled header file.  As precomp.cpp replaces stdafx.cpp, delete stdafx.cpp from the project. 
3. If 
stdafx.cpp was NOT deleted in the previous step proceed to step 6. 
4.  Replace all instances of #include “stdafx.h” with #include “precomp.h”
5. In 
the 
Project menu, select Settings.  This will open the ‘Project Settings’ dialog.  Select the C/C++ tab.  In 
the Category drop-down, select General. Select All Configurations in Settings For: on the left.  In the 
Preprocessor definitions: field, add _INC_STDAFX_H_ separating it from the preceding text with a comma.  
This causes precomp.h to include the files previously included by stdafx.h.  stdafx.h can still be edited to add 
more files to the precompiled header as required.  The dialog should now look similar to the screen shot 
below.  Press OK to store these changes.  Now proceed to step 7.