Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

Compiling Your Projects

This chapter explains how to compile the tutorials that guide you through the basic use of the FairCom DB DSQL interface.

The source code is located in the drivers\c.sql.direct\tutorials folder.

Compiling and Executing the Tutorials

The sample tutorials can be compiled in these ways:

Potential Errors

The ctsqlapi.dll object is compiled with Visual Studio 2017 and depends on the Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017, and 2019, which is included with FairCom Edge (in the tools\SetUp\redist folder). It is possible for a library mismatch to occur when compiling the tutorials with different versions of Visual Studio.

Should you receive an error message in loading ctsqlapi.dll, ensure you have the proper VS libraries available to your executable.

Note: Redistributables can be found in Microsoft Visual Studio installations in the following locations:

C:\Program Files\Microsoft Visual Studio XX.0\VC\redist\x86\Microsoft.VC100.CRT

where XX is a version of Visual Studio.

In This Chapter

Compile Using Microsoft Visual Studio IDE

Command-Line Compile - Windows

Command-Line IDE Compile - Windows

Command-Line Compile - Linux

TOCIndex