| | |
Help !! With the error Posted..
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2007
Posts: 35
Reputation:
Solved Threads: 0
Hi All,
Please Help me out with this below mentioned error.
Thanks
Rohit
Please Help me out with this below mentioned error.
C++ Syntax (Toggle Plain Text)
librohit.a: undefined reference to `MODEL_NAME' librohit.a: undefined reference to `FT_MODEL' librohit.a: undefined reference to `STOCK_MODEL' librohit.a: undefined reference to `FUTURE_MODEL' librohit.a: undefined reference to `COArgs::COArgs()' librohit.a: undefined reference to `std::strstreambuf::freeze(int)' librohit.a: undefined reference to `RWMutex::wLock()' librohit.a: undefined reference to `OUTSTRIKE_PARAMETERS' librohit.a: undefined reference to `sec_login_sql_client' librohit.a: undefined reference to `sec_login_ctor' librohit.a: undefined reference to `RWMutex::wUnlock()' librohit.a: undefined reference to `RWMutex::rLock()' librohit.a: undefined reference to `RWMutex::rUnlock()' librohit.a: undefined reference to `String::String(char)' librohit.a: undefined reference to `String::hashval() const' collect2: ld returned 1 exit status
Thanks
Rohit
•
•
Join Date: Jul 2007
Posts: 35
Reputation:
Solved Threads: 0
I am trying to build exe bbut getting the following above said error..
I am tring to build below mention code.
In the above code i have defined my own String claa inherited from std::string.
Plz Help
Thanks
Rohit
I am tring to build below mention code.
C++ Syntax (Toggle Plain Text)
#include <iostream> #include <fstream.h> #include <stdlib.h> #include "RohitSahni/String.h" using namespace std; int main(int argc, char **argv) { String testString("Hellow"); cout << "*********"<<testString.c_str(); }
In the above code i have defined my own String claa inherited from std::string.
Plz Help
Thanks
Rohit
line 2: unless you are using a very old compiler such as the original Turbo c++ you should be using header files without the .h extension because there have been some changes.
You should have named your derived string something other than String.h because that is already the name of standard C string functions. Its not good to duplicate file names like that because it will eventually become confusing.
My guess about your specific problem is that you did not include one or more required libraries in the project. Did you include the implementation code for your derived class ?
You should have named your derived string something other than String.h because that is already the name of standard C string functions. Its not good to duplicate file names like that because it will eventually become confusing.
My guess about your specific problem is that you did not include one or more required libraries in the project. Did you include the implementation code for your derived class ?
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- Error message on hotmail status bar (Troubleshooting Dead Machines)
- Error Microsoft OLE DB/ODBC (0x80004005) Access (ASP)
- IE 6 and encounters problem closes error Comct32.dll tech error?? (Web Browsers)
- DNS error with IE -- Posted HIJACK Log (Viruses, Spyware and other Nasties)
- IE 6.0 The page cannot be displayed error (Viruses, Spyware and other Nasties)
- Errors in My XP Error Log. (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: Turbo C compiler error
- Next Thread: Equivalent ofstream to MFC
| Thread Tools | Search this Thread |
api application array arrays based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






