tmilev / calculator

https://calculator-algebra.org
Other
8 stars 0 forks source link

build error #22

Closed lework closed 2 years ago

lework commented 2 years ago

os: centos 7.9 x64

# make -j8 nossl=1 noMongo=1
No mongoDB requested.
No openssl requested.
Compile flags: -Wpedantic -Wall -Wextra -std=c++0x  -c -pthread
Linker flags part 1: -pthread 
Linker flags part 2: 
g++ -pthread   bin/crypto_public_domain_aes.o bin/crypto_public_domain_ripemd.o bin/crypto_public_domain.o bin/web_api.o bin/web_api_test.o bin/webserver.o bin/abstract_syntax_notation_one_decoder.o bin/abstract_syntax_notation_one_decoder_test.o bin/calculator_conversions_1.o bin/calculator_educational_functions_1.o bin/calculator_expressions.o bin/calculator_expression_context.o bin/calculator_expressions_test.o bin/calculator_evaluation_steps.o bin/calculator_lie_theory.o bin/calculator_finite_group_characters.o bin/calculator_function_registration.o bin/calculator_function_registration_extra.o bin/calculator_function_registration_scientific.o bin/calculator_function_registration_lie_theory.o bin/calculator_html_interpretation.o bin/calculator_function_registration_vector_partition_function.o bin/calculator_html_routines.o bin/calculator_implementation_1.o bin/calculator_implementation_2.o bin/calculator_implementation_3.o bin/calculator_implementation_4.o bin/calculator_implementation_5.o bin/calculator_implementation_6.o bin/calculator_implementation_7.o bin/calculator_implementation_8_polynomial.o bin/calculator_implementation_9.o bin/calculator_implementation_10.o bin/calculator_implementation_11_trigonometry.o bin/calculator_javascript_graphics.o bin/calculator_latex_routines.o bin/calculator_parsing_routines.o bin/calculator_parsing_routines_test.o bin/calculator_typed_functions_1.o bin/calculator_webserver_functions.o bin/crypto.o bin/crypto_sha3.o bin/crypto_test.o bin/database.o bin/database_test.o bin/database_mongo.o bin/database_fallback_json.o bin/database_mongo_calculator.o bin/date_time_wrappers.o bin/exam_routines.o bin/global_objects.o bin/global_test.o bin/html_snippets.o bin/json.o bin/json_test.o bin/general_strings_test.o bin/math_algebraic_numbers.o bin/math_algebraic_numbers_test.o bin/math_elliptic_curves.o bin/math_finite_group_characters.o bin/math_floating_point.o bin/math_graph.o bin/math_hard_coded_data.o bin/math_implementation_1.o bin/math_implementation_1_test.o bin/math_implementation_2.o bin/math_implementation_3.o bin/math_implementation_4.o bin/math_implementation_5.o bin/math_implementation_6.o bin/math_implementation_5_test.o bin/math_implementation_6_test.o bin/math_semisimple_lie_algebras.o bin/math_semisimple_lie_root_subalgebras.o bin/math_semisimple_lie_subalgebras.o bin/multiprocessing.o bin/multitasking.o bin/random_system.o bin/source_code_formatter.o bin/string_constants.o bin/symmetric_groups_and_generalizations.o bin/system_functions.o bin/test.o bin/main.o bin/transport_layer_security.o bin/transport_layer_security_implementation.o bin/transport_layer_security_openssl.o bin/transport_layer_security_test.o bin/web_routines_1.o bin/web_assembly.o bin/webserver_fork.o   -o calculator 
bin/symmetric_groups_and_generalizations.o: In function `FiniteGroup<Matrix<Rational> >::computeConjugacyClassSizesAndRepresentativesWithOrbitIterator()':
symmetric_groups_and_generalizations.cpp:(.text._ZN11FiniteGroupI6MatrixI8RationalEE61computeConjugacyClassSizesAndRepresentativesWithOrbitIteratorEv[_ZN11FiniteGroupI6MatrixI8RationalEE61computeConjugacyClassSizesAndRepresentativesWithOrbitIteratorEv]+0x25e): undefined reference to `Polynomial<Rational>::hashFunction(Polynomial<Rational> const&)'
bin/symmetric_groups_and_generalizations.o: In function `FiniteGroup<PermutationR2>::computeConjugacyClassSizesAndRepresentativesWithOrbitIterator()':
symmetric_groups_and_generalizations.cpp:(.text._ZN11FiniteGroupI13PermutationR2E61computeConjugacyClassSizesAndRepresentativesWithOrbitIteratorEv[_ZN11FiniteGroupI13PermutationR2E61computeConjugacyClassSizesAndRepresentativesWithOrbitIteratorEv]+0x1de): undefined reference to `Polynomial<Rational>::hashFunction(Polynomial<Rational> const&)'
collect2: error: ld returned 1 exit status
make: *** [bin_calculator] Error 1
tmilev commented 2 years ago

Hi lework: I could not reproduce the issue. Here's what I did:

  1. I rented a centos 7 droplet on digital ocean.
    CentOS Linux release 7.9.2009 (Core)
  2. I installed git with yum install git
  3. I installed gcc with yum install gcc-c++
  4. I checkout the calculator project: git clone https://github.com/tmilev/calculator.git
  5. I made the calculator: make -j2 nossl=1 noMongo=1
    (I used -j2 as I rented a very slow machine).

The calculator project appeared to build "as is".

Can you give me more information? Did you try pulling the latest version:

git pull ... ?

lework commented 2 years ago

I downloaded the master directly https://github.com/tmilev/calculator/archive/refs/heads/master.zip

lework commented 2 years ago

I used git clone to download and compile it successfully, thanks for your reply.

tmilev commented 2 years ago

If you don't mind I will mark this as closed, let me know if the issue shows up again.

Many thanks for the feedback!