home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!mukluk!int401a
- From: int401a@mdw045.cc.monash.edu.au (Mr D. Vladicic)
- Subject: help in C++
- Message-ID: <1992Sep9.012350.1357@monu6.cc.monash.edu.au>
- Sender: news@monu6.cc.monash.edu.au (Usenet system)
- Organization: Monash University
- Date: Wed, 9 Sep 1992 01:23:50 GMT
- Lines: 154
-
-
- Iam a final year computer science student currently working on a
- c++ project. The problem i have is that when i make my program
- i get the following message
-
- ld:
- Undefined:
- _$_4User
- collect: /usr/bin/ld returned 1 exit status
- *** Error code 1
-
-
- i have linked the program to all its components e.g User
- the program will compile except it wont give executable
- permission to the final object code.
-
- When i change mode the program will complete all its tasks
- till it finishes at which point it gives a segmentation fault
-
- WHAT I would like to KNOW is what causes the error is it the User constructor
- or is it something else
- example of the constructor is provided below
-
- User::User(String& user_name,String& password)
- {
-
- person= new Personal; // simple struct
- if (!Check_password(user_name, password))
- {
- cout<<" you bombed" << endl;
- exit(1);
- //give an error message and abort
-
- }
-
-
- Finances=new Financial(user_name);
- History=new Tipping_History(user_name);
- }
-
- any assistance would be greatly appreciated
-
- int401a@mdw045.cc.monash.edu.au
- Dragan Vladicic
-
- From: int401a@mdw045.cc.monash.edu.au (Mr D. Vladicic)
- Path: mukluk!int401a
- Newsgroups: gnu.g++.help
- Distribution: world
- Followup-To:
- Organization: Monash University
- Subject: C++ construtor problem
- Keywords:
-
-
- Iam a final year computer science student currently working on a
- c++ project. The problem i have is that when i make my program
- i get the following message
-
- ld:
- Undefined:
- _$_4User
- collect: /usr/bin/ld returned 1 exit status
- *** Error code 1
-
-
- i have linked the program to all its components e.g User
- the program will compile except it wont give executable
- permission to the final object code.
-
- When i change mode the program will complete all its tasks
- till it finishes at which point it gives a segmentation fault
-
- WHAT I would like to KNOW is what causes the error is it the User constructor
- or is it something else
- example of the constructor is provided below
-
- User::User(String& user_name,String& password)
- {
-
- person= new Personal; // simple struct
- if (!Check_password(user_name, password))
- {
- cout<<" you bombed" << endl;
- exit(1);
- //give an error message and abort
-
- }
-
-
- Finances=new Financial(user_name);
- History=new Tipping_History(user_name);
- }
-
- any assistance would be greatly appreciated
-
- int401a@mdw045.cc.monash.edu.au
- Dragan Vladicic
-
- From: int401a@mdw045.cc.monash.edu.au (Mr D. Vladicic)
- Path: mukluk!int401a
- Newsgroups: gnu.g++.help
- Distribution: world
- Followup-To:
- Organization: Monash University
- Subject: C++ construtor problem
- Keywords:
-
-
- Iam a final year computer science student currently working on a
- c++ project. The problem i have is that when i make my program
- i get the following message
-
- ld:
- Undefined:
- _$_4User
- collect: /usr/bin/ld returned 1 exit status
- *** Error code 1
-
-
- i have linked the program to all its components e.g User
- the program will compile except it wont give executable
- permission to the final object code.
-
- When i change mode the program will complete all its tasks
- till it finishes at which point it gives a segmentation fault
-
- WHAT I would like to KNOW is what causes the error is it the User constructor
- or is it something else
- example of the constructor is provided below
-
- User::User(String& user_name,String& password)
- {
-
- person= new Personal; // simple struct
- if (!Check_password(user_name, password))
- {
- cout<<" you bombed" << endl;
- exit(1);
- //give an error message and abort
-
- }
-
-
- Finances=new Financial(user_name);
- History=new Tipping_History(user_name);
- }
-
- any assistance would be greatly appreciated
-
- int401a@mdw045.cc.monash.edu.au
- Dragan Vladicic
-
-
-