Skip to main content
gamedev.net
🔒 Locked

neoengine compiler error

Started by guivieira Jun 2, 2004 at 12:35 PM 2 replies 850+ views
Original Post
guivieira
guivieira
please help me guys! why am I getting this error when compiling a "copy and paste" of first tutorial of neoengine?!?!? a start a new win32 console project. then insert a new main.cpp, copy and paste all lines of first neoengine''s tutorial. I already build the whole engine workspace. what I have to do to start a new app using the engine?
--------------------Configuration: rslX - Win32 Debug--------------------
Linking...
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall NeoEngine::LogFileSink::~LogFileSink(void)" (__imp_??1LogFileSink@NeoEngine@@UAE@XZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NeoEngine::RenderCaps::~RenderCaps(void)" (__imp_??1RenderCaps@NeoEngine@@QAE@XZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NeoEngine::RenderCaps::RenderCaps(void)" (__imp_??0RenderCaps@NeoEngine@@QAE@XZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NeoEngine::LogFileSink::LogFileSink(class std::basic_string,class std::allocator > const &)" (__imp_??0LogFileSin
k@NeoEngine@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class NeoEngine::RenderCaps & __thiscall NeoEngine::RenderCaps::operator=(class NeoEngine::RenderCaps const &)" (__imp_??4RenderCaps@NeoEngine@@QAEAAV01@ABV01@@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class NeoEngine::RenderCaps const & __thiscall NeoEngine::RenderDevice::GetCaps(void)const " (__imp_?GetCaps@RenderDevice@NeoEngine@@QBEABVRenderCaps@2@XZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NeoEngine::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@NeoEngine@@QAE@XZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NeoEngine::RenderWindow::RenderWindow(class std::basic_string,class std::allocator > const &,class NeoEngine::Ren
derCaps const &,class NeoEngine::RenderResolution const &)" (__imp_??0RenderWindow@NeoEngine@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVRenderCaps@1@ABVRenderResolution@1@@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall NeoEngine::RenderResolution::RenderResolution(unsigned int,unsigned int,unsigned int,unsigned int,unsigned int,unsigned int)" (__imp_??0RenderResolution@N
eoEngine@@QAE@IIIIII@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class NeoEngine::RenderDevice * __thiscall NeoEngine::Core::CreateRenderDevice(class std::basic_string,class std::allocator 
> const &,class NeoEngine::FileManager *,class NeoEngine::InputManager *)" (__imp_?CreateRenderDevice@Core@NeoEngine@@QAEPAVRenderDevice@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVFileManager@2@PAVInputManager@2@@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall NeoEngine::Core::Initialize(int,char * *)" (__imp_?Initialize@Core@NeoEngine@@QAEHHPAPAD@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall NeoEngine::LogSource::AttachSink(class NeoEngine::LogSink *)" (__imp_?AttachSink@LogSource@NeoEngine@@QAEXPAVLogSink@2@@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class NeoEngine::LogSink * __thiscall NeoEngine::Core::GetStdoutSink(void)" (__imp_?GetStdoutSink@Core@NeoEngine@@QAEPAVLogSink@2@XZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class NeoEngine::Core * __cdecl NeoEngine::Core::Get(void)" (__imp_?Get@Core@NeoEngine@@SAPAV12@XZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall NeoEngine::LogSource::SetLogThreshold(unsigned int)" (__imp_?SetLogThreshold@LogSource@NeoEngine@@QAEXI@Z)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) class NeoEngine::LogSource NeoEngine::neolog" (__imp_?neolog@NeoEngine@@3VLogSource@1@A)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall NeoEngine::Core::Shutdown(void)" (__imp_?Shutdown@Core@NeoEngine@@QAEHXZ)
rslX.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall NeoEngine::Core::DeleteRenderDevice(class NeoEngine::RenderDevice *)" (__imp_?DeleteRenderDevice@Core@NeoEngine@@QAEXPAVRenderDevice@2@@Z)
Debug/rslX.exe : fatal error LNK1120: 18 unresolved externals
Error executing link.exe.

rslX.exe - 19 error(s), 0 warning(s)

 
thank you guys!
Clueless
Clueless
What compiler do you use? Are there no project files for it?
I guess you did add -DBUILD_DYNAMIC or -DBUILD_STATIC to the compiler options?
Did you add -lneoengine to the linker?

Did you ask at the NeoEngine.org forum?
Writing errors since 10/25/2003 2:25:56 AM
guivieira
guivieira
its working now. just add the .lib missing in the project settings..

but now, Im getting a new error! i mean.. isn''t a error, its a warning. 7 like this one


c:\guilherme\zips\3d\engines\neoengine-0.8.1\neoengine\neoengine\logstream.h(269) : warning C4275: non dll-interface class ''std::basic_streambuf >'' used as base for dll-interface class ''NeoEngine::LogSourceStreamBuf''
Clueless
Clueless
Not sure ... maybe that helps?
http://neoengine.sourceforge.net/phpBB2/viewtopic.php?t=879&highlight=warning+c4275
Writing errors since 10/25/2003 2:25:56 AM

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.