Javacym / liblunar

Automatically exported from code.google.com/p/liblunar
1 stars 0 forks source link

和gsimplecal整合? #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
我下载了最新的lunar-calendar 
3.0.0-1版,然后想和gsimplecal做整合,希望在我的openbox内可以��
�示出农历的日期。我按照了FAQ内的做法,将将原程序中的 
gtk_calendar_new() 替换为 lunar_calendar_new() 函数,并重新compile 
gsimplecal,结果却出现了

undefined reference to `lunar_calendar_new'

这个讯息。老实说我不懂C++,反而略懂Java。所以当面对这样�
��消息时,不知道该如何解决。不知道有没有人能够帮我解决
这个问题?

我将lunar-calendar.h相关的档案和gsimplecal的原始档放在一起了,
并且加入了#include 
"lunar-calendar.h"的命令。还有什么地方需要做的吗?

Original issue reported on code.google.com by kkjim200...@yahoo.com on 10 May 2011 at 7:10

GoogleCodeExporter commented 8 years ago
应该是链接时出错了,或者没有包含头文件所致。

我从 https://github.com/dmedvinsky/gsimplecal.git 
这里下了代码看了一下,gsimpecal中使用的是gtk2,所以应该使�
��lunar-calendar 2.4.1(lunar-calendar-2.x对应gtk2, 
lunar-calendar-3.x对应gtk3)。如果你用arch,可以用yaourt 
lunar-calendar2 安装。

我简单写了一个patch,可以让gsimplecal使用lunar-calendar,你可以
试试看。

Original comment by yet...@gmail.com on 11 May 2011 at 2:15

Attachments:

GoogleCodeExporter commented 8 years ago
Issue 20 has been merged into this issue.

Original comment by yet...@gmail.com on 11 May 2011 at 2:17

GoogleCodeExporter commented 8 years ago
Issue 21 has been merged into this issue.

Original comment by yet...@gmail.com on 11 May 2011 at 2:17

GoogleCodeExporter commented 8 years ago
当初没有注意到原来要用gtk2的版本。换了之后就正常显示了�
��

谢谢

Original comment by kkjim200...@yahoo.com on 11 May 2011 at 12:50