Re: [Plib-users] Installing plib on windows
Brought to you by:
sjbaker
From: Fay J. F Dr C. U. AFSEO/SK <joh...@eg...> - 2006-12-11 18:05:22
|
Ana, If you unzipped the PLIB distribution file into all the directories and just built things as they are, and if your version of MSVC is fairly recent, the paths should be set properly. Here is what is supposed to happen: When you unzip the PLIB distribution file, you should get the following structure (this is only part of it): Plib - contains "plib.dsw" Examples - contains "plib_examples.dsw" Src - contains subdirectories with the various example programs Src Fnt - contains the "fnt" library source Js - contains the "js" library source ... etc. After you load "plib.dsw" into MSVC and invoke the "Rebuild All" command, the "post-build step" should copy all the necessary header files and library files into the main "Plib" directory. My copy of MSVC at work does this; my older student copy of MSVC at home does not. When you load "plib_examples.dsw" into MSVC, all the necessary paths should be set already. If you look at the project settings (say, for "pw_demo") you should find under the "C/C++" tab, "Preprocessor" category, the following for "Additional include directories:" ..\..\..\..\ This causes the preprocessor to look in the directory ABOVE the main Plib directory for its include files; thus including "<plib/pw.h>" will cause the preprocessor to look in the main Plib directory for that file. Similarly, in the project settings under the "Link" tab, "Input" category, you should find the following under "Additional library path:" ..\..\..\..\plib This causes the loader to look in the main Plib directory for the library files "ul_d.lib" and "pw_d.lib". The example given on the web site is, I think, the "Simple" project in the "plib_examples" workspace. You probably got all the errors because you did not set the library path in the project settings. Please let me know if this solves your problems or if there are further errors. John F. Fay Technical Fellow Jacobs/Sverdrup TEAS Group 850-883-1294 |