D
Danny Lu
Can anyone tell me if all the .obj or .o files are compatible?
Danny said:Can anyone tell me if all the .obj or .o files are compatible?
They aren't.Danny Lu said:Can anyone tell me if all the .obj or .o files are compatible?
Danny said:Can anyone tell me if all the .obj or .o files are compatible?
Danny said:Can anyone tell me if all the .obj or .o files are compatible?
No way, they are platform dependant plus have a whole lot of other
dependencies. If they were compatiable you would be looking at a
picture similar to compiling on one platform and executing it on
another which is not true.
Unix-like systems tend to adopt one of a small number of object file
formats, so that they do not need to "reinvent the wheel". Some of the
format names are "COFF" (older, use is declining); "ELF" (not as old,
but not fresh); "dwarf" (newer). ...
I'd be surprised if many people could use C without dealing with one orFlash said:This is not a C question, and therefore not on topic here.
This only confuses the issue. .o and .obj files on Windows are usuallyHi danny,
No, .obj and .o files are not comaptible.
though both are relocatable file but are in different format.
the scope of both is same(i.e. compiled source,relocatables) but are
platform dependent.
usually, .o is format of relocatable files or compiled files in
Unix/Linux variant while .obj is compiled ouput for windows based.
so, i hope this clears your doubt.
Can anyone tell me if all the .obj or .o files are compatible?
I'd be surprised if many people could use C without dealing with one or
the other.
I'd be surprised if many people could use C without dealing with one or
the other.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.