Darknet: Compilation error

Created on 8 Jun 2018  Â·  3Comments  Â·  Source: pjreddie/darknet

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

Most helpful comment

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

All 3 comments

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.
wx20180703-143933 2x

Was this page helpful?
0 / 5 - 0 ratings