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.
Ok...it's telling you clearly that it can't read that file. Use a different image format for what you're trying to do, or change the name to something without spaces and try it. You've been asking about C++ programming for NINE YEARS now; after all that time you should know the basics of debugging your code.
I've tried for passing images as jpg, bmp, png but all have same errors. what should i do
You should re-read the previous reply. Again, you were told to remove the spaces from the file name/path...did you? Did you read the documentation on how to do what you're after, because it appears as if your syntax is wrong.
Again: you've been coding for NINE YEARS; you should know how to debug your own code and read API documentation at this point.
undefined reference to /usr/local/lib/libSDL2_ttf.so undefined reference to `SDL_RWseek
hi to all, I've centos7.5 in VM. I am trying to compile to SDL2 program. but having following problem :-
Code:
/usr/local/lib/libSDL2_ttf.so||undefined reference to `SDL_RWseek'|
/usr/local/lib/libSDL2_ttf.so||undefined reference to `SDL_RWclose'|
/usr/local/lib/libSDL2_ttf.so||undefined reference to `SDL_RWtell'|
/usr/local/lib/libSDL2_ttf.so||undefined reference to `SDL_RWsize'|
/usr/local/lib/libSDL2_ttf.so||undefined reference to `SDL_RWread'|
||error: ld returned 1 exit status|
The error indicates that you have either not told it to link the SDL libs, or have not installed the needed SDL package.
My knowledge is not current with SDL, but a quick search for the errors turns up many hits including this one which appears to be related.
In the case of linker errors, having the source code is often not particularly helpful to others trying to understand the problem. It would be more helpful if you could show the complete compiler command which produces the errors.
Please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
This thread is a continuation of your previous question about the same code. As neither thread actually asks a specific question which would distinguish them as separate issues they are being merged as duplicates.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.