Page 1 of 1

How to compile .ino file as .cpp

Posted: Fri Nov 10, 2017 6:59 pm
by QT-1
Hi,

I am writing a simulator/debugger environment for arduino code.
I would like to set codelite so it will treat .ino files same as .cpp, in patricular, I would like the automatically generated makefile be generated for .ino files.

What should I do?

Thanks
Baruch

Re: How to compile .ino file as .cpp

Posted: Fri Nov 10, 2017 7:45 pm
by eranif
Hi Baruch!
You should be able to start from:
Settings->Build settings->Compilers tab->YOUR COMPILER->File Types tab

Add ino as a known type and create the build pattern (or copy one from the .cpp/.c)
You can also add .ino from settings->colours and fonts->customize->File extensions (its already there, cause it colours InnoSetup files)

Eran

Re: How to compile .ino file as .cpp

Posted: Sun Nov 12, 2017 6:13 pm
by QT-1
Hi Eran,

I followed your instructions and also added

Code: Select all

-xc++
option.
It now works like a charm.

Thanks!