Your own C programs that use HALCON operators must include the file HalconC.h, which contains all user-relevant definitions of the HALCON system and the declarations necessary for the C interface. Do this by adding the following command near the top of your C file:
#include "HalconC.h"
To create an application, you must link the library halconc.lib/.dll to your program.
The example projects show the necessary Visual C++ settings. For the examples, the project should be of the WIN 32 ConsoleApplication type. Please note that the Visual C++ compiler implicitly calls “Update all dependencies” if a new file is added to a project. Since HALCON runs under Linux as well as under Windows, the include file HalconC.h includes several Linux -specific headers as well if included under Linux. As they do not exist under Windows, and as the Visual C++ compiler ignores the operating system-specific cases in the include files, you will get a number of warning messages about missing header files. These can safely be ignored.
Make sure that the stacksize is sufficient. Some sophisticated image processing problems require up to 1 MB stacksize, so ensure to configure your compiler accordingly. See your compiler manual for additional information on this topic.
HALCON XL applications: If you want to use HALCON XL, you have to link the libraries halconxl.lib/.dll and halconcxl.lib/.dll instead of halcon.lib/.dll and halconc.lib/.dll in your project.