Skip to main content
Skip table of contents

LJM_LIBRARY_VERSION

LJM_LIBRARY_VERSION is a numerical read-only LJM library configuration which is used to read the current LJM version.

The constant LJM_LIBRARY_VERSION can be used interchangeably with the string "LJM_LIBRARY_VERSION".

Relevant Functions

To read LJM_LIBRARY_VERSION, use LJM_ReadLibraryConfigS.

Example

Read and display LJM_LIBRARY_VERSION, then display LJM_VERSION

C
char ErrorString[LJM_MAX_NAME_SIZE];
double Value = 0;
int LJMError = LJM_ReadLibraryConfigS(LJM_LIBRARY_VERSION, &Value);
if (LJMError != 0) {
    LJM_ErrorToString(LJMError, ErrorString);
    printf("LJM_ReadLibraryConfigS error: %s\n", ErrorString);
}
printf("LJM_LIBRARY_VERSION is the version of LJM that is\n");
printf("  running and it is %.04f\n", Value);
printf("LJM_VERSION is the version of LJM that this program\n");
printf("  was compiled with and it is %.04f\n", LJM_VERSION);

Possible output:

LJM_LIBRARY_VERSION is the version of LJM that is
  running and it is 1.0203
LJM_VERSION is the version of LJM that this program
  was compiled with and it is 1.0203

For more LJM configurations, see Library Configuration Functions.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.