Hi, I was trying to make darknet, but it returns a compilation error
# make
gcc -Iinclude/ -Isrc/ -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -O0 -c ./src/gemm.c -o obj/gemm.o
In file included from ./src/utils.h:5,
from ./src/gemm.c:2:
include/darknet.h:495: error: redefinition of typedef ‘network’
compilation terminated due to -Wfatal-errors.
make: *** [obj/gemm.o] Error 1
Can you please guide me to resolve this?
Thanks & Regards
Sujith
The same problem is encountered.
It needs to be solved:
modify file "include/darknet.h"
find typedef struct network's line(start and end lines)
/* typedef */ struct network{
……
……
}/* network */;
@loary That's didn't work.

Most helpful comment
modify file "include/darknet.h"
find typedef struct network's line(start and end lines)
/* typedef */ struct network{ …… …… }/* network */;