|Re: Eclipse C++ error "Launch failed. Binary not found." HELP! [message #1402852 is a reply to message #1402811]
||Thu, 17 July 2014 20:23
| William A
Registered: July 2014
Okay, posting my thoughts usually helps me, and did so in this case.|
For this I will use "SDL2" as an example.
If you want to include a downloaded library then you need to set the following in Project->Properties->C++ Build->Settings:
-Include Paths (-l): /usr/include/SDL2
-Include Files (-include): SDL.h
-Libraries (-l): SDL2
-Library Search Path (-L): /usr/lib/i386-linux-gnu
(The full path and filename in my system is: /usr/lib/i386-linux-gnu/libSDL2.so
There is also one at: /usr/local/lib/libSDL2.so
But you do not include the prefix "lib" or the extension ".so")
Note that your search path may be different; you can use the "locate" command to find the path of files.
Hopefully this helps people who have the same error, due to being new at compiling and not knowing the correct syntax of commands called by Eclipse.
[Updated on: Thu, 17 July 2014 20:28]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02145 seconds