www.digitalmars.com         C & C++   DMDScript  

c++.command-line - IMPORTING LIBS

reply "SStallone" <sstallone gmx.de> writes:
Here is a copy on an E-Mail

Thanks for OpenGL32.LIB, but I need many more and this is not the right
solution.

Here I show you what libs I need:

LIBBFD~1 A         314,240  01-23-01  6:24a libbfd.dll.a
LIBCOL~1 A          75,274  06-06-01  7:42a libcoldname.a
LIBCRT~1 A         358,030  06-06-01  7:42a libcrtdll.a
LIBGMON  A           4,666  06-06-01  7:42a libgmon.a
LIBM     A             528  06-06-01  7:42a libm.a
LIBMIN~1 A           7,204  06-06-01  7:42a libmingw32.a
LIBMIN~2 A           2,726  06-06-01  7:42a libmingwthrd.a
LIBMOL~1 A          76,550  06-06-01  7:42a libmoldname.a
LIBMSV~1 A         488,288  06-06-01  7:42a libmsvcrt.a
LIBMSV~2 A         478,842  06-06-01  7:42a libmsvcrt20.a
LIBMSV~3 A         469,584  06-06-01  7:42a libmsvcrt40.a
LIBADV~1 A         265,930  06-08-01  5:07a libadvapi32.a
LIBCAP   A           4,254  06-08-01  5:07a libcap.a
LIBCOM~1 A          94,488  06-08-01  5:07a libcomctl32.a
LIBCOM~2 A          18,308  06-08-01  5:07a libcomdlg32.a
LIBCTL~1 A          20,062  06-08-01  5:07a libctl3d32.a
LIBD3DIM A           5,122  06-08-01  5:07a libd3dim.a
LIBD3DRM A          17,462  06-08-01  5:07a libd3drm.a
LIBD3D~1 A           2,322  05-23-00  3:46a libd3dxof.a
LIBDDRAW A          12,378  05-23-00  3:46a LIBDDRAW.A
LIBDIN~1 A          16,278  05-23-00  3:46a libdinput.a
LIBDLC~1 A           3,636  06-08-01  5:07a libdlcapi.a
LIBDPL~1 A           6,588  05-23-00  3:46a libdplayx.a
LIBDSE~1 A          15,242  05-23-00  3:46a libdsetup.a
LIBDSO~1 A          10,124  05-23-00  3:46a libdsound.a
LIBDXG~1 A          40,584  05-23-00  3:46a libdxguid.a
LIBGDI32 A         245,572  06-08-01  5:07a libgdi32.a
LIBGLAUX A         126,282  06-08-01  5:07a libglaux.a
LIBGLU32 A          39,872  06-08-01  5:07a libglu32.a
LIBGLUT  A          86,446  06-08-01  5:07a libglut.a
LIBGLU~1 A          86,684  06-08-01  5:07a libglut32.a
LIBIMA~1 A          86,386  06-08-01  5:07a libimagehlp.a
LIBIMM32 A          58,030  06-08-01  5:07a libimm32.a
LIBIPH~1 A          24,488  06-08-01  5:07a libiphlpapi.a
LIBKER~1 A         569,832  06-08-01  5:07a libkernel32.a
LIBLAR~1 A           2,574  06-08-01  5:07a liblargeint.a
LIBLZ32  A          10,006  06-08-01  5:07a liblz32.a
LIBMAP~1 A         112,222  06-08-01  5:07a libmapi32.a
LIBMFC~1 A           8,970  06-08-01  5:07a libmfcuia32.a
LIBMGM~1 A           8,846  06-08-01  5:07a libmgmtapi.a
LIBMPR   A          54,878  06-08-01  5:07a libmpr.a
LIBMSA~1 A          34,326  06-08-01  5:07a libmsacm32.a
LIBMSV~4 A           8,366  06-08-01  5:07a libmsvcp60.a
LIBMSW~1 A          20,470  06-08-01  5:07a libmswsock.a
LIBNDD~1 A          22,786  06-08-01  5:07a libnddeapi.a
LIBNET~1 A         187,092  06-08-01  5:07a libnetapi32.a
LIBODB~1 A         136,948  06-08-01  5:07a libodbc32.a
LIBODB~2 A          41,294  06-08-01  5:07a libodbccp32.a
LIBOLE32 A         190,722  06-08-01  5:07a libole32.a
LIBOLE~1 A         107,898  06-08-01  5:07a liboleaut32.a
LIBOLE~2 A          42,380  06-08-01  5:07a libolecli32.a
LIBOLE~3 A          18,728  06-08-01  5:07a liboledlg.a
LIBOLE~4 A           6,916  06-08-01  5:07a libolepro32.a
LIBOLE~5 A           9,800  06-08-01  5:07a libolesvr32.a
LIBOPE~1 A         269,134  06-08-01  5:07a libopengl32.a
LIBPEN~1 A          75,528  06-08-01  5:07a libpenwin32.a
LIBPKP~1 A          27,088  06-08-01  5:07a libpkpd32.a
LIBPSAPI A          15,978  06-08-01  5:07a libpsapi.a
LIBRAPI  A          61,850  06-08-01  5:07a librapi.a
LIBRAS~1 A         112,510  06-08-01  5:07a librasapi32.a
LIBRPC~1 A          19,674  06-08-01  5:07a librpcdce4.a
LIBRPC~2 A          46,260  06-08-01  5:07a librpcns4.a
LIBRPC~3 A         288,924  06-08-01  5:07a librpcrt4.a
LIBSCR~1 A           7,648  06-08-01  5:07a libscrnsave.a
LIBSCR~2 A           7,832  06-08-01  5:07a libscrnsavw.a
LIBSEC~1 A           6,194  06-08-01  5:07a libsecur32.a
LIBSHE~1 A          94,822  06-08-01  5:07a libshell32.a
LIBSVR~1 A          16,292  06-08-01  5:07a libsvrapi.a
LIBTAP~1 A          86,704  06-08-01  5:07a libtapi32.a
LIBTH32  A          10,342  06-08-01  5:07a libth32.a
LIBTHU~1 A          48,890  06-08-01  5:07a libthunk32.a
LIBURL   A           6,750  06-08-01  5:07a liburl.a
LIBUSE~1 A         414,794  06-08-01  5:07a libuser32.a
LIBUSE~2 A           8,414  06-08-01  5:07a libuserenv.a
LIBUUID  A          25,570  06-08-01  5:07a libuuid.a
LIBVDM~1 A          13,448  06-08-01  5:07a libvdmdbg.a
LIBVER~1 A          12,042  06-08-01  5:07a libversion.a
LIBVFW32 A          97,114  06-08-01  5:07a libvfw32.a
LIBWIN~1 A          11,666  06-08-01  5:07a libwin32spl.a
LIBWIN~2 A         121,410  06-08-01  5:07a libwininet.a
LIBWINMM A         144,884  06-08-01  5:07a libwinmm.a
LIBWIN~3 A          97,896  06-08-01  5:07a libwinspool.a
LIBWIN~4 A           6,410  06-08-01  5:07a libwinstrm.a
LIBWOW32 A          14,138  06-08-01  5:07a libwow32.a
LIBWS2~1 A          79,914  06-08-01  5:07a libws2_32.a
LIBWSO~1 A          54,478  06-08-01  5:07a libwsock32.a
LIBWST   A           2,162  06-08-01  5:07a libwst.a
LIBBFD   A         430,014  07-06-01  5:57p libbfd.a
LIBIBE~1 A          89,084  07-24-01  7:04a libiberty.a
LIBOPC~1 A          84,874  07-06-01  5:57p libopcodes.a
LIBD3D8  A           3,956  05-23-00  3:46a LIBD3D8.A
LIBD3D~2 A         133,574  05-23-00  3:46a libd3dx8d.a
LIBDIN~2 A          14,600  05-23-00  3:46a libdinput8.a
LIBDPN~1 A           2,386  05-23-00  3:46a libdpnaddr.a
LIBDPNET A           2,324  05-23-00  3:46a LIBDPNET.A
LIBDPN~2 A           2,382  05-23-00  3:46a libdpnlobby.a
LIBDPV~1 A           2,364  05-23-00  3:46a libdpvoice.a
LIBALLEG A       1,033,158  05-19-01 10:24p liballeg.a
LIBBGUI  A          58,130  05-23-00  6:58a LIBBGUI.A
LIBBGI   A         307,618  05-19-01  9:18p LIBBGI.A
       100 Datei(en)             9,628,748 Bytes
         0 Verzeichnis(se)     934,281,216 Bytes frei

