Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'const class casacore::GaussianMultipletSpectralElement' has no member named 'getGaussians #40

Closed
Athanaseus opened this issue Feb 23, 2021 · 1 comment

Comments

@Athanaseus
Copy link
Contributor

Hi Admin, I'm trying to build a casarest debian package for ubuntu focal with casacore-3.4.0

/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: At global scope:
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:191:1: error: no declaration matches 'const std::vector<casacore::GaussianSpectralElement>& casacore::GaussianMultipletSpec
tralElement::getGaussians() const'
  191 | GaussianMultipletSpectralElement::getGaussians() const {
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:191:1: note: no functions named 'const std::vector<casacore::GaussianSpectralElement>& casacore::GaussianMultipletSpectralE
lement::getGaussians() const'
In file included from /build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:27:
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.h:120:7: note: 'class casacore::GaussianMultipletSpectralElement' defined here
  120 | class GaussianMultipletSpectralElement: public CompiledSpectralElement {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual casacore::Bool casacore::GaussianMultipletSpectralElement::toRecord(casacore::RecordInterface&
) const':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:202:19: error: '_gaussians' was not declared in this scope; did you mean 'gaussians'?
  202 |  for (uInt i=0; i<_gaussians.size(); i++) {
      |                   ^~~~~~~~~~
      |                   gaussians
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual void casacore::GaussianMultipletSpectralElement::set(const casacore::Vector<double>&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:225:2: error: '_gaussians' was not declared in this scope
  225 |  _gaussians[0].setAmpl(amp0);
      |  ^~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual void casacore::GaussianMultipletSpectralElement::setError(const casacore::Vector<double>&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:261:2: error: '_gaussians' was not declared in this scope
  261 |  _gaussians[0].setError(errors);
      |  ^~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In member function 'virtual void casacore::GaussianMultipletSpectralElement::fix(const casacore::Vector<bool, std::allocat
or<bool> >&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:294:2: error: '_gaussians' was not declared in this scope
  294 |  _gaussians[0].fix(fixed);
      |  ^~~~~~~~~~
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc: In function 'std::ostream& casacore::operator<<(std::ostream&, const casacore::GaussianMultipletSpectralElement&)':
/build/casarest-1.7.0/components/SpectralComponents/GaussianMultipletSpectralElement.cc:320:51: error: 'const class casacore::GaussianMultipletSpectralElement' has no member named 'getGaussians'
  320 |  Vector<GaussianSpectralElement> gaussians = elem.getGaussians();
      |                                                   ^~~~~~~~~~~~
make[3]: *** [components/CMakeFiles/casa_components.dir/build.make:79: components/CMakeFiles/casa_components.dir/SpectralComponents/GaussianMultipletSpectralElement.cc.o] Error 1
@aroffringa
Copy link
Collaborator

Should be fixed now on master, let us know if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants