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 7082235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:01:21+00:00 2026-05-28T07:01:21+00:00

I’m going to ask how it’s done in c++, but this idea can apply

  • 0

I’m going to ask how it’s done in c++, but this idea can apply to multiple languages. If you know how to do it in objective-c as well, please provide any similarities between the two

Lets say I want to create an instance of an ofstream like

ofstream myfile;

I’m assuming all I have on my computer is the *.o file (in a library archive) and the *.h file for iostream class. If this part isn’t true let me know. I am assuming this when all I have installed is the runtime and the devel packages, not the source files.

How does it connect the header file to the object file, is there a naming scheme. And where does it look and in what order.?

Why this is confusing me is normally when I want to create a class I link my implementation of the class with the program, so where does it now and how does it now to link the files?

One more, does it matter if it loaded statically or dynamically?

Thank you in advance, and sry if this is a silly question.

  • 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-28T07:01:22+00:00Added an answer on May 28, 2026 at 7:01 am

    Computer Science 101:

    1. Broadly speaking (VERY broadly!), there are two kinds of “programs”:

      a) Interpreted: you read the program source line-by-line every time you execute it
      <= *nix shell scripts and DOS .bat files are “interpeted”

      b) Compiled: you read the source once (to convert it into a “binary machine code”). You link the machine code “object files” to build an “executable program”.

    2. You’re talking about “compiled programs”

    3. The “ofstream” part is irrelevant once the program is “compiled”

      The binary implementation for “ofstream” can be compiled directly into the executable, or it can be dynamically loaded from a shared library (.dll) at runtime.

    4. A “compiler” users “.h” headers to process the source file.

      A “linker” uses “.lib” libraries to match symbols and link static code at link type.

      The “Operating System” recognizes dynamic links and loads the needed shared libraries (.dll’s) at runtime.

    Three different things, all independent of each other: Compiler/source code, Linker/machine object code, OS/executable programs

    ‘Hope that helps .. a bit…

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

Sidebar

Related Questions

Does anyone know how can I replace this 2 symbol below from the string
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

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.