You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
Following instructions in README, receive following error:
/home/markrages/src/scopehal-cmake/lib/scopehal/SCPILxiTransport.cpp: In constructor ‘SCPILxiTransport::SCPILxiTransport(std::__cxx11::string)’:
/home/markrages/src/scopehal-cmake/lib/scopehal/SCPILxiTransport.cpp:63:41: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
m_device = lxi_connect(m_hostname.c_str(), m_port, "inst0", m_timeout, VXI11);
~~~~~~~~~~~~~~~~^~
In file included from /home/markrages/src/scopehal-cmake/lib/scopehal/scopehal.h:49:0,
from /home/markrages/src/scopehal-cmake/lib/scopehal/SCPILxiTransport.cpp:36:
/usr/include/lxi.h:59:5: note: initializing argument 1 of ‘int lxi_connect(char*, int, char*, int, lxi_protocol_t)’
int lxi_connect(char *address, int port, char *name, int timeout, lxi_protocol_t protocol);
^~~~~~~~~~~
/home/markrages/src/scopehal-cmake/lib/scopehal/SCPILxiTransport.cpp:63:78: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
m_device = lxi_connect(m_hostname.c_str(), m_port, "inst0", m_timeout, VXI11);
^
If I add -fpermissive to CXX_FLAGS then it compiles OK.
The text was updated successfully, but these errors were encountered:
On Ubuntu 18.04.
Following instructions in README, receive following error:
If I add
-fpermissive
to CXX_FLAGS then it compiles OK.The text was updated successfully, but these errors were encountered: