Hello, can someone look at this main function and tell if there's really an "undefined reference" to basically any of these functions?
The photo is from my header file, and in the functions file i literally defined every each of them.
What's happening?
#include <cstring>
#include "functions.hpp"
#include <iostream>
#include <sstream>
#include <iomanip>
#include <random>
int main(int argc, char* argv[]) {
Node* root = nullptr;
int value;
srand((unsigned) time(NULL));
int i = rand();
char teststring[] = "add";
while (true){
if (argc > 1) {
if (std::strcmp(argv[i], "add" + value))
{
root = insert(root, value);
}
else if (std::strcmp(argv[i], "graph"))
{
printTree(root, 0);
}
else if (std::strcmp(argv[i], "remove" + value))
{
root = remove(root, value);
}
else if (std::strcmp(argv[i], "print"))
{
printAscending(root);
}
}
}
return 0;
}