HI everyone, First I want to thanks all the help in here to solve my previous problem:)! It mains a lot to me!;)
Now, I would like to use the preivous program to build a static library and try to test it.
When I finish build the library and apply it for test, there are run times error occured:
1>fortest.obj : error LNK2019: unresolved external symbol "public: void __thiscall login::find(void)" (?find@login@@QAEXXZ) referenced in function _main
There are four of them and I know they are the same things.
I do not know how to fix them....:(
The code:
The header file is :
#include <fstream>
#include <string>
class login
{
public:
void setuser();
void write();
void read();
void find();
private:
char inputusername[99];
};
The code file is :
void find()
{
ifstream file;
file.open("file.txt");
string input=inputusername;
string input_line;
bool found = false;
while( file >> input_line ) {
This glamorous medium layered
Layered cut medium length
medium length layered cut.
Stylish Midi Layered Haircut
McAdams Medium Layered Cut
layer cut hairstyle.
Kristin Cavallari Medium Curls
Jessica Biel Medium Layered
Suzanne Sena Medium Layered
Kate Moss Medium Layered Cut
January Jones Medium Layered
Now, I would like to use the preivous program to build a static library and try to test it.
When I finish build the library and apply it for test, there are run times error occured:
1>fortest.obj : error LNK2019: unresolved external symbol "public: void __thiscall login::find(void)" (?find@login@@QAEXXZ) referenced in function _main
There are four of them and I know they are the same things.
I do not know how to fix them....:(
The code:
The header file is :
#include <fstream>
#include <string>
class login
{
public:
void setuser();
void write();
void read();
void find();
private:
char inputusername[99];
};
The code file is :
void find()
{
ifstream file;
file.open("file.txt");
string input=inputusername;
string input_line;
bool found = false;
while( file >> input_line ) {