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. Questions on build and link

Questions on build and link

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++toolshelptutorial
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.
  • E Offline
    E Offline
    Eddie Ng 0
    wrote on last edited by
    #1

    Dear all, I'm a junior developer writing mixed C/C++ based applications in Windows (using the VC++ command line tools, but not the DevStudio GUI). One of the question that I have the most trouble understanding is how does the build process really works. What is a precompiled header file? What's the difference between an .obj, a .dll, and a .lib file? How is an export table defined? How do a link all the .lib and .dll file together to make an executable? In many occasions it takes much more time finding out how to build and link properly than the actual coding part. I'm sure there are a lot more questions of this kind that are alluding junior developers everyday, since no good books are available and websites on the Internet (like CodeProject) rarely mentions anything on this subject. The MSDN website has a big chunk of reference manuals online about Compiling and Linking, but it offers almost little help for beginners who tries to learn this subject. Can anyone point me to some useful printed or Internet resources available? I'm hoping that someone in the CodeProject community can write an article on this subject too :) Thanks.

    C 1 Reply Last reply
    0
    • E Eddie Ng 0

      Dear all, I'm a junior developer writing mixed C/C++ based applications in Windows (using the VC++ command line tools, but not the DevStudio GUI). One of the question that I have the most trouble understanding is how does the build process really works. What is a precompiled header file? What's the difference between an .obj, a .dll, and a .lib file? How is an export table defined? How do a link all the .lib and .dll file together to make an executable? In many occasions it takes much more time finding out how to build and link properly than the actual coding part. I'm sure there are a lot more questions of this kind that are alluding junior developers everyday, since no good books are available and websites on the Internet (like CodeProject) rarely mentions anything on this subject. The MSDN website has a big chunk of reference manuals online about Compiling and Linking, but it offers almost little help for beginners who tries to learn this subject. Can anyone point me to some useful printed or Internet resources available? I'm hoping that someone in the CodeProject community can write an article on this subject too :) Thanks.

      C Offline
      C Offline
      Chris Meech
      wrote on last edited by
      #2

      For a bit of a learning experience, try using the DevStudio GUI for a project and have a peek into the .DSP file (most of the commands for compile/link are there) or alternatively have the GUI export a makefile for you and inspect that one instead. It won't answer all your questions, but it should answer some of them. Chris

      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