Giter Site home page Giter Site logo

hcs's Introduction

Build Status

HCS

HCS: commandline interface to Programmable DC Power Supply.

hcs's People

Contributors

davedavenport avatar mrvdb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hcs's Issues

Getting it to compile

Hi there,

i am trying to get this program compiled using g++ 4.6.3. I get many error messages:

Build object: src/hcs.cc -> build/hcs.o
g++ -std=c++0x -g3 -Wall -Werror  -c -o build/hcs.o src/hcs.cc
src/hcs.cc:67:22: sorry, unimplemented: non-static data member initializers
src/hcs.cc:67:22: error: ISO C++ forbids in-class initialization of non-const static member 'fd'
src/hcs.cc:69:27: sorry, unimplemented: non-static data member initializers
src/hcs.cc:69:27: error: ISO C++ forbids in-class initialization of non-const static member 'baudrate'
src/hcs.cc:220:22: sorry, unimplemented: non-static data member initializers
src/hcs.cc:239:1: error: a brace-enclosed initializer is not allowed here before '{' token
src/hcs.cc:249:1: sorry, unimplemented: non-static data member initializers
src/hcs.cc:249:1: error: 'constexpr' needed for in-class initialization of static data member 'ErrorTypeStr' of non-integral type
src/hcs.cc:271:25: sorry, unimplemented: non-static data member initializers
src/hcs.cc:271:25: error: 'constexpr' needed for in-class initialization of static data member 'nominal_voltage' of non-integral type
src/hcs.cc:272:25: sorry, unimplemented: non-static data member initializers
src/hcs.cc:272:25: error: 'constexpr' needed for in-class initialization of static data member 'nominal_current' of non-integral type
src/hcs.cc:273:25: sorry, unimplemented: non-static data member initializers
src/hcs.cc:273:25: error: 'constexpr' needed for in-class initialization of static data member 'nominal_power' of non-integral type
src/hcs.cc:278:26: error: a brace-enclosed initializer is not allowed here before '{' token
src/hcs.cc:278:31: sorry, unimplemented: non-static data member initializers
src/hcs.cc:278:31: error: 'constexpr' needed for in-class initialization of static data member '_telegram' of non-integral type
src/hcs.cc:279:26: sorry, unimplemented: non-static data member initializers
src/hcs.cc:279:26: error: ISO C++ forbids in-class initialization of non-const static member '_telegram_size'
src/hcs.cc:293:23: sorry, unimplemented: non-static data member initializers
src/hcs.cc:294:23: sorry, unimplemented: non-static data member initializers
src/hcs.cc: In member function 'void EAPS2K::telegram_validate()':
src/hcs.cc:283:10: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'void EAPS2K::telegram_start(EAPS2K::SendType, int)':
src/hcs.cc:298:5: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'void EAPS2K::telegram_set_object(EAPS2K::ObjectTypes)':
src/hcs.cc:305:5: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'void EAPS2K::telegram_push(uint8_t)':
src/hcs.cc:310:5: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'const char* EAPS2K::telegram_get_error(EAPS2K::ErrorTypes) const':
src/hcs.cc:317:14: error: 'ErrorTypeStr' was not declared in this scope
src/hcs.cc:322:12: error: 'ErrorTypeStr' was not declared in this scope
src/hcs.cc: In member function 'void EAPS2K::telegram_send()':
src/hcs.cc:326:10: error: '_telegram' was not declared in this scope
src/hcs.cc:331:17: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'void EAPS2K::telegram_receive()':
src/hcs.cc:353:10: error: '_telegram' was not declared in this scope
src/hcs.cc:361:27: error: '_telegram' was not declared in this scope
src/hcs.cc:365:30: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'void EAPS2K::telegram_crc_set()':
src/hcs.cc:383:27: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'bool EAPS2K::telegram_crc_check()':
src/hcs.cc:403:27: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'virtual void EAPS2K::init()':
src/hcs.cc:445:11: error: 'class EAPS2K' has no member named 'nominal_voltage'
src/hcs.cc:445:41: error: '_telegram' was not declared in this scope
src/hcs.cc:450:11: error: 'class EAPS2K' has no member named 'nominal_current'
src/hcs.cc:455:11: error: 'class EAPS2K' has no member named 'nominal_power'
src/hcs.cc: In member function 'virtual bool EAPS2K::get_state()':
src/hcs.cc:511:16: error: '_telegram' was not declared in this scope
src/hcs.cc: In member function 'virtual float EAPS2K::get_current()':
src/hcs.cc:519:34: error: '_telegram' was not declared in this scope
src/hcs.cc:520:14: error: 'nominal_current' was not declared in this scope
src/hcs.cc: In member function 'virtual float EAPS2K::get_voltage()':
src/hcs.cc:527:34: error: '_telegram' was not declared in this scope
src/hcs.cc:528:14: error: 'nominal_voltage' was not declared in this scope
src/hcs.cc: In member function 'virtual float EAPS2K::get_current_actual()':
src/hcs.cc:535:34: error: '_telegram' was not declared in this scope
src/hcs.cc:536:14: error: 'nominal_current' was not declared in this scope
src/hcs.cc: In member function 'virtual float EAPS2K::get_voltage_actual()':
src/hcs.cc:543:34: error: '_telegram' was not declared in this scope
src/hcs.cc:544:14: error: 'nominal_voltage' was not declared in this scope
src/hcs.cc: In member function 'virtual void EAPS2K::set_voltage(float)':
src/hcs.cc:549:40: error: 'nominal_voltage' was not declared in this scope
src/hcs.cc: In member function 'virtual void EAPS2K::set_current(float)':
src/hcs.cc:558:40: error: 'nominal_current' was not declared in this scope
src/hcs.cc: In member function 'virtual void EAPS2K::print_device_info()':
src/hcs.cc:575:44: error: '_telegram' was not declared in this scope
src/hcs.cc:598:46: error: 'nominal_voltage' was not declared in this scope
src/hcs.cc:599:46: error: 'nominal_current' was not declared in this scope
src/hcs.cc:600:46: error: 'nominal_power' was not declared in this scope
src/hcs.cc: In constructor 'EAPS2K::EAPS2K()':
src/hcs.cc:609:1: error: uninitialized member 'EAPS2K::baudrate' with 'const' type 'const int' [-fpermissive]
src/hcs.cc:609:1: error: uninitialized member 'EAPS2K::cast_type' with 'const' type 'const int' [-fpermissive]
src/hcs.cc:609:1: error: uninitialized member 'EAPS2K::direction' with 'const' type 'const int' [-fpermissive]
src/hcs.cc: At global scope:
src/hcs.cc:808:21: sorry, unimplemented: non-static data member initializers
src/hcs.cc:808:21: error: ISO C++ forbids in-class initialization of non-const static member 'fd'
src/hcs.cc:810:32: sorry, unimplemented: non-static data member initializers
src/hcs.cc:810:32: error: 'constexpr' needed for in-class initialization of static data member 'power_supply' of non-integral type
src/hcs.cc: In destructor 'HCS::~HCS()':
src/hcs.cc:815:16: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:817:22: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:818:15: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc: In member function 'int HCS::parse_command(int, char**)':
src/hcs.cc:891:24: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:893:30: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:895:19: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:896:19: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:900:24: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:902:30: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:904:19: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:905:19: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:907:25: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:911:23: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:915:23: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:919:23: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:928:27: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:934:37: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:945:27: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc:951:37: error: 'class HCS' has no member named 'power_supply'
src/hcs.cc: In member function 'virtual float EAPS2K::get_voltage_actual()':
src/hcs.cc:545:1: error: control reaches end of non-void function [-Werror=return-type]
src/hcs.cc: In member function 'virtual float EAPS2K::get_current_actual()':
src/hcs.cc:537:1: error: control reaches end of non-void function [-Werror=return-type]
src/hcs.cc: In member function 'virtual float EAPS2K::get_voltage()':
src/hcs.cc:529:1: error: control reaches end of non-void function [-Werror=return-type]
src/hcs.cc: In member function 'virtual float EAPS2K::get_current()':
src/hcs.cc:521:1: error: control reaches end of non-void function [-Werror=return-type]
src/hcs.cc: In member function 'virtual bool EAPS2K::get_state()':
src/hcs.cc:512:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: all warnings being treated as errors
make: *** [build/hcs.o] Error 1

Can you give me a hint on what I am doing wrong?

Cheers,
Jakob

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.