|
From: | Tom Rondeau |
Subject: | Re: [Discuss-gnuradio] Help with gr-trellis |
Date: | Fri, 6 Jun 2014 11:36:38 -0400 |
The following entry exists in the include file:When I compile, i get the following error:I tried creating an fsm object:Hello Everyone,To test my code, I am porting gnuradio/gr-trellis/examples/python/test_tcm.py to c++, and encountering an error with the trellis fsm constructor.
----------
const char* fsm_filename = "fsm_files/awgn1o2_4.fsm";
gr::trellis::fsm *f = new gr::trellis::fsm(fsm_filename);
----------
----------
CMakeFiles/tcm.dir/tcm.cc.o: In function `main':
/home/tjt7a/src/GR-Router/apps/tcm.cc:71: undefined reference to `gr::trellis::fsm::fsm(char const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [apps/tcm] Error 1
make[1]: *** [apps/CMakeFiles/tcm.dir/all] Error 2
make: *** [all] Error 2
----------
----------
namespace gr {
namespace trellis {
/*!
* \brief Finite State Machine Specification class.
* \ingroup trellis_coding_blk
*
* \details
* An instance of this class represents a finite state machine
* specification (FSMS) rather than the FSM itself. It particular
* the state of the FSM is not stored within an instance of this
* class.
*/
class TRELLIS_API fsm
{
public:
...
/*!
* \brief Constructor to create an FSMS from file contents.
*
* \param name filename
*
*/
fsm(const char *name);
----------
It doesn't seem to recognize the constructor... am I calling it wrong?--
Sincerely,
Tommy Tracy II
UVA
[Prev in Thread] | Current Thread | [Next in Thread] |