dspsr compile problem

0 votes

dsps fails to compile and generates the following error message:

 

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I../../local_include -I/home/pulsar/linux/include -I/usr/local/include -I/home/pulsar/linux/include -pthread -MT File_registry.lo -MD -MP -MF .deps/File_registry.Tpo -c File_registry.C -o File_registry.o
File_registry.C: In static member function 'static Registry::List<dsp::File>& dsp::File::get_register()':
File_registry.C:234: error: 'get_registry' is not a member of 'Registry::List<dsp::File>'
In file included from ../../local_include/dsp/File.h:19,
                 from ../../local_include/dsp/BlockFile.h:18,
                 from ../../local_include/dsp/DummyFile.h:12,
                 from File_registry.C:28:
/home/pulsar/linux/include/Registry.h: In member function 'void Registry::Entry<Parent>::register_child(Parent*) [with Parent = dsp::File]':
/home/pulsar/linux/include/Registry.h:125:   instantiated from 'Registry::List<Parent>::Enter<Child>::Enter() [with Child = dsp::DummyFile, Parent = dsp::File]'
File_registry.C:29:   instantiated from here
/home/pulsar/linux/include/Registry.h:44: error: 'registry' is not a member of 'dsp::File'
/home/pulsar/linux/include/Registry.h:44: error: 'registry' is not a member of 'dsp::File'
/home/pulsar/linux/include/Registry.h:125:   instantiated from 'Registry::List<Parent>::Enter<Child>::Enter() [with Child = dsp::DummyFile, Parent = dsp::File]'
File_registry.C:29:   instantiated from here
/home/pulsar/linux/include/Registry.h:49: error: 'registry' is not a member of 'dsp::File'
make[1]: *** [File_registry.lo] Error 1
 
 
Any clues as to why this is failing?
 
 
asked Aug 28, 2014 by anonymous

1 Answer

0 votes

You need to compile dspsr against a development branch of psrchive. If you have downloaded the stable release, you will need to download the development branch of psrchive:

git clone git://git.code.sf.net/p/psrchive/code psrchive

And then compile it like the stable release and try dspsr again.

Cheers,

Stefan Oslowski

answered Aug 28, 2014 by sosl (780 points)
...