charls-1.0 tests don't compile


Here's the error :
even@even-desktop:~/charls-1.0/build$ make
Scanning dependencies of target CharLS
[ 10%] Building CXX object CMakeFiles/CharLS.dir/header.cpp.o
[ 20%] Building CXX object CMakeFiles/CharLS.dir/interface.cpp.o
[ 30%] Building CXX object CMakeFiles/CharLS.dir/jpegls.cpp.o
Linking CXX static library libCharLS.a
[ 30%] Built target CharLS
Scanning dependencies of target charlstest
[ 40%] Building CXX object CMakeFiles/charlstest.dir/test/main.cpp.o
/home/even/charls-1.0/test/../defaulttraits.h: In constructor ‘DefaultTraitsT<sample, pixel>::DefaultTraitsT(LONG, LONG)’:
/home/even/charls-1.0/test/../defaulttraits.h:50: error: ‘BASIC_RESET’ was not declared in this scope
make[2]: *** [CMakeFiles/charlstest.dir/test/main.cpp.o] Erreur 1
make[1]: *** [CMakeFiles/charlstest.dir/all] Erreur 2
make: *** [all] Erreur 2
Fix is to add #include "header.h" in defaulttraits.h
Closed Jan 2, 2015 at 10:30 AM by vbaderks
This has been fixed on the master branch.


jdv wrote Dec 4, 2010 at 11:29 AM

This was seen for charls 1.0 release (the current default)?