Re: Creating my own Random Source

2021-11-09 Thread Mario Moran
Well working with the tutorial called, " Guided Tutorial GNU Radio in C++" there is a line of code: gr::io_signature::make(1,1, sizeof(gr_complex)), So that got me thinking, since I know that complex is not a normal complex is not a normal data type so I thought that using "gr" was part of GNU Ra

Re: Creating my own Random Source

2021-11-09 Thread Marcus Müller
Hey, `byte` in itself is not a C++ type (`std::byte` might be, don't know). Just use `char` or `uint8_t` if you mean that. Are you the one introducing the type `byte` by any chance? > I did > gr_complex and I thought gr_byte no, that doesn't exist. You seem to be in need of a little more C++ p

Re: Creating my own Random Source

2021-11-08 Thread Mario Moran
Hello, I was not originally using 'using name std' in the code, but I will keep that in mind for future reference. I used using std::byte and that did not work, but following the cmake link you gave me I was able to enable c++17 and I now have less errors. Here is what is left if you would like to

RE: Creating my own Random Source

2021-11-08 Thread Jim Melton
Probably you’ve fallen prey to the common academic practice of including “using namespace std” in your code. In industry, it’s not as common (I don’t allow it in my projects). std::byte is a new type in C++17. If you aren’t using that new of a compiler (or didn’t set the required standard in yo