- This topic has 1 reply, 2 voices, and was last updated 6 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Building SOFA › Parse error
Tagged: 64_bits, GCC, Linux_other, SOFA_1712
Hello,
I am trying to compile SOFA 17.12 in Fedora 26 with an external plugin, in that external plugin I have a small function that uses:
sofa::helper::parse("This is a SOFA application. Here are the command line arguments")
.option(&fileName,'o',"output file","output txt file")
.option(&Name,'m',"name of the first mesh in vtk","mesh_")
(argc,argv);
However, when compiling the code I get the error:
error: ‘parse’ is not a member of ‘sofa::helper’
I have checked the doxygen documentation and I have seen a method called: “ArgumentParser” but not a parser method, so, this part of the code is deprecated? I have seen some calls to sofa::helper::parse in the source code of SOFA so I am a bit confused… If it is deprecated could you give me a hint on how to update it? I am sorry I am a bit novice with C++.
Kind regards,
Jaume
Hi jaume,
Sorry for the very late answer. sofa::helper::parse
has indeed been replaced by ArgumentParser
in #513.
See usage example in runSofa/Main.cpp.
Hope that helps,
Guillaume.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.