fabio-d / xc16plusplus Goto Github PK
View Code? Open in Web Editor NEWUnofficial C++ compiler for PIC24/dsPIC chips, based on XC16 source code
License: GNU General Public License v3.0
Unofficial C++ compiler for PIC24/dsPIC chips, based on XC16 source code
License: GNU General Public License v3.0
--gc-sections remove constructors table
I installed MPLAB X IDE 4.2 and XC16 1.35 in my windows PC. On writting a for loop the console showing the following error.
newmain.c:34:5: error: 'for' loop initial declarations are only allowed in C99 mode
newmain.c:34:5: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [build/default/production/newmain.o] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
How to solve this.?
I have a problem.
In the project I use PIC24, I have a lot of source codes written in C++. I know that XC16 does not support cpp, but I found your revision.
I did everything according to the instructions, the create_xc16plusplus_symlinks.cmd script worked without errors. But the problem is that when I add a file with the cpp extension to the MPLAB X IDE project (5.45 windows) then clicking on the BUILD button does not lead to anything. It's like I'm not pressing the button.
If you remove the file with the extension. cpp, then the build is started and everything is compiled .
I think the problem is in the settings of the MPLAB X IDE for XC16.
Because in another project on XC32 everything works.
I ask for your help.
Thank you in advance.
I am trying to run "xc16plusplus_only.sh linux" on a Debian Stretch system, and it fails on compiler detection:
checking compiler i386-linux-gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler i386-linux-gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... yes
checking compiler gcc -O2 -pedantic -fomit-frame-pointer has sizeof(long)==4... no
checking compiler i386-linux-icc -no-gcc ... no
checking compiler icc -no-gcc ... no
checking compiler i386-linux-cc -O ... no
checking whether cc is gcc... yes
checking compiler cc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler cc -O2 -pedantic -fomit-frame-pointer ... yes
checking compiler cc -O2 -pedantic -fomit-frame-pointer has sizeof(long)==4... no
configure: error: could not find a working compiler, see config.log for details
I've included the config logs. Any ideas?
BTW, I work for AlephObjects and we pride ourselves in using only openly licensed products. Thank you for your work in making a open alternative to the PIC compiler!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.