Right well I decided to make one of the DOS programs i had written into a fully fledged Win32 app.
Since windows code is large enough and the actual program code is pretty big i thought it wise to separate the actual program code and place it in another file.
Thing is i can't get it to compile.
I placed the function prototypes (with their relevant includes) in a header file, along with a structure definition, I put the code for the various functions (and their releveant includes) into a .cpp file of the same name. Then I included the header file (with "") in my main source file.......
well i get a wacky error:
Link Error : Undefined symbol: ?string_analyse@@YA?AUanalysis@@V?$basic_string@DU ?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z (struct analysis string_analyse(class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>, class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>>)) in
I must be doing something wrong here, but i can't figure out what, if I copy the source code directly into the main file and replace the include for my header file with the includes needed for the functions, then it works.