This repository contains a Visual Studio C++ solution with:
TepLab2- a static library project (.lib) containing the core implementationTepLab2Test- a console application project that links againstTepLab2and can be run
Note:
TepLab2is a static library and does not produce a standalone executable.
- Windows
- Visual Studio 2022 or later with C++ development tools installed
- MSBuild (installed with Visual Studio)
- Open
TepLab2.slnin Visual Studio. - Select the desired configuration and platform (for example,
Debug|x64orRelease|Win32). - Build the solution via
Build > Build Solution.
Open a Visual Studio Developer Command Prompt and run:
msbuild TepLab2.sln /p:Configuration=Debug /p:Platform=x64Replace Debug and x64 with Release and/or Win32 as needed.
If you are using a regular PowerShell prompt, first run the Visual Studio environment setup batch file or use the Developer Command Prompt so msbuild is available.
The runnable output is produced by the TepLab2Test project.
- Build the solution.
- Set
TepLab2Testas the startup project. - Run the project or use Test Explorer if configured.
- Build the solution.
- Find the test executable in the
TepLab2Testoutput folder.- Example:
TepLab2Test\x64\Debug\TepLab2Test.exe
- Example:
- Run the executable directly:
cd TepLab2Test\x64\Debug
TepLab2Test.exe- The solution supports
DebugandReleaseconfigurations for bothWin32andx64platforms. - The
TepLab2project is a library and is not runnable by itself. - If
msbuildis not found, use the Visual Studio Developer Command Prompt or run the appropriatevcvars*.batscript before building.