• 0
Sign in to follow this  
Daniel Rech

How do I compile dwfcmd.h

Question

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".

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

Edited by ballessay
added github link

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this