| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 676 人关注过本帖
标题:编译项目时遇到的问题???
只看楼主 加入收藏
szjszj
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2009-8-2
结帖率:50%
收藏
已结贴  问题点数:20 回复次数:3 
编译项目时遇到的问题???
1>ceguifalagardex.lib(FalagardComplexWindowProperties.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class CEGUI::String __cdecl CEGUI::PropertyHelper::sizeToString(class CEGUI::Size const &)" (__imp_?sizeToString@PropertyHelper@CEGUI@@SA?AVString@2@ABVSize@2@@Z)
1>ceguifalagardex.lib(FalMinimapProperties.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class CEGUI::String __cdecl CEGUI::PropertyHelper::sizeToString(class CEGUI::Size const &)" (__imp_?sizeToString@PropertyHelper@CEGUI@@SA?AVString@2@ABVSize@2@@Z)
1>ceguifalagardex.lib(FalSimpleTextProperties.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class CEGUI::colour __cdecl CEGUI::PropertyHelper::stringToColour(class CEGUI::String const &)" (__imp_?stringToColour@PropertyHelper@CEGUI@@SA?AVcolour@2@ABVString@2@@Z) referenced in function "public: virtual void __thiscall CEGUI::FalagardSimpleTextProperties::TextColor::set(class CEGUI::PropertyReceiver *,class CEGUI::String const &)" (?set@TextColor@FalagardSimpleTextProperties@CEGUI@@UAEXPAVPropertyReceiver@3@ABVString@3@@Z)
1>..\..\..\..\_Scripts\VC7.1\Release\UIFrame.dll : fatal error LNK1120: 837 unresolved externals
使用工具:vs2008
搜索更多相关主题的帖子: public 项目 
2013-09-21 18:07
yuccn
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:何方
等 级:版主
威 望:167
帖 子:6814
专家分:42393
注 册:2010-12-16
收藏
得分:14 
把你的工程放出来看看?
估计是函数没有实现吧

http://blog.

我行我乐
公众号:逻辑客栈
我的博客:
https://blog.yuccn. net
2013-09-21 18:39
szjszj
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2009-8-2
收藏
得分:0 
以下是引用yuccn在2013-9-21 18:39:37的发言:

把你的工程放出来看看?
估计是函数没有实现吧

http://blog.
对不起,我是新手不太会操作,项目是从网上找的,求指教


[ 本帖最后由 szjszj 于 2013-9-21 19:14 编辑 ]
2013-09-21 18:56
szjszj
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2009-8-2
收藏
得分:0 
这样的信息可以吗?
1>------ Build started: Project: CEGUIFalagard, Configuration: Release Win32 ------
1>Linking...
1>   Creating library ..\..\..\..\_Scripts\VC7.1\Release\UIFrame.lib and object ..\..\..\..\_Scripts\VC7.1\Release\UIFrame.exp
1>ceguifalagardex.lib(FalAnimateProperties.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::PushButton::PushButton(class CEGUI::PushButton const &)" (__imp_??0PushButton@CEGUI@@QAE@ABV01@@Z)
文件:
/************************************************************************
    filename:     CEGUIPushButton.cpp
    created:    13/4/2004
    author:        Paul D Turner
   
    purpose:    Implementation of PushButton widget base class
*************************************************************************/
/*************************************************************************
    Crazy Eddie's GUI System (http://www.)
    Copyright (C)2004 - 2005 Paul D Turner (paul@)

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*************************************************************************/
#include "elements/CEGUIPushButton.h"

// Start of CEGUI namespace section
namespace CEGUI
{

/*************************************************************************
    constants
*************************************************************************/
// event strings
const String PushButton::EventNamespace("PushButton");
const String PushButton::EventClicked( (utf8*)"Clicked" );
// properties
PushButtonProperties::NormalImage PushButton::d_normalImageProperty;
PushButtonProperties::PushedImage PushButton::d_pushedImageProperty;
PushButtonProperties::HoverImage  PushButton::d_hoverImageProperty;
PushButtonProperties::DisabledImage  PushButton::d_disabledImageProperty;
PushButtonProperties::UseStandardImagery PushButton::d_useStandardImageryProperty;
PushButtonProperties::TextXOffset PushButton::d_textXOffsetProperty;


/*************************************************************************
    Constructor
*************************************************************************/
PushButton::PushButton(const String& type, const String& name) :
    ButtonBase(type, name)
{
    // default options
    d_autoscaleImages        = true;
    d_useStandardImagery    = true;
    d_useNormalImage        = false;
    d_useHoverImage            = false;
    d_usePushedImage        = false;
    d_useDisabledImage        = false;
    d_textXOffset = 0.0f;

    // add properties for push button class
    addPushButtonProperties();
}


/*************************************************************************
    Destructor
*************************************************************************/
PushButton::~PushButton(void)
{
}

bool PushButton::isStandardImageryEnabled(void) const
{
    return d_useStandardImagery;
}

bool PushButton::isCustomImageryAutoSized(void) const
{
    return d_autoscaleImages;
}

const RenderableImage* PushButton::getNormalImage(void) const
{
    return d_useNormalImage ? &d_normalImage : static_cast<const RenderableImage*>(0);
}

const RenderableImage* PushButton::getHoverImage(void) const
{
    return d_useHoverImage ? &d_hoverImage : static_cast<const RenderableImage*>(0);
}

const RenderableImage* PushButton::getPushedImage(void) const
{
    return d_usePushedImage ? &d_pushedImage : static_cast<const RenderableImage*>(0);
}

const RenderableImage* PushButton::getDisabledImage(void) const
{
    return d_useDisabledImage ? &d_disabledImage : static_cast<const RenderableImage*>(0);
}

float PushButton::getTextXOffset(void) const
{
    return d_textXOffset;
}

void PushButton::setStandardImageryEnabled(bool setting)
{
    if (d_useStandardImagery != setting)
    {
        d_useStandardImagery = setting;
        requestRedraw();
    }
}

void PushButton::setCustomImageryAutoSized(bool setting)
{
    // if we are enabling auto-sizing, scale images for current size
    if (setting && setting != d_autoscaleImages)
    {
        Rect area(0, 0, getAbsoluteWidth(), getAbsoluteHeight());
        d_normalImage.setRect(area);
        d_hoverImage.setRect(area);
        d_pushedImage.setRect(area);
        d_disabledImage.setRect(area);

        requestRedraw();
    }

    d_autoscaleImages = setting;
}

void PushButton::setNormalImage(const RenderableImage* image)
{
    if (image)
    {
        d_useNormalImage = true;
        d_normalImage = *image;
        d_normalImage.setRect(Rect(0, 0, getAbsoluteWidth(), getAbsoluteHeight()));
    }
    else
    {
        d_useNormalImage = false;
    }

    requestRedraw();
}

void PushButton::setHoverImage(const RenderableImage* image)
{
    if (image)
    {
        d_useHoverImage = true;
        d_hoverImage = *image;
        d_hoverImage.setRect(Rect(0, 0, getAbsoluteWidth(), getAbsoluteHeight()));
    }
    else
    {
        d_useHoverImage = false;
    }

    requestRedraw();
}

void PushButton::setPushedImage(const RenderableImage* image)
{
    if (image)
    {
        d_usePushedImage = true;
        d_pushedImage = *image;
        d_pushedImage.setRect(Rect(0, 0, getAbsoluteWidth(), getAbsoluteHeight()));
    }
    else
    {
        d_usePushedImage = false;
    }

    requestRedraw();
}

void PushButton::setDisabledImage(const RenderableImage* image)
{
    if (image)
    {
        d_useDisabledImage = true;
        d_disabledImage = *image;
        d_disabledImage.setRect(Rect(0, 0, getAbsoluteWidth(), getAbsoluteHeight()));
    }
    else
    {
        d_useDisabledImage = false;
    }

    requestRedraw();
}

void PushButton::setTextXOffset(float offset)
{
    d_textXOffset = offset;
}

/*************************************************************************
    handler invoked internally when the button is clicked.   
*************************************************************************/
void PushButton::onClicked(WindowEventArgs& e)
{
    fireEvent(EventClicked, e, EventNamespace);
}


/*************************************************************************
    Handler for mouse button release events
*************************************************************************/
void PushButton::onMouseButtonUp(MouseEventArgs& e)
{
    if ((e.button == LeftButton) && isPushed())
    {
        Window* sheet = System::getSingleton().getGUISheet();

        if (sheet != NULL)
        {
            // if mouse was released over this widget
            if (this == sheet->getChildAtPosition(e.position))
            {
                // fire event
                WindowEventArgs args(this);
                onClicked(args);
            }

        }

        e.handled = true;
    }

    // default handling
    ButtonBase::onMouseButtonUp(e);
}

void PushButton::onSized(WindowEventArgs& e)
{
    // default processing
    ButtonBase::onSized(e);

    // scale images if required.
    if (d_autoscaleImages)
    {
        Rect area(0, 0, getAbsoluteWidth(), getAbsoluteHeight());
        d_normalImage.setRect(area);
        d_hoverImage.setRect(area);
        d_pushedImage.setRect(area);
        d_disabledImage.setRect(area);

        e.handled = true;
    }

}

void PushButton::resizeWithText()
{
    Size size = getRenderSize();
    setSize( Absolute, size );

    Point newPos;
    newPos.d_x = m_ptHookPosition.d_x;
    newPos.d_y = m_ptHookPosition.d_y;
    switch( m_HookMode )
    {
    case Hook_Left:
        newPos.d_y -= d_pixelSize.d_height / 2;
        break;
    case Hook_Right:
        newPos.d_x -= d_pixelSize.d_width;
        newPos.d_y -= d_pixelSize.d_height / 2;
        break;
    case Hook_Top:
        newPos.d_x -= d_pixelSize.d_width / 2;
        break;
    case Hook_Bottom:
        newPos.d_x -= d_pixelSize.d_width / 2;
        newPos.d_y -= d_pixelSize.d_height;
        break;
    case Hook_LeftTop:
        break;
    case Hook_LeftBottom:
        newPos.d_y -= d_pixelSize.d_height;
        break;
    case Hook_RightTop:
        newPos.d_x -= d_pixelSize.d_width;
        break;
    case Hook_RightBottom:
        newPos.d_x -= d_pixelSize.d_width;
        newPos.d_y -= d_pixelSize.d_height;
        break;
    case Hook_Center:
        newPos.d_x -= d_pixelSize.d_width / 2;
        newPos.d_y -= d_pixelSize.d_height / 2;
        break;
    default:
        break;
    }
    UVector2  relativePos;
    d_area.setPosition( UVector2(cegui_absdim(PixelAligned(newPos.d_x)), cegui_absdim(PixelAligned( newPos.d_y) ) ) );
}

void PushButton::addPushButtonProperties(void)
{
    CEGUI_START_ADD_STATICPROPERTY( PushButton );
       CEGUI_ADD_STATICPROPERTY( &d_normalImageProperty );
       CEGUI_ADD_STATICPROPERTY( &d_pushedImageProperty );
       CEGUI_ADD_STATICPROPERTY( &d_hoverImageProperty );
       CEGUI_ADD_STATICPROPERTY( &d_disabledImageProperty );
       CEGUI_ADD_STATICPROPERTY( &d_useStandardImageryProperty );
       CEGUI_ADD_STATICPROPERTY( &d_textXOffsetProperty );
    CEGUI_END_ADD_STATICPROPERTY
}

} // End of  CEGUI namespace section






[ 本帖最后由 szjszj 于 2013-9-21 20:04 编辑 ]
2013-09-21 19:03
快速回复:编译项目时遇到的问题???
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014729 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved