object-files Questions

5

Solved

I am reading about libraries in C but I have not yet found an explanation on what an object file is. What's the real difference between any other compiled file and an object file? I would be glad i...
Gigantes asked 10/10, 2011 at 20:28

2

I understand that code included in an executable at compile-time can come from object files (.o files) and statically-linked libraries (.lib/.a files). What is fundamentally and conceptually the di...
Unread asked 1/5, 2013 at 6:48

1

Solved

This may be a stupid question, but if I compile a shared library using g++ on one distribution of Linux, and then move those libraries as object files via flash drive to another computer with the e...
Tireless asked 11/4, 2014 at 4:25

1

Solved

From what I understand, instructions and data in an object file all have addresses. First data item start at address 0 and first instruction also start at address 0. The relocation table contains...
Mansuetude asked 25/5, 2013 at 12:21

1

Solved

When we compile code, an object file is generated. From that object file, an executable file is generated in the linking process. Why do we need an object file? What is the use of an object file? ...
Stapler asked 22/12, 2012 at 8:17

2

I am using gcc compiler and ubuntu 12.04 OS. I want to know where can I find the object file and under which directory, which contains the definition of printf function. Again I am not looking for ...
Starinsky asked 25/7, 2012 at 16:22

2

Solved

The way my team's project is developed, we generate a Shared Object library for our application from all all of our .o object files. My task (hopefully it is specific enough but also general enough...
Counterfeit asked 22/11, 2010 at 19:28

1

Is there anywhere I can get pre-compiled BLAS and LAPACK binaries for Windows in OMF object format? I want to link some D language code to these. I'm aware of where I can get the relevant lib...
Crenshaw asked 11/2, 2011 at 15:10

3

I was curious about .obj files: I pretty much don't know what they are (or what they contain), so I opened them with Vim text editor and what I found inside was an Alien like language... Is there ...

4

I was asked a question: "What is an 'object file'?". After looking at Wiki, I only know that it contains objects. But what are those objects and why someone called them that way?
Congenital asked 23/11, 2011 at 22:28

5

Solved

I was just curious about the question, but couldn't find the answer in the Internet. Let's suppose we have simple header: // SimpleHeader.h class SimpleClass { int i; } As we know, the default ...
Sheathe asked 8/9, 2011 at 14:0

3

Solved

Whenever we compile a c++ file, an obj file is generated. I want to know that on what factors does the size of the obj file depend? Just to make my question more clear, For example a c++ file cont...
Southing asked 6/9, 2011 at 11:56

4

Solved

While it is commonplace to combine multiple object files in a library, it is possible (at least in Linux) to combine multiple object files into another object file. (See combine two GCC compiled ....
Aniconic asked 5/6, 2011 at 13:10

4

Solved

To be more specific, lets assume that both compilers are on the same platform (OS + instruction set). However, one of the object files was made from a compiler-dependent code. On the other hand - t...
Incontrollable asked 20/4, 2011 at 9:22

5

Solved

In the last year I've started programming in Fortran working at a research university. Most of my prior experience is in web languages like PHP or old ASP, so I'm a newbie to compile statements. I...
Tubate asked 12/3, 2011 at 16:40

1

Solved

I am new to delphi. I was trying to add C Object files in my Delphi project and link them directly since Delphi Supports C Object Linking. I got it working when i link a single Object file. But whe...
Numerical asked 9/1, 2011 at 7:37

2

Solved

I know .OBJ is the result of compiling a unit of compilation and .LIB is a static library that can be created from several .OBJ, but this difference seems to be only in the number of units of compi...

8

Solved

During the various stages of compilation in C or C++, I know that an object file gets generated (i.e., any_name.o file). What does this .o file contain? I can't open it since it's a binary file. C...
Harim asked 15/6, 2010 at 13:33

2

Solved

How does one combine two GCC compiled .o object files into a third .o file? $ gcc -c a.c -o a.o $ gcc -c b.c -o b.o $ ??? a.o b.o -o c.o $ gcc c.o other.o -o executable If you have access to the...
Refurbish asked 5/6, 2010 at 11:17

2

Is it possible to convert an object file .o that was created from a .c source code to .exe? And if it is possible is there a direct command using gcc?
Rom asked 10/5, 2010 at 15:41

3

Solved

I have written a simple Hello World program. #include <stdio.h> int main() { printf("Hello World"); return 0; } I wanted to understand how the relocatable object file and executable ...
Pigeonhole asked 6/5, 2010 at 22:12

1

Solved

I'm seeing what I think is strange behaviour from object files output by the Microsoft Visual Studio 2003 tools. The file utility tells me: asmfile.obj: 80386 COFF executable not stripped - versio...
Stair asked 5/5, 2010 at 18:40

2

what is the relation between shared object(.so) file and object(.o) file? can you please explain via example?
Dygert asked 31/7, 2009 at 5:12

1

Solved

Like the title says, what is the difference between a "program object file" (.o extension) and a "library file" (.so extension)
Answerable asked 13/7, 2009 at 3:35

© 2022 - 2024 — McMap. All rights reserved.