Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 WINAVR 对 Amtel ATMEGA328 芯片进行编程。
我正在尝试将库链接到我的文件,但我不确定该怎么做,以及我需要在 make 文件中编辑什么。
我有一个想要包含的 lcd_lib.h 和 lcd_lib.c 文件
在我的 main.ci 中有 #include "lcd_lib.h";
我将这些文件与我的 make filer 和 main.c 文件放在同一目录中。
天哪,我已经习惯了被 C# 和 Java 宠坏了
我的解决方案:
在make文件中:找到该行
SRC = $(TARGET).c [在此处添加文件名]
所以我的是:
SRC = $(TARGET).c lcd_lib.c