游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1770|回复: 1

code::blocks问题

[复制链接]

2

主题

2

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2007-9-25 21:03:00 | 显示全部楼层 |阅读模式
-------------- Build: Debug in 4 ---------------
Compiling: main.cpp
Linking console executable: I:\OgreSDK\bin\Debug\4.exe
Info: resolving Ogre::ResourceGroupManager:EFAULT_RESOURCE_GROUP_NAME       by linking to __imp___ZN4Ogre20ResourceGroupManager27DEFAULT_RESOURCE_GROUP_NAMEE (auto-import)
Info: resolving Ogre:uaternion::IDENTITY      by linking to __imp___ZN4Ogre10Quaternion8IDENTITYE (auto-import)
Info: resolving Ogre::Vector3::ZERO     by linking to __imp___ZN4Ogre7Vector34ZEROE (auto-import)
Info: resolving Ogre::Math::fDeg2Rad     by linking to __imp___ZN4Ogre4Math8fDeg2RadE (auto-import)
obj\Debug\main.o: In function `ZN20ExampleFrameListener12frameStartedERKN4Ogre10FrameEventE':
I:/OgreSDK/samples/include/ExampleFrameListener.h.text$_ZN18ExampleApplication14setupResourcesEv[ExampleApplication::setupResources()]+0xea): undefined reference to `Ogre::ConfigFile::load(std::string const&, std::string const&, bool)'
obj\Debug\main.o: In function `GLOBAL__D_WinMain':
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::ResourceGroupManager::addResourceLocation(std::string const&, std::string const&, std::string const&, bool)'
obj\Debug\main.o: In function `WinMain':
I:/CBproject/ogreproject/4/main.cpp:57: undefined reference to `Ogre::OverlayManager::getByName(std::string const&)'
obj\Debug\main.o: In function `ZN20ExampleFrameListener12frameStartedERKN4Ogre10FrameEventE':
I:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplication18chooseSceneManagerEv[ExampleApplication::chooseSceneManager()]+0x8a): undefined reference to `Ogre::Root::createSceneManager(unsigned short, std::string const&)'
I:/OgreSDK/samples/include/ExampleFrameListener.h:(.text$_ZN18ExampleApplication9configureEv[ExampleApplication::configure()]+0xa7): undefined reference to `Ogre::Root::initialise(bool, std::string const&)'
obj\Debug\main.o: In function `WinMain':
I:/CBproject/ogreproject/4/main.cpp:68: undefined reference to `Ogre::Root::Root(std::string const&, std::string const&, std::string const&)'
obj\Debug\main.o: In function `_tcf_3':
I:/OgreSDK/samples/include/ExampleFrameListener.h:58: undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
obj\Debug\main.o: In function `GLOBAL__D_WinMain':
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::StringConverter::toString(unsigned long, unsigned short, char, std::_Ios_Fmtflags)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::StringConverter::toString(unsigned long, unsigned short, char, std::_Ios_Fmtflags)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::StringConverter::toString(float, unsigned short, unsigned short, char, std::_Ios_Fmtflags)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::StringConverter::toString(unsigned int, unsigned short, char, std::_Ios_Fmtflags)'
I:/CBproject/ogreproject/4/main.cpp:44: undefined reference to `Ogre::OverlayManager::getOverlayElement(std::string const&, bool)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 59 seconds)
19 errors, 0 warnings

17

主题

166

帖子

174

积分

注册会员

Rank: 2

积分
174
发表于 2007-10-6 15:15:00 | 显示全部楼层

Re: code::blocks问题

某些library你没link进来

Project->Build options->选Debug->Linker settings中确认下是否有以下libray
CEGUIBase_d
OgreGUIRenderer_d
OgreMain_d
ois_d
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-20 19:36

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表