-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi. Can you help me with compiling?
Compiler throws error:
root@1c:~/libusb_vhci-0.8# sudo make install
Making install in src
make[1]: Entering directory '/root/libusb_vhci-0.8/src'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -pthread -Wall -Weffc++ -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel -fno-enforce-eh-specs -O2 -MT libusb_vhci_la-urb.lo -MD -MP -MF .deps/libusb_vhci_la-urb.Tpo -c -o libusb_vhci_la-urb.lo `test -f 'urb.cpp' || echo './'`urb.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -pthread -Wall -Weffc++ -Wold-style-cast -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel -fno-enforce-eh-specs -O2 -MT libusb_vhci_la-urb.lo -MD -MP -MF .deps/libusb_vhci_la-urb.Tpo -c urb.cpp -fPIC -DPIC -o .libs/libusb_vhci_la-urb.o
In file included from urb.cpp:37:
libusb_vhci.h:213:50: error: ISO C++17 does not allow dynamic exception specifications
213 | void _cpy(const usb_vhci_urb& u) throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:214:29: error: ISO C++17 does not allow dynamic exception specifications
214 | void _chk() throw(std::invalid_argument);
| ^~~~~
libusb_vhci.h:217:33: error: ISO C++17 does not allow dynamic exception specifications
217 | urb(const urb&) throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:237:39: error: ISO C++17 does not allow dynamic exception specifications
237 | uint16_t wLength) throw(std::invalid_argument, std::bad_alloc);
| ^~~~~
libusb_vhci.h:238:46: error: ISO C++17 does not allow dynamic exception specifications
238 | urb(const usb_vhci_urb& urb) throw(std::invalid_argument, std::bad_alloc);
| ^~~~~
libusb_vhci.h:239:56: error: ISO C++17 does not allow dynamic exception specifications
239 | urb(const usb_vhci_urb& urb, bool own) throw(std::invalid_argument, std::bad_alloc);
| ^~~~~
libusb_vhci.h:241:44: error: ISO C++17 does not allow dynamic exception specifications
241 | urb& operator=(const urb&) throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:284:40: error: ISO C++17 does not allow dynamic exception specifications
284 | void set_iso_results() throw(std::logic_error);
| ^~~~~
libusb_vhci.h:380:44: error: ISO C++17 does not allow dynamic exception specifications
380 | work(uint8_t port) throw(std::invalid_argument);
| ^~~~~
libusb_vhci.h:395:71: error: ISO C++17 does not allow dynamic exception specifications
395 | process_urb_work(uint8_t port, usb::urb* urb) throw(std::invalid_argument);
| ^~~~~
libusb_vhci.h:396:67: error: ISO C++17 does not allow dynamic exception specifications
396 | process_urb_work(const process_urb_work&) throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:397:78: error: ISO C++17 does not allow dynamic exception specifications
397 | process_urb_work& operator=(const process_urb_work&) throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:408:72: error: ISO C++17 does not allow dynamic exception specifications
408 | cancel_urb_work(uint8_t port, uint64_t handle) throw(std::invalid_argument);
| ^~~~~
libusb_vhci.h:419:77: error: ISO C++17 does not allow dynamic exception specifications
419 | port_stat_work(uint8_t port, const port_stat& stat) throw(std::invalid_argument);
| ^~~~~
libusb_vhci.h:420:100: error: ISO C++17 does not allow dynamic exception specifications
420 | port_stat_work(uint8_t port, const port_stat& stat, const port_stat& prev) throw(std::invalid_argument);
| ^~~~~
libusb_vhci.h:441:88: error: ISO C++17 does not allow dynamic exception specifications
441 | callback(void (*func)(void*, hcd&) throw(), void* arg) throw(std::invalid_argument) : func(func), arg(arg)
| ^~~~~
libusb_vhci.h:475:53: error: ISO C++17 does not allow dynamic exception specifications
475 | explicit hcd(uint8_t ports) throw(std::invalid_argument, std::bad_alloc);
| ^~~~~
libusb_vhci.h:477:79: error: ISO C++17 does not allow dynamic exception specifications
477 | virtual uint8_t address_from_port(uint8_t port) const throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:478:82: error: ISO C++17 does not allow dynamic exception specifications
478 | virtual uint8_t port_from_address(uint8_t address) const throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:479:80: error: ISO C++17 does not allow dynamic exception specifications
479 | virtual void canceling_work(work* w, bool in_progress) throw(std::exception);
| ^~~~~
libusb_vhci.h:480:62: error: ISO C++17 does not allow dynamic exception specifications
480 | virtual void finishing_work(work* w) throw(std::exception);
| ^~~~~
libusb_vhci.h:482:52: error: ISO C++17 does not allow dynamic exception specifications
482 | void enqueue_work(work* w) throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:483:56: error: ISO C++17 does not allow dynamic exception specifications
483 | void init_bg_thread() volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:491:78: error: ISO C++17 does not allow dynamic exception specifications
491 | void add_work_enqueued_callback(callback c) volatile throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:493:87: error: ISO C++17 does not allow dynamic exception specifications
493 | virtual const port_stat& get_port_stat(uint8_t port) volatile throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:494:95: error: ISO C++17 does not allow dynamic exception specifications
494 | virtual void port_connect(uint8_t port, usb::data_rate rate) volatile throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:495:77: error: ISO C++17 does not allow dynamic exception specifications
495 | virtual void port_disconnect(uint8_t port) volatile throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:496:74: error: ISO C++17 does not allow dynamic exception specifications
496 | virtual void port_disable(uint8_t port) volatile throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:497:74: error: ISO C++17 does not allow dynamic exception specifications
497 | virtual void port_resumed(uint8_t port) volatile throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:498:88: error: ISO C++17 does not allow dynamic exception specifications
498 | virtual void port_overcurrent(uint8_t port, bool set) volatile throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:499:97: error: ISO C++17 does not allow dynamic exception specifications
499 | virtual void port_reset_done(uint8_t port, bool enable = true) volatile throw(std::exception) = 0;
| ^~~~~
libusb_vhci.h:501:59: error: ISO C++17 does not allow dynamic exception specifications
501 | bool next_work(work** w) volatile throw(std::bad_alloc);
| ^~~~~
libusb_vhci.h:502:60: error: ISO C++17 does not allow dynamic exception specifications
502 | void finish_work(work* w) volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:503:80: error: ISO C++17 does not allow dynamic exception specifications
503 | bool cancel_process_urb_work(uint64_t handle) volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:526:79: error: ISO C++17 does not allow dynamic exception specifications
526 | virtual uint8_t address_from_port(uint8_t port) const throw(std::invalid_argument, std::out_of_range);
| ^~~~~
libusb_vhci.h:527:82: error: ISO C++17 does not allow dynamic exception specifications
527 | virtual uint8_t port_from_address(uint8_t address) const throw(std::invalid_argument);
| ^~~~~
libusb_vhci.h:528:80: error: ISO C++17 does not allow dynamic exception specifications
528 | virtual void canceling_work(work* w, bool in_progress) throw(std::exception);
| ^~~~~
libusb_vhci.h:529:62: error: ISO C++17 does not allow dynamic exception specifications
529 | virtual void finishing_work(work* w) throw(std::exception);
| ^~~~~
libusb_vhci.h:532:59: error: ISO C++17 does not allow dynamic exception specifications
532 | explicit local_hcd(uint8_t ports) throw(std::exception);
| ^~~~~
libusb_vhci.h:539:87: error: ISO C++17 does not allow dynamic exception specifications
539 | virtual const port_stat& get_port_stat(uint8_t port) volatile throw(std::invalid_argument, std::out_of_range);
| ^~~~~
libusb_vhci.h:540:95: error: ISO C++17 does not allow dynamic exception specifications
540 | virtual void port_connect(uint8_t port, usb::data_rate rate) volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:541:77: error: ISO C++17 does not allow dynamic exception specifications
541 | virtual void port_disconnect(uint8_t port) volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:542:74: error: ISO C++17 does not allow dynamic exception specifications
542 | virtual void port_disable(uint8_t port) volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:543:74: error: ISO C++17 does not allow dynamic exception specifications
543 | virtual void port_resumed(uint8_t port) volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:544:88: error: ISO C++17 does not allow dynamic exception specifications
544 | virtual void port_overcurrent(uint8_t port, bool set) volatile throw(std::exception);
| ^~~~~
libusb_vhci.h:545:97: error: ISO C++17 does not allow dynamic exception specifications
545 | virtual void port_reset_done(uint8_t port, bool enable = true) volatile throw(std::exception);
| ^~~~~
urb.cpp:41:47: error: ISO C++17 does not allow dynamic exception specifications
41 | void urb::_cpy(const usb_vhci_urb& u) throw(std::bad_alloc)
| ^~~~~
urb.cpp:55:26: error: ISO C++17 does not allow dynamic exception specifications
55 | void urb::_chk() throw(std::invalid_argument)
| ^~~~~
urb.cpp:73:34: error: ISO C++17 does not allow dynamic exception specifications
73 | urb::urb(const urb& urb) throw(std::bad_alloc) : _urb(urb._urb)
| ^~~~~
urb.cpp:99:36: error: ISO C++17 does not allow dynamic exception specifications
99 | uint16_t wLength) throw(std::invalid_argument, std::bad_alloc) : _urb()
| ^~~~~
urb.cpp:189:43: error: ISO C++17 does not allow dynamic exception specifications
189 | urb::urb(const usb_vhci_urb& urb) throw(std::invalid_argument, std::bad_alloc) : _urb(urb)
| ^~~~~
urb.cpp:197:53: error: ISO C++17 does not allow dynamic exception specifications
197 | urb::urb(const usb_vhci_urb& urb, bool own) throw(std::invalid_argument, std::bad_alloc) : _urb(urb)
| ^~~~~
urb.cpp:224:45: error: ISO C++17 does not allow dynamic exception specifications
224 | urb& urb::operator=(const urb& urb) throw(std::bad_alloc)
| ^~~~~
urb.cpp:237:37: error: ISO C++17 does not allow dynamic exception specifications
237 | void urb::set_iso_results() throw(std::logic_error)
| ^~~~~
make[1]: *** [Makefile:497: libusb_vhci_la-urb.lo] Error 1
make[1]: Leaving directory '/root/libusb_vhci-0.8/src'
make: *** [Makefile:391: install-recursive] Error 1Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels