Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

edwinnie

.NVB loading frustration

This topic is 5310 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hihi okies i am trying to load .nvb files, so i started abit with these codes in both native c/c++ & managed c++, which apparently both gave similar annoying linking problems... if use managed c++, i will get this link error: error LNK2020: unresolved token (0A00001B)NVBRenderManager.NVBBreaker.__dtor
#include "stdafx.h"
#using <mscorlib.dll>

//#pragma comment(lib, "nv_nvbloader.lib")

#include <nv_nvbloader/NVBLoader.h>

using namespace NVBRenderManager;
using namespace System;


class MyNVBImporter : public NVBBreaker
{
public:
	MyNVBImporter() : NVBBreaker()
	{
	}
	virtual ~MyNVBImporter()
	{
	}
	
	virtual bool NewScene      (const NVBSceneInfo& scene){return true;}
	virtual bool NewCamera     (const NVBCameraInfo& camera){return true;}
	virtual bool NewLight      (const NVBLightInfo& light){return true;}
	virtual bool NewMaterial   (const NVBMaterialInfo& material){return true;}
	virtual bool NewTexture    (const NVBTextureInfo& texture){return true;}
	virtual bool NewMesh       (const NVBMeshInfo& mesh){return true;}
	virtual bool NewShape      (const NVBShapeInfo& shape){return true;}
	virtual bool NewHelper     (const NVBHelperInfo& helper){return true;}
	virtual bool NewController (const NVBControllerInfo& controller){return true;}
	virtual bool NewMotion     (const NVBMotionInfo& motion){return true;}

	virtual bool NVBImportError(const char* errortext, udword errorcode){return true;}
	virtual void NVBLog        (TLogLevel level, char *fmt, ...){}
	virtual void SetLogCallback(TloggingCB cbfn, unsigned long userparam=0){}

};

int _tmain()
{
	MyNVBImporter imp;

	return 0;
}
if use native c/c++, i got these link errors: error LNK2001: unresolved external symbol "public: virtual bool __thiscall NVBRenderManager::NVBBreaker::EndImport(void)" (?EndImport@NVBBreaker@NVBRenderManager@@UAE_NXZ) error LNK2001: unresolved external symbol "public: virtual bool __thiscall NVBRenderManager::NVBBreaker::Import(class NVBCore::String const &)" (?Import@NVBBreaker@NVBRenderManager@@UAE_NABVString@NVBCore@@@Z) error LNK2019: unresolved external symbol "public: __thiscall NVBRenderManager::NVBBreaker::NVBBreaker(void)" (??0NVBBreaker@NVBRenderManager@@QAE@XZ) referenced in function "public: __thiscall MyNVBImporter::MyNVBImporter(void)" (??0MyNVBImporter@@QAE@XZ) error LNK2019: unresolved external symbol "public: virtual __thiscall NVBRenderManager::NVBBreaker::~NVBBreaker(void)" (??1NVBBreaker@NVBRenderManager@@UAE@XZ) referenced in function "public: virtual __thiscall MyNVBImporter::~MyNVBImporter(void)" (??1MyNVBImporter@@UAE@XZ) if anyone noes how to get by them, would be greatly appreciated, thx! Edwinz [edited by - edwinnie on May 8, 2004 12:19:00 AM]

Share this post


Link to post
Share on other sites
Advertisement
Seams like the problem lies in the class NVBBreaker, from the native code eroors. And that is not the code you have shown us.

Just curious, what are .nvb files?


LizardCPP

Edit: Did a google for .nvb files, so now I know what they are.

[edited by - LizardCPP on May 9, 2004 7:17:26 AM]

Share this post


Link to post
Share on other sites
thx fer replying!

i added the pragma for the lib, which helped abit to remove the destructor link problems, but then gave a host of new conflicting link errors as well...sigh

no one loads .nvb?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!