Jump to content

Search the Community

Showing results for tags 'const member'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • PIC Embedded Programming
    • BoostC and Chameleon compilers programming
    • BoostC porting source code
    • BoostC++ compiler programming
    • BoostBasic compiler programming
    • Assembler programming PIC
    • Novo RTOS Programming
    • Hardware PIC
    • Enhancement Requests
    • Bug Reports

Found 1 result

  1. Hello. I am wondering if "const int" or "static const int" class members are supported ? Compiles ok but linker doesn't seem to be able to resolve. I tried with both in class and out of class initialization. Any help would be much appreciated. ... success "C:\Program Files\SourceBoost\boostlink_picmicro.exe" -idx 1 /ld "C:\Program Files\SourceBoost\lib" libc.pic16.lib Debug\member_constant.obj /t PIC16F84 /d "Debug" /p member_constant Error: Failed to resolve external:Foo$a Error: Failed to resolve external:Foo$a BoostLink Optimizing Linker Version 7.30 http://www.sourceboost.com Copyright© 2004-2015 Pavel Baranov Copyright© 2004-2015 David Hobday failure Failed to locate output file 'Debug\member_constant.hex' Done Failed ----------------------------------------------------------------------------------- class Foo{ static const int a=0x08; public: int xPlus8(int x){ return (a+x); }; }; Foo foo; void main() { int res; res = foo.xPlus8(10); }