Microsoft Visual Studio Project Settings
From MobileRobots Research and Academic Customer Support
To build a program using Aria in Microsoft Visual Studio (aka Visual C++), use the following project settings (right click the project in the solution project browser and choose "Properties"):
Set Used Managed Extensions in the General section to No
If desired, you can use C:\Program Files\MobileRobots\Aria\bin as the Output Directory. This will allow Windows to locate the Aria DLL when the program runs. Alternatively, you can add C:\Program Files\MobileRobots\Aria\bin to your system PATH environment variable (Set in the System control panel), or copy the required DLLs to your own output directory.
Add C:\Program Files\MobileRobots\Aria\include to Additional Include Directories in the General subsection of the C++ section. If using ArNetworking, also add C:\Program Files\MobileRobots\Aria\ArNetworking\include. If using other libraries, add their respective include directories as well.
Add C:\Program Files\MobileRobots\Aria\lib to Additional Library Path in the Input subsection of the Linker section.
Most MobileRobots software libraries for Windows are provided in several versions:
- For Visual C++ 7 (Visual Studio 2003) using the multithreaded DLL runtime library
- For Visual C++ 7 (Visual Studio 2003) using the multithreaded Debug DLL runtime library
- For Visual C++ 9 (Visual Studio 2008) using the multithreaded DLL runtime library
- For Visual C++ 9 (Visual Studio 2008) using the multithreaded Debug DLL runtime library
Some libraries also have versions built with the statically linked (non-DLL) multithreaded runtimes (or projects are provided that can be used to build a static version.)
(Some libraries are only available for VC7/Visual Studio 2003; if you need to use VC9/Visual Studio 2008, and the source code is included with the library, you can build a VC9 version; if source code is not included, contact us.)
For Visual C++ 7 (Visual Studio 2003) using the multithreaded DLL runtime library:
- Set Use Run-Time Library in the Code Generation section of the C++ section to DLL Multithreaded.
- Add Aria.lib winmm.lib ws2_32.lib advapi32.lib to Additional Dependencies in the Input subsection of the Linker section.
- If using ArNetworking, also add ArNetworking.lib to Additional Dependencies. Similarly for any other libraries you are using.
For Visual C++ 7 (Visual Studio 2003) using the multithreaded Debug DLL runtime library:
- Set Use Run-Time Library in the Code Generation section of the C++
- section to Debug DLL Multithreaded.
- Add AriaDebug.lib winmm.lib ws2_32.lib advapi32.lib to Additional Dependencies in the Input subsection of the Linker section.
- If using ArNetworking, also add ArNetworkingDebug.lib to Additional Dependencies. Similarly for any other libraries you are using.
For Visual C++ 9 (Visual Studio 2008) using the multithreaded DLL runtime library:
- Set Use Run-Time Library in the Code Generation section of the C++ section to DLL Multithreaded.
- Add AriaVC9.lib winmm.lib ws2_32.lib advapi32.lib to Additional Dependencies in the Input subsection of the Linker section.
- If using ArNetworking, also add ArNetworkingVC9.lib to Additional Dependencies. Similarly for any other libraries you are using.
For Visual C++ 9 (Visual Studio 2008) using the multithreaded Debug DLL runtime library:
- Set Use Run-Time Library in the Code Generation section of the C++ section to Debug DLL Multithreaded.
- Add AriaDebugVC9.lib winmm.lib ws2_32.lib advapi32.lib to Additional Dependencies in the Input subsection of the Linker section.
- If using ArNetworking, also add ArNetworkingDebugVC9.lib to Additional Dependencies. Similarly for any other libraries you are using.
