#Help needed #ifndef HELPER_H
1 messages · Page 1 of 1 (latest)
This is what's in my .h file
#ifndef HELPER_H
#define HELPER_H
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <bitset>
#include <vector>
#include <limits>
namespace Helper {
int GetValidatedInt(const char* strMessage, int nMinimumRange = 0, int nMaximumRange = 0);
int getRandoInt(int min, int max);
int whatsUrOrder(const std::string& menuName, const std::vector<std::string>& menuList);
void DisplayIntForms(int value);
void InputBufferBGone();
}
#endif // !HELPER_H
Can you share the linker errors?
Generally a linker error is going to come from:
Declaring (and using) a function in a .h file but not implementing it in the .c/.cpp file, or
Declaring and implementing the function properly but not telling your compiler to compile the .c/.cpp file
You can get a LNK2019 if you didn't define a function that you declared, by any chance would you mind sending the rest of your code? There doesn't seem to be any linker errors directly in the header file
Or if you send your project or .sln file/folder I'd be glad to just look through and run it on my computer
yes i can share the rest but i have to DM it to you
i fixed it lol