I'm a bit of a NoOb with C++ programming. Anyways, I have a form happening with wxWidgets but can't get the build to work with Spectre-Cli.
The problem is in the makefile:
cc "${cflags[@]}" "$@" \
"api/c/aes.c" "api/c/spectre-algorithm.c" \
"api/c/spectre-algorithm_v0.c" "api/c/spectre-algorithm_v1.c" "api/c/spectre-algorithm_v2.c" "api/c/spectre-algorithm_v3.c" \
"api/c/spectre-types.c" "api/c/spectre-util.c" "api/c/spectre-marshal-util.c" "api/c/spectre-marshal.c" "src/spectre-cli-util.c" \
"${ldflags[@]}" "src/spectre-cli.c" -c
g++ -std=c++11 -o pmc formlogin.cpp main.cpp spectre-cli.o spectre-cli-util.o \
spectre-marshal.o spectre-marshal-util.o spectre-util.o \
spectre-types.o spectre-algorithm_v3.o spectre-algorithm_v2.o \
spectre-algorithm_v1.o spectre-algorithm_v0.o spectre-algorithm.o \
aes.o -I. $(wx-config --cxxflags --libs)
Because of the C and C++ difference I had to do an extern C and compile differently i.e. cc and g++ ..
So, I seem to get this error
Undefined symbols for architecture x86_64:
"_crypto_auth_hmacsha256_final", referenced from:
_spectre_hash_hmac_sha256 in spectre-util.o
"_crypto_auth_hmacsha256_init", referenced from:
_spectre_hash_hmac_sha256 in spectre-util.o
"_crypto_auth_hmacsha256_update", referenced from:
_spectre_hash_hmac_sha256 in spectre-util.o
"_crypto_generichash_blake2b_salt_personal", referenced from:
_spectre_kdf_blake2b in spectre-util.o
"_crypto_hash_sha256", referenced from:
_spectre_id_buf in spectre-types.o
"_crypto_pwhash_scryptsalsa208sha256_ll", referenced from:
_spectre_kdf_scrypt in spectre-util.o
"_delscreen", referenced from:
__spectre_getline in spectre-cli-util.o
"_echo", referenced from:
__spectre_getline in spectre-cli-util.o
"_endwin", referenced from:
__spectre_getline in spectre-cli-util.o
"_getmaxx", referenced from:
__spectre_getline in spectre-cli-util.o
"_getmaxy", referenced from:
__spectre_getline in spectre-cli-util.o
"_init_pair", referenced from:
__spectre_getline in spectre-cli-util.o
"_json_object_array_add", referenced from:
_spectre_get_json_data in spectre-marshal.o
"_json_object_array_get_idx", referenced from:
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_array_length", referenced from:
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_get_boolean", referenced from:
_spectre_get_json_boolean in spectre-marshal-util.o
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_get_double", referenced from:
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_get_int64", referenced from:
_spectre_get_json_int in spectre-marshal-util.o
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_get_object", referenced from:
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_get_string", referenced from:
_spectre_get_json_string in spectre-marshal-util.o
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_get_type", referenced from:
_spectre_set_json_data in spectre-marshal-util.o
"_json_object_is_type", referenced from:
_spectre_get_json_data in spectre-marshal.o
"_json_object_new_array", referenced from:
_spectre_get_json_data in spectre-marshal.o
"_json_object_new_boolean", referenced from:
_spectre_get_json_data in spectre-marshal.o
"_json_object_new_double", referenced from:
_spectre_get_json_data in spectre-marshal.o
"_json_object_new_double_s", referenced from:
_spectre_get_json_data in spectre-marshal.o
"_json_object_new_int", referenced from:
_spectre_marshal_write in spectre-marshal.o
"_json_object_new_object", referenced from:
_spectre_get_json_data in spectre-marshal.o
_spectre_get_json_object in spectre-marshal-util.o
"_json_object_new_string", referenced from:
_spectre_get_json_data in spectre-marshal.o
"_json_object_object_add", referenced from:
_spectre_marshal_write in spectre-marshal.o
_spectre_get_json_data in spectre-marshal.o
_spectre_get_json_object in spectre-marshal-util.o ...
Please help me! Thanks again very much!