Jump to content

ElectronDes

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About ElectronDes

  • Rank
    Newbrie
  1. ElectronDes

    Array Size Limit

    When using boostc_pic18 (v6.97) inside MPLAB IDE (v8.53.00.00) and trying to declare an array of more than 256 elements, the message "error: total number of array elements can not exceed 0x100 (use -idx 2 compiler command line argument to remove this restriction)" is displayed. Trying again with -idx 2 set as an option thus: boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -idx 2 gives: warning: unrecognized command line agrument '-idx', skipped FileName.c C:\Pathname\Filename.c(138): error: total number of array elements can not exceed 0x100 (use -idx 2 compiler command line argument to remove this restriction) 2 FATAL: Unable to open input file: C:\Pathname\2 Error: preprocessing error similarly, trying -idx2 thus: boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -idx2 gives a similar result: warning: unrecognized command line agrument '-idx2', skipped[\b] Trying again with -IDX 2 set as an option thus: boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -IDX 2 gives (note NO warning about skipped command line agrument): FileName.c C:\Pathname\Filename.c(138): error: total number of array elements can not exceed 0x100 (use -idx 2 compiler command line argument to remove this restriction) 2 FATAL: Unable to open input file: C:\Pathname\2 Error: preprocessing error and again trying -IDX2 thus: boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -IDX2 gives a similar result. Can someone tell me how to get around tis problem please?
×