Now, don't tell me you want to send me all these libs by E-Mail,
here is a good solution:

    1) Pack all needed header-files (.h) into one .tar.gz
    2) Write a tool that creates .def files from .dll files
    3) Write a tool that uses the .map file created after linking to append
in
            the .def files the needed  x suffixes. This tool might work so:
        a) it searches in the .map file for the error for the undefined
symbols
                ex: Water.obj(Water)
                       Error 42: Symbol Undefined _glVertex3f 12
        b) then it converts only the text after the string "Undefined" until
the " "
                ex:  Error 42: Symbol Undefined _glVertex3f 12
                        will become to
                    _glVertex3f
        c) then it searches in all created .def files for this string
                ex: _glVertex3f
                    search. search. search.
                    found in: opengl32.def
        d) then it replaces the entry in that found .def file with the
complete
            string in the .map file after "Undefined" string:
                ex: _glVertex3f
                    replaced with
                     _glVertex3f 12
        e) this must be done with all undefined symbols
        f) after hours of compiling different sources you have a complete
working lib



Hope it will work
Jul 24 2001
parent "SStallone" <sstallone gmx.de> writes:
Hey, we also can use the .obj files created after compiling.

If you take a close look you'll see that there are __imp__ prefixes for
every needed symbol.
Jul 24 2001