Artix 7 xem 7001


#1

Hi, I’m starting a project on opal kelly xem 7001 board with Artix 7.
I’m trying to build an API for my project, I’m trying to learn how to do that but can’t find much resources. I have downloaded eclipse IDE for C/C++ instead of visual studio. Does it make a difference.

  • I tried linking the .lib file.I’m using the latest one(. I have downloaded the c++ compiler as well - MinGW)
  • it throws up lot of errors :-
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:229:14: warning: null character(s) ignored
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:229:17: error: stray ‘\214’ in program
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:229:18: warning: null character(s) ignored
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:229:19: error: stray ‘\4’ in program
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:229:20: warning: null character(s) ignored
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:229:44: warning: null character(s) ignored
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:229:61: warning: null character(s) ignored
    In file included from :0:0:
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\include\okFrontPanelDLL.h:1026:14: warning: ‘template class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
    typedef std::auto_ptrOpalKellyLegacy::okCFrontPanel FrontPanelPtr;
    ^~~~~~~~
    In file included from c:\mingw\include\c++\6.2.0\memory:81:0,
    from C:\Program Files\Opal Kelly\FrontPanelUSB\API\include\okFrontPanelDLL.h:50,
    from :0:
    c:\mingw\include\c++\6.2.0\bits\unique_ptr.h:49:28: note: declared here
    template class auto_ptr;
    ^~~~~~~~
    In file included from :0:0:
    C:\Program Files\Opal Kelly\FrontPanelUSB\API\lib\x64\okFrontPanel.lib:1:1: error: expected unqualified-id before ‘!’ token
    !
    ^
    In file included from c:\mingw\include\c++\6.2.0\cwctype:50:0,
    from c:\mingw\include\c++\6.2.0\bits\locale_facets.h:39,
    from c:\mingw\include\c++\6.2.0\bits\basic_ios.h:37,
    from c:\mingw\include\c++\6.2.0\ios:44,
    from c:\mingw\include\c++\6.2.0\ostream:38,
    from c:\mingw\include\c++\6.2.0\iostream:39,
    from …\fpga_tester_linux1 (1).cpp:12:
    c:\mingw\x86_64-w64-mingw32\include\wctype.h:15:32: error: expected declaration before end of line
    #pragma pack(push,_CRT_PACKING)
    ^

00:32:11 Build Finished (took 38s.637ms)

  • I have included the header file i.e. the “.h” file and also linked the .lib library in the IDE

Thanks,