nexx512 / txppm

RC-Transmitter ppm signal to joystick input converter through the microphone jack
GNU General Public License v3.0
23 stars 5 forks source link

Compilation errors #2

Closed Slattsveen closed 6 years ago

Slattsveen commented 6 years ago

Hi, and thanks for pushing support of this program!

However, I'm getting a bunch of compilation errors. The first one I think I have a possible solution to. "ISO C90 forbids mixed declarations and code", found a fix here: https://stackoverflow.com/questions/13291353/iso-c90-forbids-mixed-declarations-and-code-in-c On my system at least the compiler was defaulting to some outdated standard (c89). BTW, I'm running Linux Mint 18.2 64bit on an Intel Core duo p9700.

I added the following to the Makefile, and the ISO C90 error disapeared: CC = gcc ccflags-y = -Wall -std=c99

After this I run into some issues with the included kernel.h, which is far beyond my scope of understanding :) Error output from trying to "make" in the /module folder is attached. kernel_make_results.txt

nexx512 commented 6 years ago

Switching to c99 doesn't work here because this will cause errors in the kernel header files which can't be changed. Changing the source code to fix the error would be more appropriate.