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
How to compile .ino file as .cpp
-
- CodeLite Curious
- Posts: 2
- Joined: Fri Nov 10, 2017 6:49 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: How to compile .ino file as .cpp
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
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
Make sure you have read the HOW TO POST thread
-
- CodeLite Curious
- Posts: 2
- Joined: Fri Nov 10, 2017 6:49 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: How to compile .ino file as .cpp
Hi Eran,
I followed your instructions and also added option.
It now works like a charm.
Thanks!
I followed your instructions and also added
Code: Select all
-xc++
It now works like a charm.
Thanks!