Your Makefile is not correct. Try this Makefile.
Note the := (colon equal) for obj-m and KDIR and PWD
Note that there is a tab (not spaces) at the begining of the command under all:
and a tab...
Type: Posts; User: xb12x; Keyword(s):
Your Makefile is not correct. Try this Makefile.
Note the := (colon equal) for obj-m and KDIR and PWD
Note that there is a tab (not spaces) at the begining of the command under all:
and a tab...
The folder's path contains spaces. Create a folder with no spaces in the path:
/home/johann/drivers/hello
It's not just about finding a command-line option.
To write Position Independent Code in assembly you'll to need to know almost as much as the GCC tools know about PIC. Which means you'll need to...
Remove the semicolons from your macros
#define IN_WORD 1
#define NOT_IN_WORD 0
This got me to wondering just how pervasive the JVM is on PC's. The extermes I found using a simple google search are 70% and 90%. Even if it's 'only' 70% I'm a little suprised it's that high.
That is a valid question if your goal is to be a working, professional developer.
If so, I suggest that you pick an area of development you are interested in and then find its most popular...
I think this is a common misconception.
Learning assembly programming will not necessarily teach you how a machine works. I've met many people that know how to write assembly but know next to...
You should check out the family of PIC Microcontrollers sold by Microchip Technology. You are sure to find a PIC microcontroller that supports what you need, and ONLY what you need. To get you...
There are others that are also cross platform. Python is my current favorite.
To compile 4.1.c and link it to the math library, remove the -c option from your build command.
The -c option causes the build to not link, it only compiles.
You need to link to create an...
Add -lm to your link options, since pow() is from the math library:
gcc myprogram.c -lm
Endianess problems are sometimes the result of looking at word data as bytes or byte data as words.
A word viewed in 16-bit word form looks like this: 67FEh
That same word viewd in 8-bit byte...
Try the command using a small t on tkinter instead of the capital T:
python3 -m tkinter
From
http://docs.python.org/2/library/tkinter.html
"Note: Tkinter has been renamed to tkinter in...
I've tried many Python IDE's.
I like Wingware's Wing IDE 101. It's a free version of their professional product. It works on both Linux and Windows and with any version of Python, 2.x.x or 3.x.x....
try changing
fprintf( OUTD , "%s" , SPARAM[ i ] );
to
fprintf( OUTD , "%s" , (char *)(SPARAM+i) );
I would be interested to know why somebody might ever want to do this, other than for a 'bad code' contest.
Think about the maintenance nightmare.
Try something like this, replacing the linux version with the one you have:
gcc -Wall -D__KERNEL__ -DMODULE -I/usr/src/linux-2.6.28-11-generic/include -O -g -I.. -c -o trendchip.o trendchip.c
...
Yes, here is an idea:
Follow the link that Bachstelze took the time to find for you.
Try moving the attribute __wur to the beginning of the line.
__wur ssize_t write (int __fd, __const void *__buf, size_t __n)
This compiles with gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Look at line 106.
One thing to keep in mind: if your instructor uses Windows to teach this class, and grade your homework, you can run into differences from Linux. So keep Windows available just in case.
I'm sorry to hear that. You have my sympathies.
If your reasons for learning C++ are career based, then stick with Windows for now. You're much more likely to have opportunities to work in a Windows environment than a Linux environment.
But if...
Another reason I dislike MS
Rather than the exhibiting the popular knee-jerk reaction when confronted with something like this, you should view it as an opportunity. This is the type of knowledge...
Well, the easiest answer is that on a Linux system it's done for you. Read the Linux Programmer's Manual pages for msr and cpuid (by entering man msr and man cpuid on your Linux system). Or Google...