1. About compiling and linkingIn general, whether C, C + +, the first to compile the source file into an intermediate code file, under Windows is the. obj file, under Unix is the. o file, the object file, which is called compilation (compile). And
The commands in makefile must start with the tab key.
Today I wrote a simple makefile, which always mentions missing separator. The makefile written a few days ago can still be executed, but it cannot be executed now.
It is probably because I
When writing a buzzer driver today, the MAKEFILE file is like this:
Cross = arm-Linux-ALL: beepBeep: beep. c$ (Cross) GCC-O beep. c$ (Cross) strip beepClean:@ RM-VF beep *. O *~
An error occurred while making the result. The error is makefile: 4
Don't use tab in this makefile, only the line of the command can and can only start with tab!Other, such as the definition of make variable, assignment, make default function such as $ (error "strings") can not start with tab, otherwise makes will
When you enter make in the terminal, the makefile: 2: *** delimiter is missing. Stop. The problem occurs when the makefile file is written: 3: 3. before the cgcc-o33.cgcc is a tab separator, space cannot be used, otherwise makefile: 2: *** missing
Previously, I simply edited the vim configuration file named. vimrc in the home directory according to the online template, as shown below:
1 " 2 set hlsearch" high light search on 3 set backspace = 2 "delete any character in the file 4 set
Here is a makefile file that I wrote for the kernel module——————————————————————————————————————————————————————1 Ifneq ($ (kernelrelease),)2 obj-m: = hello.o calculate.o3 Else45 Kdir: =/lib/modules/2.6.18-53.el5/build6 All:7 make-c $ (kdir) m=$
For a question about makefile-general Linux technology-Linux programming and kernel information, see the following for details. My makefile is like this:
Main. o mytool1.o mytool2.o
Gcc-c main. o mytool1.o mytool2.o
Main. o: main. c mytool1.h
Errors generated during make execution are not fatal, especially when "-" exists before the command line, or make uses the "-k" option for execution. All fatal errors in the make Execution Process contain the prefix "***". All error messages have
(1) Development of LINUX "kernel module: 1. How to use required components A) compile all components into the kernel file: I. Defect 1: The Kernel File is too large Ii. defect 2: to add or delete a component, recompile the entire kernel. B) use the "
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.