kimandrik / IDASH2017

Other
25 stars 10 forks source link

makefile error!!!! #4

Open sirlancer opened 6 years ago

sirlancer commented 6 years ago

hello, i am new here, I meet an issue: Building file: ../src/CipherGD.cpp Invoking: GCC C++ Compiler g++ -I/Users/Han/Documents/Git/Programming/HEAANBOOT/HEAANBOOT/src -I/usr/local/include -I/Users/kimandrik/git/HEAANBOOT/HEAANBOOT/src -O3 -pthread -c -std=c++11 -MMD -MP -MF"src/CipherGD.d" -MT"src/CipherGD.o" -o "src/CipherGD.o" "../src/CipherGD.cpp" In file included from ../src/CipherGD.cpp:9:0: ../src/CipherGD.h:12:20: fatal error: Scheme.h: No such file or directory compilation terminated. src/subdir.mk:27: recipe for target 'src/CipherGD.o' failed make: *** [src/CipherGD.o] Error 1 how can i solve this problem? thanks!

kimandrik commented 6 years ago

Hello

I think in the problem is that in run/makefile path to library and in run/src/subdir.mk paths to headers are hardcoded to developers paths. I suggest you to change paths in run/makefile and run/src/subdir.mk with your own paths

For example in run/src/subdir.mk you can remove following includes: -I/Users/Han/Documents/Git/Programming/HEAANBOOT/HEAANBOOT/src -I/Users/kimandrik/git/HEAANBOOT/HEAANBOOT/src and add a path to your HEAANBOOT src folder.

sirlancer commented 6 years ago

Hello Thank for your reply. I have changed the path and it works. It shows that "Finished building target: HEML" , but when I type "./HEML", it shows : terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_M_construct null not valid Aborted (core dumped)

how can i solve this problem? thanks! @kimandrik

kimandrik commented 6 years ago

Some arguments should be passed to run the program Open please HEML.cpp file there are comments about parameters

parameters:

For example you can run ./HEML "../data/uis.txt" 0 5 3 1 1 1 5 1

sirlancer commented 6 years ago

Thank you so much! @kimandrik