Appendix A - Compiler Settings

The following are sample compiler configuration (in the Options → C/C++ Compilers settings). They are used only to run the preprocessor.

Note: eCv may be supplied with some predefined compiler configurations, so you may not need to set these up yourself.

Microsoft Visual C++ or Visual C++ Express

Under 64-bit Windows, replace "Program Files" in all the above by "Program Files (x86)".

gcc

Important: some of the header files for gcc use non-standard syntax of the form __attribute__((...)). In order to hide this syntax from eCv, file eCv.h #defines __attribute__(_x) as a null macro when both __ECV__ and __GNUC__ are defined. However, certain gcc-related header files (e.g. _mingw.h) contain the line "#undef __attribute__". You will need to remove any such lines, or surround them with #ifndef __ECV__ ... #endif.

TOC   TOC

eCv Manual, Version 7.0, February 2017.
© 2017 Escher Technologies Limited. All rights reserved.