Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with LNK2001 error

Status
Not open for further replies.

campione

Programmer
Oct 3, 2001
1
BR
Hi,

I am using Microsoft Visual C++ 6.0 to compile a project (*.dsw) and I have the follow message:

Linking...
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
MPJNode.obj : error LNK2001: unresolved external symbol "public: void __thiscall NodeField::AddListener(class Listener *)" (?AddListener@NodeField@@QAEXPAVListener@@@Z)
MPJNode.obj : error LNK2001: unresolved external symbol "public: void __thiscall MediaObject::DeleteRouteTo(int,class MediaObject *,int)" (?DeleteRouteTo@MediaObject@@QAEXHPAV1@H@Z)
MPJNode.obj : error LNK2001: unresolved external symbol "public: void __thiscall MediaObject::InsertRouteTo(int,class MediaObject *,int)" (?InsertRouteTo@MediaObject@@QAEXHPAV1@H@Z)
Core.lib(Root.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<32>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0CA@@@UBEHH@Z)
Core.lib(Nodes3.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<32>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0CA@@@UBEHH@Z)
Core.lib(Proto.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<32>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0CA@@@UBEHH@Z)
MPJNode.obj : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<32>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0CA@@@UBEHH@Z)
Core.lib(Common.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<32>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0CA@@@UBEHH@Z)
Core.lib(MediaObj.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<32>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0CA@@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<32>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0CA@@@UBEHH@Z)
MPJScene.obj : error LNK2001: unresolved external symbol &quot;public: class MediaObject * __thiscall Root::FindNode(char const *)&quot; (?FindNode@Root@@QAEPAVMediaObject@@PBD@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<20>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BE@@@UBEHH@Z)
Core.lib(Nodes.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<20>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BE@@@UBEHH@Z)
OpenGl.lib(FaceProxy.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<20>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BE@@@UBEHH@Z)
OpenGl.lib(SegmentParser.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<20>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BE@@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<25>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BJ@@@UBEHH@Z)
Core.lib(Nodes.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<25>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BJ@@@UBEHH@Z)
OpenGl.lib(FaceProxy.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<25>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BJ@@@UBEHH@Z)
OpenGl.lib(SegmentParser.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<25>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BJ@@@UBEHH@Z)
OpenGl.lib(FDPProxy.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
OpenGl.lib(HAnimParser.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
OpenGl.lib(SegmentParser.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
Face.lib(PartInfo_mpeg.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
Core.lib(Nodes.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
Core.lib(Nodes3.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
Core.lib(Nodes2.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<1>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$00@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<30>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BO@@@UBEHH@Z)
Core.lib(Nodes.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<30>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BO@@@UBEHH@Z)
OpenGl.lib(DirectiveSoundProxy.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<3>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$02@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<3>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$02@@UBEHH@Z)
Core.lib(Nodes.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<3>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$02@@UBEHH@Z)
Core.lib(Nodes2.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<3>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$02@@UBEHH@Z)
OpenGl.lib(SoundProxy.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<3>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$02@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<18>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BC@@@UBEHH@Z)
Core.lib(Nodes.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<18>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BC@@@UBEHH@Z)
OpenGl.lib(FaceProxy.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<18>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BC@@@UBEHH@Z)
OpenGl.lib(SegmentParser.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<18>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BC@@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<0>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0A@@@UBEHH@Z)
Core.lib(Nodes.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<0>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0A@@@UBEHH@Z)
OpenGl.lib(FormProxy.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<0>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0A@@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<23>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BH@@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<27>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BL@@@UBEHH@Z)
Core.lib(BifsDec.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<27>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BL@@@UBEHH@Z)
Core.lib(NodeTabl.obj) : error LNK2001: unresolved external symbol &quot;public: virtual int __thiscall SFNodeType<31>::GetNodeType(int)const &quot; (?GetNodeType@?$SFNodeType@$0BP@@@UBEHH@Z)
..\Binary\Player3d\Debug\Exe/Player3d.exe : fatal error LNK1120: 15 unresolved externals
Error executing link.exe.

Player3d.exe - 46 error(s), 1 warning(s)

Please, someone could me help?

Thanks,

Rafael.
 
hi,
most probably u have not included the relevant *.lib file.
u are probably using functions whose implementation is in these file or dll's. find out the .lib file associated with your functions. And specify it in project->settings-> in the link tab, under object/ library modules add the .lib file.

or it could be that the linker cannot find the impementation *.cpp file where your functions are implemented. in &quot;source files&quot; tab of file view right click and choose &quot;add files to folder&quot; and point to the correct cpp file which has the implementation code.

hope this helps. -=$umedha=-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top