How to avoid WSRegister* on a Free Pascal .dll/.so

独自空忆成欢 提交于 2019-12-12 23:27:32

问题


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

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

Dependency for pebongo is synapse.

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

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

How should I avoid those WSRegister* symbols showing up?


回答1:


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

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

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.



来源:https://stackoverflow.com/questions/4064026/how-to-avoid-wsregister-on-a-free-pascal-dll-so

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!