-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi,
I just found the installation error when I tried to install it on Apple Silicon M2, as attached below. I can install it well on a Linux machine without the error.
Thanks in advance,
J
"""
solvopt.cpp:337:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
{ kd+=1; warnno=1; endwarn=endwarn1;
^
solvopt.cpp:40:18: note: expanded from macro 'endwarn1'
#define endwarn1 "\nPremature stop is possible. Try to re-run the routine from the obtained point."
^
solvopt.cpp:618:35: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
warnno=2; endwarn=endwarn2; break;
^
solvopt.cpp:41:18: note: expanded from macro 'endwarn2'
#define endwarn2 "\nResult may not provide the optimum. The function apparently has many extremum points."
^
solvopt.cpp:633:47: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
{ warnno=3; endwarn=endwarn3; break;
^
solvopt.cpp:42:18: note: expanded from macro 'endwarn3'
#define endwarn3 "\nResult may be inaccurate in the coordinates. The function is flat at the optimum."
^
solvopt.cpp:640:52: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
{ printf(termwarn1); printf(endwarn);
^~~~~~~
solvopt.cpp:640:52: note: treat the string as an argument to avoid this
{ printf(termwarn1); printf(endwarn);
^
"%s",
solvopt.cpp:720:31: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
warnno=1; endwarn=endwarn1;
^
solvopt.cpp:40:18: note: expanded from macro 'endwarn1'
#define endwarn1 "\nPremature stop is possible. Try to re-run the routine from the obtained point."
^
5 warnings generated.
psd.cpp:295:1: error: a type specifier is required for all declarations
main(int argc, char **argv)
^
1 error generated.
"""