Daniel Rech Posted November 14, 2016 Share Posted November 14, 2016 I found the dwfcmd in /usr/share/digilent/waveforms/samples/dwfcmd/dwfcmd.cpp. How do I compile this file? g++ throws many errors starting with "ISO C++ forbids forward references to 'enum' types" and "use of undeclared identifier". Link to comment Share on other sites More sharing options...
ballessay Posted November 14, 2016 Share Posted November 14, 2016 Hi Daniel, I guess you haven't specified the include and library paths? Well this is what seems to work here: # copy to /tmp and cd to it so we are able to write as normal user $ cp -r /usr/share/digilent/waveforms/samples/dwfcmd /tmp/ && cd /tmp/dwfcmd # actual compile $ g++ -o dwfcmd dwfcmd.cpp -I/usr/include/digilent/waveforms/ -ldwf BTW: Have you seen this github repository? https://github.com/michael-christen/digilent_interface HTH Link to comment Share on other sites More sharing options...
Daniel Rech Posted November 16, 2016 Author Share Posted November 16, 2016 Thank you for your response. I ended up with a solution where I don't need to compile dwfcmd. Thank you for the hint with the repository, I'll look into it! Link to comment Share on other sites More sharing options...
Question
Daniel Rech
I found the dwfcmd in /usr/share/digilent/waveforms/samples/dwfcmd/dwfcmd.cpp.
How do I compile this file?
g++ throws many errors starting with "ISO C++ forbids forward references to 'enum' types" and "use of undeclared identifier".
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.