From 6e4ca01cc901fe12de1ba90784b9fbb8391ce34b Mon Sep 17 00:00:00 2001 From: Jean-Guillaume Dumas Date: Wed, 4 Sep 2024 16:46:04 +0200 Subject: [PATCH] inline is required when defining in a '.h' --- fflas-ffpack/utils/args-parser.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fflas-ffpack/utils/args-parser.h b/fflas-ffpack/utils/args-parser.h index 7f7d2184..32f2739f 100644 --- a/fflas-ffpack/utils/args-parser.h +++ b/fflas-ffpack/utils/args-parser.h @@ -72,7 +72,7 @@ namespace FFLAS { void parseArguments (int argc, char **argv, Argument *args, bool printDefaults = true); } -void printHelpMessage (const char *program, Argument *args, bool printDefaults = false) +inline void printHelpMessage (const char *program, Argument *args, bool printDefaults = false) { int i, l; @@ -153,7 +153,7 @@ void printHelpMessage (const char *program, Argument *args, bool printDefaults = /* Find an argument in the argument list for a character */ -Argument *findArgument (Argument *args, char c) +inline Argument *findArgument (Argument *args, char c) { int i; @@ -174,7 +174,7 @@ Argument *findArgument (Argument *args, char c) * @param instring list to be converted * @return status message. */ -int getListArgs(std::list & outlist, std::string & instring) +inline int getListArgs(std::list & outlist, std::string & instring) { int start = 0 ; int count = 0 ; @@ -231,7 +231,7 @@ namespace FFLAS { * @param i argument index * @return char* argument value */ - char* getArgumentValue(int argc, char **argv,int i){ + inline char* getArgumentValue(int argc, char **argv,int i){ if (i+1 < argc) { return argv[i+1]; } else { @@ -240,7 +240,7 @@ namespace FFLAS { } } - void parseArguments (int argc, char **argv, Argument *args, bool printDefaults) + inline void parseArguments (int argc, char **argv, Argument *args, bool printDefaults) { int i; Argument *current; @@ -345,7 +345,7 @@ namespace FFLAS { } /** writes the values of all arguments, preceded by the programName */ - std::ostream& writeCommandString (std::ostream& os, Argument *args, const char* programName = nullptr) + inline std::ostream& writeCommandString (std::ostream& os, Argument *args, const char* programName = nullptr) { if (programName != nullptr) os << programName;