Welcome! Log In Create A New Profile


How to solve the "undefined reference to `MAJOR' MINOR" problem?

Posted by kernelnewbiesxin 
How to solve the "undefined reference to `MAJOR' MINOR" problem?
September 19, 2017 03:50AM
When I compile some C code in linux . A fault "undefined reference to `MAJOR'" happened . Where is the MAJOR macro defined? The code file includes head file list :
#include <stdio.h> /* fprintf */
#include <string.h>
#include <stdlib.h> /* contains exit */
#include <sys/types.h> /* unistd.h needs this */
#include <sys/stat.h>
#include <linux/fs.h>
#include <unistd.h> /* contains read/write */
#include <fcntl.h>
Obviously all head files above do not contain the MAJOR defination.
printable calendar 2018
September 24, 2017 06:00AM
If you want to search any calendar then you can take help from here. Our website is best for searching calendar.
free printable calendar 2018
Manual states you should include sys/sysmacros.h ('man major').

Your Email:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 10 plus 5?