Create a new project in MPLAB X IDE. As a rule of thumb, header files are usually placed in a folder named h, and source files are placed in a folder named src, as shown in the figure below. When compiling here, an error as shown in the title will be reported.
environment
MPLAB X IDE Version: v5.10
Compiler: xc16-gcc v1.20
Solution
1. Open the menu file project properties, and the project properties dialog box pops up. Click XC16 and edit Common include dirs.
2. Add .. and . directories. These two paths represent: h folder of the previous directory and the current directory.
3. Click the OK button.
Previous article:PIC16 MPLAB Project - Installing CCS Compiler
Next article:How MPLAB X IDE supports Chinese comments
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- How to create an image for i.MX6Q development board
- EEWORLD University Hall----Principles and Applications of Sensors (Tongji University)
- About Linux kernel dts viewing tools
- EEWORLD University Hall----UCD3138 Digital Power Tools
- 【Qinheng Trial】CH554 Unboxing
- EEWORLD University ---- Operating System (RISC-V)
- Five Lectures on Microwaves
- A comprehensive Python 3 "cheat sheet"
- FPGA implementation of high-speed dedicated GFP processor.pdf
- MSP430Ware use notes to initialize XT1