Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: object file compatiblity |
| Date | 2015-10-26 10:43 +1300 |
| Message-ID | <d950o7FuctcU9@mid.individual.net> (permalink) |
| References | <1216aa49-f60e-48f9-983a-aebe69a514b6@googlegroups.com> |
paul.anton.letnes@gmail.com wrote: > Hi! > > Disclaimer: I've programmed very little pure C in my life, and don't > consider myself a C programmer. You probably don't, either. > > I've got an object file that is difficult to recreate from source in > my C/Fortran mixed-language project. This object file is generated > from a C source file, but it's not written by me - build system nor > source code. It's compiled by MSVC from visual studio 2013. Is this > object file (.obj) compatible for linking with Visual Studio > 2010/2012/2015 compiled code? What if I create a static library > (.lib) containing this single object file? > > What I've got in mind is checking the object file into git and > linking it in with the rest of the project which is compiled from > source every time. Colleagues might use other versions of MSVC/Visual > Studio, though, so that's something I need to understand. > > I'd appreciate any pointers to documentation that explains this in > more detail. There isn't really a generic C answer to this question, the answer would be platform specific. In general, with a reasonably long list of ifs it might work :) The ifs would include the level of optimisation used, compiler options that may change the layout of data, platform ABI stability and so forth. If the file does link, test it to death. -- Ian Collins
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
object file compatiblity paul.anton.letnes@gmail.com - 2015-10-25 14:11 -0700
Re: object file compatiblity Ian Collins <ian-news@hotmail.com> - 2015-10-26 10:43 +1300
Re: object file compatiblity James Kuyper <jameskuyper@verizon.net> - 2015-10-25 17:49 -0400
Re: object file compatiblity Philipp Klaus Krause <pkk@spth.de> - 2015-10-25 22:53 +0100
Re: object file compatiblity James Kuyper <jameskuyper@verizon.net> - 2015-10-25 18:29 -0400
Re: object file compatiblity Keith Thompson <kst-u@mib.org> - 2015-10-25 15:00 -0700
Re: object file compatiblity paul.anton.letnes@gmail.com - 2015-10-26 00:15 -0700
Re: object file compatiblity Noob <root@127.0.0.1> - 2015-10-25 23:20 +0100
Re: object file compatiblity paul.anton.letnes@gmail.com - 2015-10-26 00:21 -0700
Re: object file compatiblity glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-10-26 03:14 +0000
Re: object file compatiblity paul.anton.letnes@gmail.com - 2015-10-26 00:23 -0700
Re: object file compatiblity Jorgen Grahn <grahn+nntp@snipabacken.se> - 2015-10-26 13:49 +0000
Re: object file compatiblity Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-10-26 02:31 -0700
Re: object file compatiblity Jorgen Grahn <grahn+nntp@snipabacken.se> - 2015-10-26 16:59 +0000
Re: object file compatiblity "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-10-26 07:40 -0700
csiph-web