Difference: BuildingGPSTkUnderWindows (16 vs. 17)

Revision 17
27 Mar 2010 - Main.HaTran
Line: 1 to 1
META TOPICPARENT name="BuildingGPSTkUnderUnix"

Building under Microsoft Visual Studio

Line: 53 to 53
  1. Open the project property page (Right click on the project name in the solution explorer and select properties)
  2. In the opened properties dialog expand the Configuration Properties -> C/C++ tab and select Command Line. Copy the following line to the Additional Options text box:
    -D_CRT_SECURE_NO_DEPRECATE -wd4274 -DWIN32 /EHsc /GR -wd4290 -wd4267
  3. Again in the same project properties dialog box expand Configuration Properties -> C/C++ tab and select General. Add the location of 'src' directory to the Additional Include Directories. (This is necessary because, unfortunately, some non-system header files in the source files were included using < >) Also, add the location of the regex library that you have installed. This should contain a file regex.h.
  1. Addition step for VS 2008, in the same project properties dialog box expand Configuration Properties -> Linker tab and select General add the location of regex library directory to the Additional Library Directories And under Configuration Properties -> Linker tab -> Input add "regex.lib" in Additional Dependencies .
  1. That is all. Build the program (building takes some time) and run. You will see the output of example1 in the output window.

You can also build a GPSTk library in the same manner to add all the core functions to your custom programs (but this time select 'Static Library' under the 'Application Setting' in the 'Application Wizard' to build the project as a library and of course do not add any example to the project).
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback