-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
静态库错误 #297
Comments
这么奇怪?我看 widget_style.h 有导出 |
确实是这样的,直接用源文件的包含方式却没有这个问题。
…________________________________
发件人: Liu ***@***.***>
发送时间: 2023年4月1日 22:47
收件人: lc-soft/LCUI ***@***.***>
抄送: yauntyour ***@***.***>; Author ***@***.***>
主题: Re: [lc-soft/LCUI] 静态库错误 (Issue #297)
这么奇怪?我看 widget_style.h 有导出 Widget_AddTaskByStyle,widget_style.c 里也有它的定义。
―
Reply to this email directly, view it on GitHub<#297 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APBW4NP443S6V2ACGH4BPDTW7A5YNANCNFSM6AAAAAAWPNIJQE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
提供一下具体信息:
|
就是release的最新版本,并不是我自己编译的。
😉
Yauntyour,yours.
…________________________________
From: Liu ***@***.***>
Sent: Wednesday, April 5, 2023 8:45:38 PM
To: lc-soft/LCUI ***@***.***>
Cc: yauntyour ***@***.***>; Author ***@***.***>
Subject: Re: [lc-soft/LCUI] 静态库错误 (Issue #297)
提供一下具体信息:
* dll 是自行编译的还是在 releases 页面下载的?
* 用的哪个版本?
—
Reply to this email directly, view it on GitHub<#297 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APBW4NND5ZYUWSO2BSCX7WDW7VSPFANCNFSM6AAAAAAWPNIJQE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
我下载 Releases 页面中的 LCUI-2.2.0_x64-windows.lcpkg.zip 测试了一下。 运行 编写测试程序直接调用 然而改用你贴的代码后,编译会报错: 在 复制 exe 和 dll 文件到 dist 目录内: 然后运行 exe 文件,效果如下图所示: |
OK啊,收到!
原来是我改包含路径的问题😂😂
[cid:55311e7b-a7dd-40be-b623-0b9a1d04eae7]
我回头改改吧
…________________________________
发件人: Liu ***@***.***>
发送时间: 2023年4月9日 20:41
收件人: lc-soft/LCUI ***@***.***>
抄送: yauntyour ***@***.***>; Author ***@***.***>
主题: Re: [lc-soft/LCUI] 静态库错误 (Issue #297)
我下载 Releases 页面中的 LCUI-2.2.0_x64-windows.lcpkg.zip 测试了一下。
运行 dumpbin LCUI.lib /EXPORTS 命令输出的内容中有 Widget_AddTaskByStyle:
[image]<https://user-images.githubusercontent.com/1730073/230772274-e465875c-1fde-4b72-a104-b38334b3cb46.png>
编写测试程序直接调用 Widget_AddTaskByStyle(),能够编译通过:
[image]<https://user-images.githubusercontent.com/1730073/230772492-979e96a0-a554-4464-8659-5fe16828bde3.png>
然而改用你贴的代码后,编译会报错:
[image]<https://user-images.githubusercontent.com/1730073/230772564-71afeda5-2ad9-416c-b7c2-b925cc3bd05a.png>
在 css_fontstyle.h 前面插入它所依赖的头文件 LCUI/font.h 和 LCUI/gui/css_library.h 后,可编译通过:
[image]<https://user-images.githubusercontent.com/1730073/230772762-35525cda-f801-4acb-a267-34e005b5c547.png>
复制 exe 和 dll 文件到 dist 目录内:
[image]<https://user-images.githubusercontent.com/1730073/230772927-988c7440-e09c-4da8-8932-225b1c3475e7.png>
然后运行 exe 文件,效果如下图所示:
[image]<https://user-images.githubusercontent.com/1730073/230772973-f252bfb8-b1fc-4e48-b075-2f781d1bedfc.png>
—
Reply to this email directly, view it on GitHub<#297 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APBW4NIM2ZAIPMOTUL6YJQTXAKU6ZANCNFSM6AAAAAAWPNIJQE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在包含编译时遇到如下问题:
代码:
INFO
之所以使用相对包含
include "XXXX.h"
是因为在此之前,我已经利用Python对所有的头文件包含进行修正了。经测试是没有依赖问题的。
但是出现了undefined reference,经过排查发现,是***这个dll里面没有这个东西。
头文件就定义了个寂寞
所以就想着issue一下看看是不是编译的时候忘记加源文件了
The text was updated successfully, but these errors were encountered: