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

  • Home
  • SEARCH
  • 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 6551773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:22:46+00:00 2026-05-25T12:22:46+00:00

On Windows , a debug library’s name has a d as a postfix. But

  • 0

On Windows, a debug library’s name has a d as a postfix. But I don’t know if there is a rule on Linux.

I know there is some dbg packages on Debian. For example, the library of the package libjpeg62-dbg is placed in /usr/lib/debug/usr/lib/libjpeg.so.62.0.0. Is it a standard rule to place a debug version library into /usr/lib/debug?

And more. For example, if I run pkg-config --libs opencv that will return the GCC link options to me such as:

-L/usr/lib -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann

It’s very good. But I don’t find a option in pkg-config which can return link options of those debug version libraries such as:

-L/usr/lib/debug -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann

Why pkg-config has not a option to return debug version of options if there is a standard rule about debug version library?

So, I want to know:

  1. Is there a standard directory to place a debug library?
  2. Are there some commands or options to process a debug library like pkg-config --libs?
  3. How do you process the problem if the above two answers are no?

Thanks.

  • 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-05-25T12:22:46+00:00Added an answer on May 25, 2026 at 12:22 pm

    Linux and windows have differing views on this. In Linux, there’s really not much of a point in offering a debug library, because if someone really wants to debug the library they usually have the source code. Otherwise, you can mix and match (linking a “release” library with a “debug” program is just fine). You can be a nice guy and leave the debugging symbols in if you really want to (sysadmins can strip symbols out if they think there’s too much bloat).

    The other problem is that under linux there are too many compiler flags. There’s not just “debug” and “release”. There are a million flags you can turn on and off, as well as various target architectures. That’s why most library developers just release the source code and let the user (or distro maintainer) decide what to turn on and off. In other words, there’s no way your idea of a “debug” library would anticipate every developer’s needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to debug a windows service or class library without consuming the
The Windows CRT in debug mode will show a Microsoft Visual C++ Runtime Library
On windows we can get the debug symbols using the dbgHelp library. How can
How do I check what runtime library a static library (.lib) in Windows has
In every platform there are various versions of a given library: multi-threaded, debug, dynamic,
Anybody out there has successfully installed PygraphViz on Windows? Since there is not an
I have an importer process which is running as a windows service (debug mode
I want to debug a windows C++ application I've written to see why it
i try to debug a windows gadget. Just-In-Time debugging fires up and i can
I have a situation where i need to debug a Windows CE application in

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.