I'm trying to include udp-client.c in udp-server.c to share a struct between them

But I keep getting this error

udp-server.c:67:1: error: redefinition of autostart_processes

In file included from udp-server.c:30:0:

client/udp-client.c:74:1: note: previous definition of autostart_processes was here

make: * [udp-server.co] Error 1

Process returned error code 2

which means that the autostart_processes function is being redefined and is found in both classes.

Do you have any idea what should I do ?

More John Boutros's questions See All
Similar questions and discussions