Error of compiling AbrelaxApplication.cc

Member Site Forums Rosetta 3 Rosetta 3 – Build/Install Error of compiling AbrelaxApplication.cc

Viewing 1 reply thread
  • Author
    Posts
    • #3324
      Anonymous

        Hi,I want to use ResolutionSwitcher in Montecarlo.cc to relax pdb after stage1-4,when i add “#include<protocols/abinitio/ResolutionSwitcher.hh> in MonteCarlo.cc”,it turn to be a error”Resolution switcher was not declared in this scope”.

        I included all the header files but still not working.

      • #15107
        Anonymous

          You might need to namespace it.  Probably protocols::abinitio::ResolutionSwitcher.

          You may also have a library levels problem.  To make Rosetta compile with a reasonable amount of memory during the linking step, we split the protocols library into a whole bunch – note all the files “protocols.??.src.settings”.  MonteCarlo.cc is in protocols 1; ResolutionSwitcher is in protocols 6.  The dependency diagram is a directed acyclic graph; here 6 can use 1 but 1 cannot use 6.  I don’t think you CAN use ResolutionSwitcher in MonteCarlo without rearranging all the dependencies by moving things around in scons.

          If you have a huge amount of memory you can try just moving all the protocols.X.settings files into protocols.1.src.settings and crossing your fingers.  This is not adviseable.

          What are you actually trying to do with the edits?  There may be an easier method.

          • #15108
            Anonymous

              Thank you for help!

              I add “using namespace XXX”inMonteCarlo.cc and it finally works!It looks so simple but I didn’t realize it at all

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.