ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
Im working on a project to interface a simple USB chip, but this really isn't important in this case. The problem is that I cannot compile, because I get an "Undefined rereference to 'ftdi_init' error. ftdi_init is a function.
Here's my case. I've got two libraries, one called ftdilib library, which needs the usblib library. I've installed both libraries in the standard way ( tar, configure, make, make install ). Here is what doesn't compile:
If I compile this I get an error: Undefined reference to 'ftdi_init'. I've checked ftdi.h and the ftdi_init declaration is in it. The ftdi.c file also contains the code for ftdi_init function. However, I couldn't find any #include <ftdi.c> in the ftdi.h.
So what are the most frequent causes for errors like mine?
Thanks that worked! It compiled successfully. However, I've got one more problem. The library install ( configure, make, make install ) does not seem to work. When I compile and run the program I get an error: error loading shared libraries libftdi.so.0: cannot open shared library object: No such file or directory.
So which files do I need of linux to see them?
Thanks for all the help,
George Mercury
Last edited by george_mercury; 07-13-2004 at 03:53 PM.
umm where is this library being installed..you have to specify this at gcc command line as -L option to tell the linker where it has to look for the library in addition to the standard library locations like /usr/lib, /lib, et al...try to put your library in the standard path ...if it has been compiled and generated properly after make, make install ..and stuff
this is how you might need the command to look like....
Hello, I have a similar problem, something can help me with this question, is possible to obtain a share library that have errors? that is, g++ to stop the construction of the share libraries when this found an error ? or this can to continue the building of the share library with errors,thanks in advance, if the answers is yes, i have a big problem because g++ don't show where the library have erros.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.