ElectronDes 0 Posted July 19, 2010 Report Share Posted July 19, 2010 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? Quote Link to post Share on other sites
Dave 0 Posted July 19, 2010 Report Share Posted July 19, 2010 Can someone tell me how to get around tis problem please?Wait for BoostC V7, this has support for large arrays. A release candidate should be coming soon. Regards Dave Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.