KerwinMa / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

multiple definition of ‘enum libyuv::FilterMode’ #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get a compile error when the top-level libyuv.h header is included.

[dan@eagle libyuv]$ cat l.cc
#include <libyuv.h>

[dan@eagle libyuv]$ g++ -Wall -I/opt2/src/libyuv/include -c l.cc -o l.o
In file included from /opt2/src/libyuv/include/libyuv.h:23:0,
                 from l.cc:1:
/opt2/src/libyuv/include/libyuv/scale_argb.h:22:6: error: multiple definition 
of ‘enum libyuv::FilterMode’
/opt2/src/libyuv/include/libyuv/scale.h:22:6: error: previous definition here

this is from svn rev 268

Original issue reported on code.google.com by d...@danny.cz on 18 May 2012 at 8:35

GoogleCodeExporter commented 9 years ago
okay, I thought that would be legal and not require one header include the 
other.
Will fix for next CL.

Original comment by fbarch...@google.com on 18 May 2012 at 6:25

GoogleCodeExporter commented 9 years ago
fixed in r269.
Thanks for the report!

Original comment by fbarch...@google.com on 18 May 2012 at 7:50