Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have a cpp code, which we have been using in RHEL4 compiled using g++ version 3.4.6.We are now trying to port our application to RHEL5. For this, as the first step, i copied our code to a RHEL5 box and tried to compile the code.
I get "Undefined Reference To" linker error. Kindly note that i have verified all the normal causes for linker errors. Its all fine.
Linking fails for few functions in say file rypt.cpp. Those functions are actually declared in the header file which is already included.
The shared library containing the fucntion implementations is available at the linked path. Library path & name given in the linking command -L path and -llibname are all proper.Hence these are not the cause for the error.
undefined reference to `h::setKeyFile(char const*)'
rypt.cpp.text+0x211): undefined reference to `h::readPassword()'
rypt.cpp.text+0x229): undefined reference to `h::string2CString(ACE_String_Base<char> const&)'
rypt.cpp.text+0x233): undefined reference to `h::decrypt(char const*)'
rypt.cpp.text+0x473): undefined reference to `h::readPassword()'
rypt.cpp.text+0x47e): undefined reference to `h::string2CString(ACE_String_Base<char> const&)'
rypt.cpp.text+0x488): undefined reference to `h::encrypt(char const*)'
collect2: ld returned 1 exit status
I have doubts in following:
1.Compiler version is changed.It is g++ v4.1.2 that is used in RHEL5. Can that cause problem
2.Compiler configurations look different for the current g++ 4.1.2 and the one we were already using g++v3.4.6.Please find below the compiler versions/configurations.
Can some one let me know if g++4.1.2 is expected have some linker errors ? What could be causing such errors, could there be any linker /compiler settings that is needed which i am missing ?
The answer is the same today as it was yesterday in your other thread. If you do not have a paid subscription you cannot access RH's repo. If you do not want to pay for the subscription use Centos instead. Centos is RHEL with the logos removed (made from the same source). It is free to download/update(unlike RHEL).
Thank you Lazlow for your response. My server is remotely placed and I was not sure about the subscriptions. So I am checking that. Anyways, my machine is not registered with RHN, so i could not download that package.