Problem with the gnu linker (ld.exe)
Posted: Thu Jun 21, 2012 6:25 pm
When I try to link everything together, I get this error:
Video.o(.text+0x0):Video.cpp: multiple definition of `__ZN5VideoC2Ev'
Kernel.o(.text+0x0):Kernel.cpp: first defined here
Video.o(.text+0x22):Video.cpp: multiple definition of `__ZN5VideoC1Ev'
Kernel.o(.text+0x22):Kernel.cpp: first defined here
Video.o(.text+0x44):Video.cpp: multiple definition of `__ZN5VideoD2Ev'
Kernel.o(.text+0x44):Kernel.cpp: first defined here
Video.o(.text+0x4a):Video.cpp: multiple definition of `__ZN5VideoD1Ev'
Kernel.o(.text+0x4a):Kernel.cpp: first defined here
Video.o(.text+0x50):Video.cpp: multiple definition of `__ZN5Video5clearEv'
Kernel.o(.text+0x50):Kernel.cpp: first defined here
Video.o(.text+0x94):Video.cpp: multiple definition of `__ZN5Video5writeEPc'
Kernel.o(.text+0x94):Kernel.cpp: first defined here
Video.o(.text+0xcc):Video.cpp: multiple definition of `__ZN5Video3putEc'
Kernel.o(.text+0xcc):Kernel.cpp: first defined here
ld: PE operations on non PE file.
Video.o(.text+0x0):Video.cpp: multiple definition of `__ZN5VideoC2Ev'
Kernel.o(.text+0x0):Kernel.cpp: first defined here
Video.o(.text+0x22):Video.cpp: multiple definition of `__ZN5VideoC1Ev'
Kernel.o(.text+0x22):Kernel.cpp: first defined here
Video.o(.text+0x44):Video.cpp: multiple definition of `__ZN5VideoD2Ev'
Kernel.o(.text+0x44):Kernel.cpp: first defined here
Video.o(.text+0x4a):Video.cpp: multiple definition of `__ZN5VideoD1Ev'
Kernel.o(.text+0x4a):Kernel.cpp: first defined here
Video.o(.text+0x50):Video.cpp: multiple definition of `__ZN5Video5clearEv'
Kernel.o(.text+0x50):Kernel.cpp: first defined here
Video.o(.text+0x94):Video.cpp: multiple definition of `__ZN5Video5writeEPc'
Kernel.o(.text+0x94):Kernel.cpp: first defined here
Video.o(.text+0xcc):Video.cpp: multiple definition of `__ZN5Video3putEc'
Kernel.o(.text+0xcc):Kernel.cpp: first defined here
ld: PE operations on non PE file.