Issue loading okFrontPanel library in 64-bit MATLAB R2020b on Ubuntu Linux 20.04

Using FrontPanel-Ubuntu20.04LTS-x64-5.2.3 with MATLAB R2020b.

Following the documentation (except that I’m using okFrontPanel.h instead of okFrontPanelDLL.h, per comments in the file), my MATLAB code is:

if ~libisloaded('okFrontPanel')
    loadlibrary('okFrontPanel', './okFrontPanel.h');
end

And I receive the following error:

Warning: Warnings messages were produced while parsing. Check the functions you intend to use for correctness. Warning text can be viewed using:
[notfound,warnings]=loadlibrary(...)

Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

Type '' was not found. Defaulting to type error.

Found on line 538 of input from line 573 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) char * okError_GetMessage ( okError * err' original input '( visibility (" default "))) const char * okError_GetMessage ( const okError * err '
Found on line 538 of input from line 573 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 539 of input from line 574 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okError_Free ( okError * err' original input '( visibility (" default "))) void okError_Free ( okError * err '
Found on line 539 of input from line 574 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 541 of input from line 601 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okFrontPanel_GetAPIVersionMajor (' original input '( visibility (" default "))) int okFrontPanel_GetAPIVersionMajor ('
Found on line 541 of input from line 601 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 542 of input from line 602 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okFrontPanel_GetAPIVersionMinor (' original input '( visibility (" default "))) int okFrontPanel_GetAPIVersionMinor ('
Found on line 542 of input from line 602 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 543 of input from line 603 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okFrontPanel_GetAPIVersionMicro (' original input '( visibility (" default "))) int okFrontPanel_GetAPIVersionMicro ('
Found on line 543 of input from line 603 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 545 of input from line 605 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) char * okFrontPanel_GetAPIVersionString (' original input '( visibility (" default "))) const char * okFrontPanel_GetAPIVersionString ('
Found on line 545 of input from line 605 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 563 of input from line 630 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okPLL22393_HANDLE okPLL22393_Construct (' original input '( visibility (" default "))) okPLL22393_HANDLE okPLL22393_Construct ('
Found on line 563 of input from line 630 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 564 of input from line 631 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okPLL22393_Destruct ( okPLL22393_HANDLE pll' original input '( visibility (" default "))) void okPLL22393_Destruct ( okPLL22393_HANDLE pll '
Found on line 564 of input from line 631 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 567 of input from line 634 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) double okPLL22393_GetReference ( okPLL22393_HANDLE pll' original input '( visibility (" default "))) double okPLL22393_GetReference ( okPLL22393_HANDLE pll '
Found on line 567 of input from line 634 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 586 of input from line 653 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okPLL22150_HANDLE okPLL22150_Construct (' original input '( visibility (" default "))) okPLL22150_HANDLE okPLL22150_Construct ('
Found on line 586 of input from line 653 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 587 of input from line 654 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okPLL22150_Destruct ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) void okPLL22150_Destruct ( okPLL22150_HANDLE pll '
Found on line 587 of input from line 654 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 590 of input from line 657 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) double okPLL22150_GetReference ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) double okPLL22150_GetReference ( okPLL22150_HANDLE pll '
Found on line 590 of input from line 657 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 592 of input from line 659 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okPLL22150_GetVCOP ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) int okPLL22150_GetVCOP ( okPLL22150_HANDLE pll '
Found on line 592 of input from line 659 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 593 of input from line 660 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okPLL22150_GetVCOQ ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) int okPLL22150_GetVCOQ ( okPLL22150_HANDLE pll '
Found on line 593 of input from line 660 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 594 of input from line 661 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) double okPLL22150_GetVCOFrequency ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) double okPLL22150_GetVCOFrequency ( okPLL22150_HANDLE pll '
Found on line 594 of input from line 661 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 597 of input from line 664 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) ok_DividerSource okPLL22150_GetDiv1Source ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) ok_DividerSource okPLL22150_GetDiv1Source ( okPLL22150_HANDLE pll '
Found on line 597 of input from line 664 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 598 of input from line 665 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) ok_DividerSource okPLL22150_GetDiv2Source ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) ok_DividerSource okPLL22150_GetDiv2Source ( okPLL22150_HANDLE pll '
Found on line 598 of input from line 665 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 599 of input from line 666 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okPLL22150_GetDiv1Divider ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) int okPLL22150_GetDiv1Divider ( okPLL22150_HANDLE pll '
Found on line 599 of input from line 666 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 600 of input from line 667 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okPLL22150_GetDiv2Divider ( okPLL22150_HANDLE pll' original input '( visibility (" default "))) int okPLL22150_GetDiv2Divider ( okPLL22150_HANDLE pll '
Found on line 600 of input from line 667 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 611 of input from line 678 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okDeviceSensors_HANDLE okDeviceSensors_Construct (' original input '( visibility (" default "))) okDeviceSensors_HANDLE okDeviceSensors_Construct ('
Found on line 611 of input from line 678 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 612 of input from line 679 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okDeviceSensors_Destruct ( okDeviceSensors_HANDLE hnd' original input '( visibility (" default "))) void okDeviceSensors_Destruct ( okDeviceSensors_HANDLE hnd '
Found on line 612 of input from line 679 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 613 of input from line 680 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okDeviceSensors_GetSensorCount ( okDeviceSensors_HANDLE hnd' original input '( visibility (" default "))) int okDeviceSensors_GetSensorCount ( okDeviceSensors_HANDLE hnd '
Found on line 613 of input from line 680 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 619 of input from line 686 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okDeviceSettingNames_HANDLE okDeviceSettingNames_Construct (' original input '( visibility (" default "))) okDeviceSettingNames_HANDLE okDeviceSettingNames_Construct ('
Found on line 619 of input from line 686 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 620 of input from line 687 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okDeviceSettingNames_Destruct ( okDeviceSettingNames_HANDLE hnd' original input '( visibility (" default "))) void okDeviceSettingNames_Destruct ( okDeviceSettingNames_HANDLE hnd '
Found on line 620 of input from line 687 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 621 of input from line 688 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okDeviceSettingNames_GetCount ( okDeviceSettingNames_HANDLE hnd' original input '( visibility (" default "))) int okDeviceSettingNames_GetCount ( okDeviceSettingNames_HANDLE hnd '
Found on line 621 of input from line 688 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 627 of input from line 694 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okDeviceSettings_HANDLE okDeviceSettings_Construct (' original input '( visibility (" default "))) okDeviceSettings_HANDLE okDeviceSettings_Construct ('
Found on line 627 of input from line 694 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 628 of input from line 695 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okDeviceSettings_Destruct ( okDeviceSettings_HANDLE hnd' original input '( visibility (" default "))) void okDeviceSettings_Destruct ( okDeviceSettings_HANDLE hnd '
Found on line 628 of input from line 695 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 634 of input from line 701 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) ok_ErrorCode okDeviceSettings_Save ( okDeviceSettings_HANDLE hnd' original input '( visibility (" default "))) ok_ErrorCode okDeviceSettings_Save ( okDeviceSettings_HANDLE hnd '
Found on line 634 of input from line 701 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 642 of input from line 709 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okBuffer_HANDLE okBuffer_Construct ( unsigned size' original input '( visibility (" default "))) okBuffer_HANDLE okBuffer_Construct ( unsigned size '
Found on line 642 of input from line 709 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 644 of input from line 711 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okBuffer_HANDLE okBuffer_Copy ( okBuffer_HANDLE hnd' original input '( visibility (" default "))) okBuffer_HANDLE okBuffer_Copy ( okBuffer_HANDLE hnd '
Found on line 644 of input from line 711 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 645 of input from line 712 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okBuffer_Destruct ( okBuffer_HANDLE hnd' original input '( visibility (" default "))) void okBuffer_Destruct ( okBuffer_HANDLE hnd '
Found on line 645 of input from line 712 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 646 of input from line 713 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okBool okBuffer_IsEmpty ( okBuffer_HANDLE hnd' original input '( visibility (" default "))) okBool okBuffer_IsEmpty ( okBuffer_HANDLE hnd '
Found on line 646 of input from line 713 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 647 of input from line 714 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) unsigned okBuffer_GetSize ( okBuffer_HANDLE hnd' original input '( visibility (" default "))) unsigned okBuffer_GetSize ( okBuffer_HANDLE hnd '
Found on line 647 of input from line 714 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 648 of input from line 715 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) unsigned char * okBuffer_GetData ( okBuffer_HANDLE hnd' original input '( visibility (" default "))) unsigned char * okBuffer_GetData ( okBuffer_HANDLE hnd '
Found on line 648 of input from line 715 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 653 of input from line 720 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_Copy ( okScriptValue_HANDLE h' original input '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_Copy ( okScriptValue_HANDLE h '
Found on line 653 of input from line 720 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 654 of input from line 721 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewString ( char * s' original input '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewString ( const char * s '
Found on line 654 of input from line 721 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 655 of input from line 722 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewBool ( okBool b' original input '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewBool ( okBool b '
Found on line 655 of input from line 722 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 656 of input from line 723 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewInt ( int n' original input '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewInt ( int n '
Found on line 656 of input from line 723 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 657 of input from line 724 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewBuffer ( okBuffer_HANDLE buf' original input '( visibility (" default "))) okScriptValue_HANDLE okScriptValue_NewBuffer ( okBuffer_HANDLE buf '
Found on line 657 of input from line 724 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 662 of input from line 729 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okScriptValue_Destruct ( okScriptValue_HANDLE h' original input '( visibility (" default "))) void okScriptValue_Destruct ( okScriptValue_HANDLE h '
Found on line 662 of input from line 729 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 667 of input from line 734 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okScriptValues_HANDLE okScriptValues_Construct (' original input '( visibility (" default "))) okScriptValues_HANDLE okScriptValues_Construct ('
Found on line 667 of input from line 734 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 668 of input from line 735 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okScriptValues_HANDLE okScriptValues_Copy ( okScriptValues_HANDLE h' original input '( visibility (" default "))) okScriptValues_HANDLE okScriptValues_Copy ( okScriptValues_HANDLE h '
Found on line 668 of input from line 735 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 669 of input from line 736 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okScriptValues_Destruct ( okScriptValues_HANDLE hnd' original input '( visibility (" default "))) void okScriptValues_Destruct ( okScriptValues_HANDLE hnd '
Found on line 669 of input from line 736 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 670 of input from line 737 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okScriptValues_Clear ( okScriptValues_HANDLE hnd' original input '( visibility (" default "))) void okScriptValues_Clear ( okScriptValues_HANDLE hnd '
Found on line 670 of input from line 737 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 672 of input from line 739 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) int okScriptValues_GetCount ( okScriptValues_HANDLE hnd' original input '( visibility (" default "))) int okScriptValues_GetCount ( okScriptValues_HANDLE hnd '
Found on line 672 of input from line 739 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 680 of input from line 747 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) okFrontPanel_HANDLE okFrontPanel_Construct (' original input '( visibility (" default "))) okFrontPanel_HANDLE okFrontPanel_Construct ('
Found on line 680 of input from line 747 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 684 of input from line 751 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) void okFrontPanel_Destruct ( okFrontPanel_HANDLE hnd' original input '( visibility (" default "))) void okFrontPanel_Destruct ( okFrontPanel_HANDLE hnd '
Found on line 684 of input from line 751 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

Found on line 686 of input from line 753 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h

Failed to parse type '( visibility (" default "))) char * okFrontPanel_GetLastErrorMessage ( okFrontPanel_HANDLE hnd' original input '( visibility (" default "))) const char * okFrontPanel_GetLastErrorMessage ( okFrontPanel_HANDLE hnd '
Found on line 686 of input from line 753 of file /home/jason/Work/fscv-matlab/ok/okFrontPanel.h
Error parsing argument for function __attribute__ function may be invalid.

Type '' was not found. Defaulting to type error.

(truncated for post length limit)

I was able to resolve this by:

  1. Change line 59 of okFrontPanel.h from #define okDLLEXPORT __attribute__ ((visibility("default"))) to #define okDLLEXPORT. I guess this is not supported in the MATLAB C compiler, I’m not sure what it’s using but my system gcc is version 10.2.0.

  2. Rename libokFrontPanel.so to okFrontPanel.so as this is the filename that MATLAB expects.

There are still some warnings displayed:

Warning: The data type 'okTRegisterEntry#256' used by structure okTFPGAResetProfile does not exist. The structure may not be usable.

Warning: The data type 'okTTriggerEntry#32' used by structure okTFPGAResetProfile does not exist. The structure may not be usable.

Warning: The data type ' void (* callback )( void *)' used by structure okTCallbackInfo does not exist. The structure may not be usable.

Warning: The function return type of 'okTDeviceSensor' for function okDeviceSensors_GetSensor is not supported.

Warning: The data type 'FcnPtr' used by function okFrontPanel_ConfigureFPGAFromMemoryWithProgress does not exist.

Warning: The data type 'FcnPtr' used by function okScriptEngine_RunScriptFunctionAsync does not exist.

Warning: The data type 'FcnPtr' used by function okFrontPanelManager_ConstructWithCallbacks does not exist.

Warning: The data type 'FcnPtr' used by function okFrontPanelManager_ConstructWithCallbacks does not exist.