-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
The current version doesn't compile on at least Ubuntu 22.04 and 24.04. The following patch should fix things.
diff --git a/newimage/newimageio.h b/newimage/newimageio.h
index 8b6a56e..819a9d1 100644
--- a/newimage/newimageio.h
+++ b/newimage/newimageio.h
@@ -75,6 +75,7 @@
#include <iostream>
#include <fstream>
#include <sstream>
+#include <stdint.h>
#include "newmatio.h"
#include "newimage.h"
#include "complexvolume.h"
diff --git a/utils/options.h b/utils/options.h
index af47529..4f03227 100644
--- a/utils/options.h
+++ b/utils/options.h
@@ -605,8 +605,7 @@ int main(unsigned int argc, char **argv) {
@return true on success.
*/
unsigned int parse_option(const std::string& optstr, const std::string& valstr,
- char *argv[], int valpos, int argc)
- throw(X_OptionError);
+ char *argv[], int valpos, int argc);
/**
@param str A string of the form --option[=value].
diff --git a/utils/parse.cc b/utils/parse.cc
index 33ac25f..cf68270 100644
--- a/utils/parse.cc
+++ b/utils/parse.cc
@@ -82,7 +82,6 @@ namespace Utilities {
unsigned int OptionParser::parse_option(const string& optstr, const string& valstr,
char *argv[], int valpos, int argc)
- throw(X_OptionError)
{
BaseOption * theOption = 0;Metadata
Metadata
Assignees
Labels
No labels