discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Issues with includes


From: Martin Braun
Subject: Re: [Discuss-gnuradio] Issues with includes
Date: Thu, 09 Apr 2015 10:39:12 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

James,

look at examples for non-block stuff, such as:

- Constellation object
- Packet Header formatters
- OFDM Equalizers

SWIG is considered black magic by most of us, so using working examples is the way to go.

Cheers,
M

On 09.04.2015 08:05, James Wagner wrote:
hello, I am pretty new to swigs and cmake so I apologize ahead of time
if this is a bit of basic question but I have been having some problems
geting c++ blocks to run if I add an include to my own generated code.
for example I might have a block radio_block and a function do_stuff()
contain in do_stuff.cc and do_stuff.h
if I add the include file in module_name_radio_block_impl.cc along with
the other includes and then places a call to do_stuff() in general work
the block will compile just fine but when I run the block i'll get an
error message
AttributeError: 'module' object has no attribute 'radio_block'
I have no problem creating an non-block and implementing objects there
but this precludes me adding a simple function without creating a new
object or adding new methods to the existing objects.
thank you for your time
sincerely,
James Wagner


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio





reply via email to

[Prev in Thread] Current Thread [Next in Thread]