Forum: GNU Radio swig error in compile, gr-atsc stuff

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dc48f9c00e3e6de9640898a531c26d89?d=identicon&s=25 Charles Swiger (Guest)
on 2006-04-18 23:00
(Received via mailing list)
Gang - Wonder if any of the block writing wizards could take a gander
at this and spot why the blocks compile, but error out on the - I don't
even know what you call it - the swig file?

output:

creating libatsc-qa.la
(cd .libs && rm -f libatsc-qa.la && ln -s ../libatsc-qa.la
libatsc-qa.la)
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../.. -pthread -I/usr/local/include/gnuradio
-I/usr/include/python2.4 -I/usr/local/include    -g -O2 -Wall
-Woverloaded-virtual -pthread -MT atsc.lo -MD -MP -MF ".deps/atsc.Tpo"
-c -o atsc.lo atsc.cc; \
then mv -f ".deps/atsc.Tpo" ".deps/atsc.Plo"; else rm -f
".deps/atsc.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -pthread
-I/usr/local/include/gnuradio -I/usr/include/python2.4
-I/usr/local/include -g -O2 -Wall -Woverloaded-virtual -pthread -MT
atsc.lo -MD -MP -MF .deps/atsc.Tpo -c atsc.cc  -fPIC -DPIC
-o .libs/atsc.o
atsc.cc:2178: error: `atsc_ds_to_softds_sptr' was not declared in this
scope                                               <---- OH NO!!!!
atsc.cc:2179: error: expected `,' or `;' before '{' token



Here are the files I added:

http://webpages.charter.net/cswiger/atsc_ds_to_softds.cc
http://webpages.charter.net/cswiger/atsc_ds_to_softds.h
http://webpages.charter.net/cswiger/atsc.i

Of course atsc.cc was created by swig, and the bottom of atsc.i
has what magic worked for the other modules I added.


tia

--Chuck
Dc48f9c00e3e6de9640898a531c26d89?d=identicon&s=25 Charles Swiger (Guest)
on 2006-04-19 17:37
(Received via mailing list)
On Tue, 2006-04-18 at 17:00 -0400, Charles Swiger wrote:
> Gang - Wonder if any of the block writing wizards could take a gander
> at this and spot why the blocks compile, but error out on the - I don't
> even know what you call it - the swig file?
>
> atsc.cc:2178: error: `atsc_ds_to_softds_sptr' was not declared in this
> scope                                               <---- OH NO!!!!
> atsc.cc:2179: error: expected `,' or `;' before '{' token
>

Found it -



 * Boston, MA 02111-1307, USA.
 */
#ifndef INCLUDED_ATSC_RS_ENCODER_H
#define INCLUDED_ATSC_RS_ENCODER_H       <------ D'oh!!!

#include <gr_sync_block.h>
#include <atsc_types.h>

class atsc_ds_to_softds;
typedef boost::shared_ptr<atsc_ds_to_softds> atsc_ds_to_softds_sptr;


ALL compiles ok now ;))

--Chuck
This topic is locked and can not be replied to.