I am modifying a system that used XEM6010-LX45, the PC-client used an older FrontPanel (the okFrontPanelDLL.h
has revision number 1283, but not exactly sure what version). The FrontPanel version was old enough such that it required libokFrontPanel.so
, okFrontPanelDLL.h
, and okFrontPanelDLL.cpp
files.
I’m now using XEM6310-LX150, trying to reuse the PC-client code. I was under the impression that to upgrade the FrontPanel used, I simply have to swap out the libokFrontPanel.so
and okFrontPanelDLL.h
file, since okFrontPanelDLL.cpp
is no longer required in FrontPanel v4.5. The include and linker options can probably stay the same.
However, compiling, I get errors such as:
rhd2000evalboard.h:33:7: error: forward declaration of ‘class okCFrontPanel’
class okCFrontPanel;
^
rhd2000evalboard.cpp:999:12: error: invalid use of incomplete type ‘class okCFrontPanel’
dev->SetWireInValue(WireInDacSource7, (enabled ? 0x0200 : 0x0000), 0x0200);
^
So it seems like okCFrontPanel is not being recognized. In the user manual for FrontPanel (pg. 37), I see the following:
When using the DLL in a compiled C/C++ application, you will need to link the okFrontPanel.lib file with your application. This file contains references necessary to call the functions in the DLL. You will also need to include the file okFrontPanelDLL.h in each source file that calls the DLL.However, I don’t see any files names
okFrontPanel.lib
in the downloaded zip file. Can this explain the error I’m seeing? If not, what are the recommended steps in using different versions of FrontPanel?Thanks,
Allen