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. Linker options

Linker options

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 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.
  • S Offline
    S Offline
    Steve Thresher
    wrote on last edited by
    #1

    Is there an option to tell the linker to look for functions in all libraries in the library path. It is a pain to have to specify each library I want to use when there are over 100.

    S 1 Reply Last reply
    0
    • S Steve Thresher

      Is there an option to tell the linker to look for functions in all libraries in the library path. It is a pain to have to specify each library I want to use when there are over 100.

      S Offline
      S Offline
      Stephen Kellett
      wrote on last edited by
      #2

      Not that I'm aware of. Its generally straightforward to sort out. Don't worry about trying to guess which libs you need. After a while you'll learn which libs you need. But if you don't know which libs you need repeat the following procedure:- 1) Link as normal. 2) if no errors, then finished (duh!) 3) Look at the first link error. Identify the function name that is not resolved. Look it up in MSDN. The entry in MSDN will tell you which lib you need (if its a COM object it may not, then you'll need to hunt around a bit). 3a) if the function name is not in MSDN check that it isn't a 3rd party lib you have forgotten to list. 4) Now relink. The reason for not worrying about the remaining errors is that many of them may be for the same lib as the first error. 5) Repeat from (3) until no errors. After a while you'll be able to realise which function come from which lib and you'll be able to do more functions/libs in stage 3 than I've suggested above. None of that was rocket science, and it isn't really that hard. Cheers Stephen Stephen Kellett -- C++/Java/Win NT/Unix variants Memory leaks/corruptions/performance/system problems. UK based. Problems with RSI/WRULD? Contact me for advice.

      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