Changeset 26339

Show
Ignore:
Timestamp:
2007-02-04 15:56:47 (4 years ago)
Author:
res2002
Message:

Made a few tweaks to the VC compile faq.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • CS/trunk/docs/texinfo/build/platform/win32/msvc/msvc7.txi

    r26160 r26339  
    218218the project. 
    219219 
    220 @subsubheading Compilation 
    221  
    222 @itemize @bullet 
     220@subsubheading Building 
     221 
     222@itemize @bullet 
     223@item 
     224Q1. @emph{I'm using the Visual C++ 2005 Express Edition and I get a lot of  
     225``file not found'' errors for @file{windef.h} and others. What is wrong?} 
     226Q2. @emph{I'm using the Visual C++ 2005 Express Edition and I get a lot of  
     227``unresolved symbol'' errors for names like  
     228@code{SHGetSpecialFolderLocation@@12}. What is wrong?} 
     229 
     230A. These errors indicate a lacking or an incomplete installation of the  
     231Platform SDK. Exactly follow the instructions given on Microsoft's  
     232``Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK''  
     233page: 
     234@ifnottex 
     235@uref{http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/} 
     236@end ifnottex 
     237@iftex 
     238@code{http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/} 
     239@end iftex 
     240Also, the instructions don't say that, but if you have Visual C++ open while  
     241applying those changes you need to restart it.  
     242 
    223243@item  
    224244Q. @emph{I get "Errors in post link" and later "file not found" errors.} 
     
    237257compile it yourself if you prefer.  @xref{External Libraries}. 
    238258 
    239 The resources from these packages should be placed in the following locations. 
     259@item 
     260Q. @emph{Where are the files @file{libpng.lib} and @file{zlib.lib}?} 
     261 
     262A. Just look above at the question about @file{zlib.h} and @file{png.h}. 
     263It's the same problem, and if you have already done what is explained there, 
     264I can't do much for you! 
     265 
     266@item 
     267Q. @emph{I've got unresolved symbols.} 
     268 
     269A. What kind of symbols? 
     270 
     271@itemize @minus 
     272@item 
     273@samp{_png_@dots{}}: That means that you don't link the project with 
     274@file{libpng.lib}.  Just take a look below where it is explained how to do so. 
     275 
     276@item 
     277@samp{_inflate@dots{}} and @samp{_deflate@dots{}}: Well, it seems to your 
     278project lacks @file{zlib.lib}.  The trick is explained just below, so hang on. 
     279 
     280@item 
     281@samp{_DirectDraw@dots{}}: Same as above, but for @file{ddraw.lib} (DirectX 
     282component), look below. 
    240283 
    241284@item 
     
    253296A. Turning off precompiled headers tends to save a large amount of file space 
    254297while increasing build times somewhat. 
    255 @end itemize 
    256  
    257 @subsubheading Linking 
    258  
    259 @itemize @bullet 
    260 @item 
    261 Q. @emph{Where are the files @file{libpng.lib} and @file{zlib.lib}?} 
    262  
    263 A. Just look above at the question about @file{zlib.h} and @file{png.h}. 
    264 It's the same problem, and if you have already done what is explained there, 
    265 I can't do much for you! 
    266  
    267 @item 
    268 Q. @emph{I've got unresolved symbols.} 
    269  
    270 A. What kind of symbols? 
    271  
    272 @itemize @minus 
    273 @item 
    274 @samp{_png_@dots{}}: That means that you don't link the project with 
    275 @file{libpng.lib}.  Just take a look below where it is explained how to do so. 
    276  
    277 @item 
    278 @samp{_inflate@dots{}} and @samp{_deflate@dots{}}: Well, it seems to your 
    279 project lacks @file{zlib.lib}.  The trick is explained just below, so hang on. 
    280  
    281 @item 
    282 @samp{_DirectDraw@dots{}}: Same as above, but for @file{ddraw.lib} (DirectX 
    283 component), look below. 
    284  
    285 @item 
    286 Any others: Well, I always have a solution, but this one is more difficult.  It 
    287 seems that there is a missing source file in your project.  But the question 
    288 is, which source file?  If it isn't obvious by the name of the functions, just 
    289 to the following: In the menu @emph{Edit}, select the option @emph{Find in 
    290 Files@dots{}}.  Put the name of the function in the field ``Find What'', check 
    291 that the ``In Folder'' field content is the Crystal Space source directory and 
    292 press @emph{Find}.  You should get a bunch of files, many of them just making a 
    293 call to the function.  But there is surely one which contains the definition of 
    294 the function.  Look at the position of the file where it is defined, and add it 
    295 to the project (menu @emph{Project/Add To Project/Files}). 
    296  
    297 In order to add (or remove) a library for the link process, invoke the 
    298 @emph{Project/Settings/Link} menu item, then select the ``General'' category 
    299 tab..  There is a field called ``Object/Library Modules'' that lists all the 
    300 libraries added to the project at link time. 
    301 @end itemize 
    302 @end itemize 
    303  
    304 OK, now it should link.  So you should have an executable file called 
    305 @file{walktest.exe} in your src directory.  Let's run it! 
     298 
     299@item 
     300Any others: It seems that there is a missing source file in the project.   
     301 
     302For Crystal Space the MSVC project files are generated once every 24 hours, so  
     303normally all missing sources should have been added after that time.  If you 
     304can't wait that long, or the file is still missing, contact one of the Crystal 
     305Space developers. 
     306 
     307For third party projects it's usually the best idea to contact one of it's 
     308developers, they should be able to tell you which file is missing. 
    306309 
    307310@subsubheading Executing