op2_sdk:projectcreation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
op2_sdk:projectcreation [2016/10/06 06:22] vagabondop2_sdk:projectcreation [2016/11/03 17:52] – [Further Project Settings] vagabond
Line 68: Line 68:
 Visual Studio defaults to compiling a project into an executable. Outpost 2 scenarios are compiled as Dynamic Link Libraries (DLL), and this must be set in the project properties. Visual Studio defaults to compiling a project into an executable. Outpost 2 scenarios are compiled as Dynamic Link Libraries (DLL), and this must be set in the project properties.
  
- - Right click on your scenario's project from the Solution Explorer. +  - Right click on your scenario's project from the Solution Explorer. 
- - Set Configuration to All Configurations +  - Set Configuration to All Configurations 
- - Set Platform to All Platforms +  - Set Platform to All Platforms 
- - Click Properties -> Configuration Properties -> General. +  - Click Properties -> Configuration Properties -> General. 
- - Set Configuration Type to Dynamic Library (.dll).+  - Set Configuration Type to Dynamic Library (.dll).
  
 ===== Including Other Projects in Solution ===== ===== Including Other Projects in Solution =====
Line 122: Line 122:
  
 After adding references to the other projects that your scenario will depend on, you usually also need to add an additional include directory to your main project that locates the referenced projects. This helps Visual Studio locate source code from the other projects. After adding references to the other projects that your scenario will depend on, you usually also need to add an additional include directory to your main project that locates the referenced projects. This helps Visual Studio locate source code from the other projects.
 +
 +**Note:** //Visual Studio does not show the C/C++ compiler options folder in the project properties until a .cpp file is contained within the project. If your project does not yet contain a .cpp file, ensure you add one before continuing (typically named main.cpp).//
  
 **Adding Additional Include Directories** **Adding Additional Include Directories**
Line 176: Line 178:
  
   - From Visual Studio, right click on your project in the Solution Explorer.    - From Visual Studio, right click on your project in the Solution Explorer. 
 +  - Set Configuration to All Configurations.
 +  - Set Platform to All Platforms.
   - Select Properties -> Linker -> Advanced.   - Select Properties -> Linker -> Advanced.
  
Line 210: Line 214:
  
 ----  ---- 
- - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Mapmaking]]//\\+ - //Go Back to [[op2_sdk:software_development_kit_sdk|Outpost 2 Software Development Kit]]//\\
  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\  - //Go Back to [[outpost_2:outpost_2|Outpost 2 Main page]]//\\
- - //Go Back to [[http://wiki.outpostuniverse.org/doku.php?id=start|Wiki Home Page]]//+ - //Go Back to [[http://wiki.outpost2.net/doku.php?id=start|Wiki Home Page]]//
  • op2_sdk/projectcreation.txt
  • Last modified: 2021/03/06 21:25
  • by vagabond