-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling on cluster #15
Comments
One more question, if installing from the source code, do I still need glic 2.14 or above version during the installation and later use? I appreciate your time for reply. |
The problem is due to the undefined macro "COMMAND_LINE_VERSION". Lines 48 to 62 in wDimEst.h #ifdef COMMAND_LINE_VERSION which means that if macro COMMAND_LINE_VERSION is define, then compile the first part of the code. Otherwise, compile the second part. The error complains the line 57 which is the second part. This does not make sense since in comment line version, the second part should not be compiled. In g++, option -DCOMMAND_LINE_VERSION defines the COMMAND_LINE_VERSION, (see the Makefile for details.) However, it seems that intel compiler does not recognize the option. An easy way to solve the problem is to un-comment the line 24 in wdef.h. It would be nice to figure out how to define a macro-object as an option of Intel compiler. Let me know if the problem is solved. |
Thanks for your reply. |
I believe the version you have is out of date. Please download the source code by clicking "Clone or download" under the Code tab. Also make sure you choose master branch, which is the default one. The 24th line of wdef.h should be: Best, |
Hi Wen, |
Thank you. It is a problem and the code does not work on all compilers. We fixed it in the new version. Wen |
Great to know that. |
I'm following the installation instructions from the Manual v1 (released 4/4/2917) 3 Installation, "Command-line versions of TreeScaper can be generated by following these instructions" (Step (1), (2)...., and now at the last step (Step 6: (6) Now, in Terminal type “make” to compile Treescaper.
)
I wish to compile the Command-line versions of TreeScaper
from the source code by g++ (tried Intel compiler as well), but following error appears:
g++ CLVmain.cpp -w randgen.cpp wstring.cpp warray.cpp wmapping.cpp wmix.cpp wfile.cpp wimport_form.cpp wDimEst.cpp wNLDR.cpp Trees.cpp TreeOPE.cpp Sparse_matrix.cpp greedy_louvain.cpp graph.cpp slicer.cpp label-map.cc community.cpp info.cpp hashfunc.cc hash.cc hungarian.c ClusterForest.cpp ClusterInstance.cpp Forest.cpp rspr.cpp SiblingPair.cpp SPRLCA.cpp SPRNode.cpp UndoMachine.cpp /home/gmount/clapack-3.2.1-CMAKE/lapack_LINUX.a /home/gmount/clapack-3.2.1-CMAKE/blas_LINUX.a /home/gmount/clapack-3.2.1-CMAKE/F2CLIBS/libf2c.a -lm -I/home/gmount/clapack-3.2.1-CMAKE/INCLUDE -DCOMMAND_LINE_VERSION -o CLVTreeScaper
In file included from CLVmain.cpp:38:0:
wDimEst.h:57:5: error: ‘DimEst::DimEst(String, String, String, String)’ cannot be overloaded
In file included from CLVmain.cpp:38:0:
wDimEst.h:48:5: error: with ‘DimEst::DimEst(String, String, String, String)’
In file included from wDimEst.cpp:26:0:
wDimEst.h:57:5: error: ‘DimEst::DimEst(String, String, String, String)’ cannot be overloaded
In file included from wDimEst.cpp:26:0:
wDimEst.h:48:5: error: with ‘DimEst::DimEst(String, String, String, String)’
If Intel compiler is used, the error is basically the same:
icpc CLVmain.cpp -w randgen.cpp wstring.cpp warray.cpp wmapping.cpp wmix.cpp wfile.cpp wimport_form.cpp wDimEst.cpp wNLDR.cpp Trees.cpp TreeOPE.cpp Sparse_matrix.cpp greedy_louvain.cpp graph.cpp slicer.cpp label-map.cc community.cpp info.cpp hashfunc.cc hash.cc hungarian.c ClusterForest.cpp ClusterInstance.cpp Forest.cpp rspr.cpp SiblingPair.cpp SPRLCA.cpp SPRNode.cpp UndoMachine.cpp /home/ychen64/clapack-3.2.1-CMAKE/lapack_LINUX.a /home/ychen64/clapack-3.2.1-CMAKE/blas_LINUX.a /home/ychen64/clapack-3.2.1-CMAKE/F2CLIBS/libf2c.a -lm -I/home/ychen64/clapack-3.2.1-CMAKE/INCLUDE -DCOMMAND_LINE_VERSION -o CLVTreeScaper
wDimEst.h(57): error: invalid redeclaration of member function "DimEst::DimEst(String, String, String, String)" (declared at line 48)
DimEst(String filename, String meth, String dataform, String para_fname)
^
wDimEst.h(57): error: invalid redeclaration of member function "DimEst::DimEst(String, String, String, String)" (declared at line 48)
DimEst(String filename, String meth, String dataform, String para_fname)
^
We are using Linux RHEL6. Could you help? Thanks,
The text was updated successfully, but these errors were encountered: