Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8447691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:14:34+00:00 2026-06-10T10:14:34+00:00

I have a project involving shared libraries ie: mylib.so (test) program using these shared

  • 0

I have a project involving

  • shared libraries ie: mylib.so
  • (test) program using these shared libraries ie: test_mylib

When I try to run gdb on test_mylib, it prints:

"test_mylib": not in executable format: File format not recognized

When I use the real program (.libs/test_mylib) directly instead, it still complains:

.libs/test_mylib: can't load library 'libhello.so.0'

How Can I run gdb to debug my program ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:14:36+00:00Added an answer on June 10, 2026 at 10:14 am

    This is problem I ran into a couples of days ago and there is no generic answer on SO yet. Only special cases. Here is the answer I found on this page: http://www.gnu.org/software/libtool/manual/html_node/Debugging-executables.html

    Until the program is installed, the system does not know where to look for the shared objects. They usually lies in .libs sub-directory of their source folder.

    Libtool generates a convenience script to allow debugging before the actual installation is done (who wants to install buggy software before, debug it after?)

    Fortunately, the generated script provides a helper for this:

    libtool --mode=execute gdb test_mylib
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have project asp.net with namespace test and I'm using resources (files Resource.resx and
I have a large exiting C++ project involving: 4 applications 50+ libraries 20+ third
I have a project involving hand-written assembly—AT&T syntax, works fine with GCC, but not
I have a project involving a web voting system. The current values and related
In a .net application involving several projects in one solution, I have a project
I have project on rails 3 with multiplayer using Faye. The error block in
I have to do one project for my thesis involving Artificial intelligence, collaborative filtering
i have a problem with global variables in a c++ shared library project. my
In a .Net project in which I'm using NHibernate, I have a piece of
I have a complex MATLAB-Simulink project involving many m-files and mdl-files. Some m-files define

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.