orangepi-xunlong / wiringOP

wiringPi for Orange Pi
GNU Lesser General Public License v3.0
396 stars 189 forks source link

Remove unnecessary name after struct #26

Closed depau closed 3 years ago

depau commented 4 years ago

Hello, This fixes the following build issue:

[Link (Dynamic)]
/usr/bin/ld: wpiExtensions.o:(.bss+0x408): multiple definition of `comDat'; drcNet.o:(.bss+0x400): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:143: libwiringPi.so.2.46] Error 1

comDat looks like an incomplete typedef but it actually declares a global variable. Twice, since it's included both in wpiExtensions.c and drcNet.c, which makes the build fail.

This removes the unneeded global var.

FerGT50 commented 3 years ago

Probably related to https://github.com/orangepi-xunlong/wiringOP/issues/32#issue-792669221

AndreiCherniaev commented 3 years ago

Probably related to #32 (comment)

Solution https://github.com/orangepi-xunlong/wiringOP/issues/35