GithubHelp home page GithubHelp logo

静态库错误 about lcui HOT 6 CLOSED

yauntyour avatar yauntyour commented on June 10, 2024 1
静态库错误

from lcui.

Comments (6)

lc-soft avatar lc-soft commented on June 10, 2024

这么奇怪?我看 widget_style.h 有导出 Widget_AddTaskByStyle,widget_style.c 里也有它的定义。

from lcui.

yauntyour avatar yauntyour commented on June 10, 2024

from lcui.

lc-soft avatar lc-soft commented on June 10, 2024

提供一下具体信息:

  • dll 是自行编译的还是在 releases 页面下载的?
  • 用的哪个版本?

from lcui.

yauntyour avatar yauntyour commented on June 10, 2024

from lcui.

lc-soft avatar lc-soft commented on June 10, 2024

我下载 Releases 页面中的 LCUI-2.2.0_x64-windows.lcpkg.zip 测试了一下。

运行 dumpbin LCUI.lib /EXPORTS 命令输出的内容中有 Widget_AddTaskByStyle

image

编写测试程序直接调用 Widget_AddTaskByStyle(),能够编译通过:

image

然而改用你贴的代码后,编译会报错:

image

css_fontstyle.h 前面插入它所依赖的头文件 LCUI/font.hLCUI/gui/css_library.h 后,可编译通过:

image

复制 exe 和 dll 文件到 dist 目录内:

image

然后运行 exe 文件,效果如下图所示:

image

from lcui.

yauntyour avatar yauntyour commented on June 10, 2024

from lcui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.