From: Nils B. <Nil...@we...> - 2002-12-29 01:58:03
|
I've tried the following: I looked in all M$-VC60-libs for YAXPAX and have found follwoing: LIBC.LIB So I used "reimp LIBC.LIB" and then "ar rcs liba.a *.obj". Now I linked with liba.a and all the undefined YAXPAX references are away, but I get multiple definitions now: Root@ROOT /f/DX81SDK/samples/Multimedia/Demos/DMBoids $ gcc *.o -lole32 -loleaut32 -ld3dx8 -la -lgdi32 -ldxguid -lstdc++ -ld3d8 -ld3dxof -lwinmm -luuid f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/d3dx8te x.obj)(.text+0x0):.\d3dx8tex.cpp: multiple definition of `sqrtf' boids.o(.text$sqrtf+0x0):boids.cpp: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../liba.a(crt0.obj)(.text+0x0) :crt0.c: multiple definition of `mainCRTStartup' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../crt2.o(.text+0x0):crt1.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x1250):dxguid.c: multiple definition of `CLSID_CDirectXFile' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x1260):dxguid.c: multiple definition of `IID_IDirectXFile' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x1270):dxguid.c: multiple definition of `IID_IDirectXFileEnumObject' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x1280):dxguid.c: multiple definition of `IID_IDirectXFileSaveObject' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x1290):dxguid.c: multiple definition of `IID_IDirectXFileObject' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x12a0):dxguid.c: multiple definition of `IID_IDirectXFileData' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x12b0):dxguid.c: multiple definition of `IID_IDirectXFileDataReference' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x12c0):dxguid.c: multiple definition of `IID_IDirectXFileBinary' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libdxguid.a(dxguid.o)(.text +0x12d0):dxguid.c: multiple definition of `TID_DXFILEHeader' f:/mingw/bin/../lib/gcc-lib/mingw32/3.2/../../../libd3dx8.a(obj/i386/init.ob j)(.rdata+0x0):.\init.c: first defined here What can I do now? |