Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to find which lib is a function in?

how to find which lib is a function in?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    derek7
    wrote on last edited by
    #1

    if a .h file contain many lib declaration.and no source . how to locate a function ?

    T S 2 Replies Last reply
    0
    • D derek7

      if a .h file contain many lib declaration.and no source . how to locate a function ?

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      intellisense tell you in which file the declaration of your function is on (VS.NET 2003 +), and msdn tells also at the bottom of a function doc which header is to include to have this function working. for example, for the cos()[^] cosine function, msdn tells us that the required header is <math.h>, and the function is defined in all the C run-time libs[^]libs are

      D 1 Reply Last reply
      0
      • T toxcct

        intellisense tell you in which file the declaration of your function is on (VS.NET 2003 +), and msdn tells also at the bottom of a function doc which header is to include to have this function working. for example, for the cos()[^] cosine function, msdn tells us that the required header is <math.h>, and the function is defined in all the C run-time libs[^]libs are

        D Offline
        D Offline
        derek7
        wrote on last edited by
        #3

        I mean 3nd part lib but that has no docment and source. for dll, I can use depends to work out. for static lib, which tool can solve it?

        T 1 Reply Last reply
        0
        • D derek7

          I mean 3nd part lib but that has no docment and source. for dll, I can use depends to work out. for static lib, which tool can solve it?

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          i don't understand. if you know the function you are using, and you know it comes from a 3rd part library, how don't you know the right lib it is embedded in ?

          D 1 Reply Last reply
          0
          • T toxcct

            i don't understand. if you know the function you are using, and you know it comes from a 3rd part library, how don't you know the right lib it is embedded in ?

            D Offline
            D Offline
            derek7
            wrote on last edited by
            #5

            the function is from one of many libs.but I do not know which lib is it. a big .h file contain all declaration for those libs.

            T 1 Reply Last reply
            0
            • D derek7

              the function is from one of many libs.but I do not know which lib is it. a big .h file contain all declaration for those libs.

              T Offline
              T Offline
              toxcct
              wrote on last edited by
              #6

              have you tried using Dependency Walker[^] ???

              1 Reply Last reply
              0
              • D derek7

                if a .h file contain many lib declaration.and no source . how to locate a function ?

                S Offline
                S Offline
                SilentSilent
                wrote on last edited by
                #7

                derek7 wrote:

                if a .h file contain many lib declaration.and no source . how to locate a function ?

                Use dumpbin

                D 1 Reply Last reply
                0
                • S SilentSilent

                  derek7 wrote:

                  if a .h file contain many lib declaration.and no source . how to locate a function ?

                  Use dumpbin

                  D Offline
                  D Offline
                  derek7
                  wrote on last edited by
                  #8

                  dumbin and depends only work for dll. how about static lib?

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups