- This topic has 3 replies, 2 voices, and was last updated 8 years, 7 months ago by Anonymous.
April 26, 2015 at 8:07 am #2185Anonymous
I am writting some files using the classes in rosetta,changing *settings files as the readmefile indicated,as a example,i wrote a class calculateTT using classes like Pose,Movemap etc,and when i recompiled it,it showed error as following:
“In file included from external/boost_1_55_0/boost/throw_exception.hpp:43:0,
external/boost_1_55_0/boost/exception/exception.hpp:189:25: error: expected identifier before ‘(‘ token
external/boost_1_55_0/boost/exception/exception.hpp:189:25: error: expected ‘)’ before numeric constant”,and some other errors similar to this.
The CalculateTT class is what i added,its line 8 is to include the “src/core/pose/Pose.fwd.hh”,where the errors started from.I went to see the exception.hpp file at line 189,it is “template
“,i am really confused about this since it started from head files in rosetta.
Thank you in advance for your help,
April 27, 2015 at 2:48 pm #10984Anonymous
Pose.fwd.hh is uses in a large number of places in Rosetta so I don’t think it’s at issue. – I’m guessing the issue is actually occurring somewhere in the 7 lines of CalculateTT.h prior to the Pose.fwd.hh. You’re likely missing something in one of those lines (e.g. a semicolon or a ‘)’ in an include file or the like), and the compiler is only recognizing that fact once it gets into the Pose.fwd.hh file.
April 28, 2015 at 2:51 am #10985Anonymous
Thank you!After i inherit class CalculateTT from utility::pointer::ReferenceCount,there is no this kind of error,but another error came from the Pose.cc from the include line of CalculateTT.cc as following:(I checked the files,there were no syntax errors)
In file included from external/boost_1_55_0/boost/graph/detail/adjacency_list.hpp:32,
external/boost_1_55_0/boost/graph/graph_concepts.hpp: At global scope:
external/boost_1_55_0/boost/graph/graph_concepts.hpp:258: error: expected unqualified-id before numeric constant
external/boost_1_55_0/boost/graph/graph_concepts.hpp:258: error: expected ‘)’ before numeric constant
I don’t know whether there are some constraints for using classes in Rosetta.
April 30, 2015 at 11:09 pm #10993Anonymous
I’m not sure I can say anything else without seeing the CalculateTT.cc and CalculateTT.hh files.
If you’re not willing to post them publicly, send me a private message with a link (https://www.rosettacommons.org/user/2653/contact)
- You must be logged in to reply to this topic.