如何避免在免费的Pascal .dll/.so上使用WSRegister * [英] How to avoid WSRegister* on a Free Pascal .dll/.so

查看:85
本文介绍了如何避免在免费的Pascal .dll/.so上使用WSRegister *的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于成功编译了一个空白" Apache模块,但是现在我遇到了一个非常烦人的问题.

I finally had success compiling a "blank" Apache module, but now I've hit a rather annoying snag.

我想与MongoDB服务器通信,我选择了FreePascal/Lazarus的唯一库, pebongo .

I want to communicate with a MongoDB server and I opted for the only lib around for FreePascal/Lazarus, pebongo.

pebongo 的依赖是突触.

以某种方式将模块加载到Apache中时,出现"/usr/lib/apache2/modules/mod_visius.so:未定义符号:WSRegisterCustomImageList"的情况.

Somehow I'm getting "/usr/lib/apache2/modules/mod_visius.so: undefined symbol: WSRegisterCustomImageList" when loading my module into Apache.

我认为我已经在Menus.pp上找到了符号,并且lazarusall(something)也在其中起作用.再次,我认为:)

I've tracked down the symbols onto Menus.pp, I think, and lazarusall(something) also plays a role in this. Again, I think :)

如何避免出现这些WSRegister *符号?

How should I avoid those WSRegister* symbols showing up?

推荐答案

在对WSRegister *符号进行了谷歌搜索之后,我发现

After some Googling about the WSRegister* symbols, I've found here a solution.

如果您正在执行控制台程序,则应删除LCL的依赖项或将接口单元添加到主程序中.

If you are doing a console program you should remove dependencies of LCL or add the Interfaces Unit into your main program.

我通过在我可以编辑的父单元中包括接口来完成此操作,因为将其放置在lib的主程序中不会实现.

I've done it by including Interfaces on the parent unit that I can edit, since placing it on the main program of a lib will not do it.

这篇关于如何避免在免费的Pascal .dll/.so上使用WSRegister *的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