You can get around this by executing the actual executable instead of the libtool script. The executable file is usually located in .libs/ . Therefore, in your debug configuration on the main tab, set the C/C++ Application value to approximately .libs/my_application . Then you will need to update LD_LIBRARY_PATH in your debug configuration.
Go to the environment tab of your debug configuration and create a new environment variable called LD_LIBRARY_PATH . You need to add the .libs directory to the path. Therefore, the value should look like this: ${project_loc}/.libs:$LD_LIBRARY_PATH if your .libs folder is located directly inside the project directory.
source share