khmer icon indicating copy to clipboard operation
khmer copied to clipboard

make libtest no longer tested, and is broken

Open mr-c opened this issue 6 years ago • 1 comments

This is my fix so far:

diff --git a/Makefile b/Makefile
index add4ba69..9a3d78f5 100644
--- a/Makefile
+++ b/Makefile
@@ -293,12 +293,13 @@ libtest: FORCE
        cd src/oxli && \
         $(MAKE) clean && \
         $(MAKE) all && \
-        $(MAKE) install PREFIX=../install_target
+        $(MAKE) install PREFIX=../../install_target
        test -d install_target/include
        test -f install_target/include/oxli/oxli.hh
        test -d install_target/lib
        test -f install_target/lib/liboxli.a
        $(CXX) -std=c++11 -o install_target/test-prog-static \
+               -I third-party/rollinghash/ -I third-party/cqf \
                -I install_target/include src/oxli/test-compile.cc \
                install_target/lib/liboxli.a
        $(CXX) -std=c++11 -o install_target/test-prog-dynamic \

But then I get this error:

src/oxli/test-compile.cc: In function ‘int main()’:
src/oxli/test-compile.cc:46:26: error: variable ‘oxli::Countgraph test’ has initializer but incomplete type
     oxli::Countgraph test(1,1);
                          ^

mr-c avatar Mar 16 '18 17:03 mr-c

Something isn't working with a forward reference somewhere. I have been unsuccessful in teasing this apart, but perhaps @camillescott or @luizirber might be able to shed some light.

standage avatar Mar 19 '18 23:03 standage