Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - LINKING hell
I'm trying hard to link some simple (but not 100% regular) Win32 stuff. OPTLINK fails: incomplete link with redefined symbols LCCLNK fails: no OMF support LD fails: no OMF support ALINK fails: breaks on reading SNN.LIB (poor OMF support?) WLINK fails: misses symbols from kernel32 (ehh, such a crap...) I don't have MS LINK and TLINK around (MS has no OMF support, though, IIRC. TLINK may save me, but I just wouldn't bet on it...) Now, any known free tool to convert these darned OMF files to COFF? Dumping OMF and reassemblink to COFF? (DUMPOBJ is not quite that, OBJ2ASM is non-free?) <plea> Is that really so hard to support COFF? Dammit, I'm being tossed closer and closer to writing an OMF --> COFF converter... :-( Anyone, please save me from that!... I guess many others are in the same boat; hope someone else has already started doing that. Or ideally, Walter's started supporting COFF finally... </plea> Thanks so much, Lunatic May 13 2003
Why not reorganize the .obj files so there aren't multiply defined symbols? "Luna Kid" <lunakid neuropolis.org> wrote in message news:b9qn6i$19mc$1 digitaldaemon.com...I'm trying hard to link some simple (but not 100% regular) Win32 stuff. OPTLINK fails: incomplete link with redefined symbols LCCLNK fails: no OMF support LD fails: no OMF support ALINK fails: breaks on reading SNN.LIB (poor OMF support?) WLINK fails: misses symbols from kernel32 (ehh, such a crap...) I don't have MS LINK and TLINK around (MS has no OMF support, though, IIRC. TLINK may save me, but I just wouldn't bet on it...) Now, any known free tool to convert these darned OMF files to COFF? Dumping OMF and reassemblink to COFF? (DUMPOBJ is not quite that, OBJ2ASM is non-free?) <plea> Is that really so hard to support COFF? Dammit, I'm being tossed closer and closer to writing an OMF --> COFF converter... :-( Anyone, please save me from that!... I guess many others are in the same boat; hope someone else has already started doing that. Or ideally, Walter's started supporting COFF finally... </plea> Thanks so much, Lunatic May 13 2003
How do you mean (in the described scenario)? "Walter" <walter digitalmars.com> wrote in message news:b9r7gm$1p9j$1 digitaldaemon.com...Why not reorganize the .obj files so there aren't multiply defined May 13 2003
Ahh, this one?Also, put your "default implementations" each in a separate .obj file, and put those .obj files in a library. Link that library last. May 13 2003
Also, put your "default implementations" each in a separate .obj file, May 13 2003
|