orangepi-xunlong / wiringOP

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

Orange pi 4B build err multiple definition of 'comDat'; drcNet.o #35

Closed AndreiCherniaev closed 3 years ago

AndreiCherniaev commented 3 years ago

I try build wiringPi for Orange pi 4B on Ubuntu 20 with GCC 10.2 but multiple definition of 'comDat'; drcNet.o:(.bss+0x400): first defined here

This is because drcNetCmd.h 1) Need #pragma once 2) Need typedef for struct. This is right code: typedef struct drcNetComStruct { uint32_t pin ; uint32_t cmd ; uint32_t data ; } comDat ;

orangepi-xunlong commented 3 years ago

Thank you. It has been corrected!