cht電腦資訊gcin
adm Find login register

使用 GCC 14 編譯出現錯誤

yan12125
1 使用 GCC 14 編譯出現錯誤
Promote 0 Bookmark 02024-06-13quote  

I got following compiler errors for gcin 2.9.0 when I use GCC 14:

gcin.cpp: In function ‘open_xim’:
gcin.cpp:250:11: error: implicit declaration of function ‘p_err_no_alert’; did you mean ‘p_err_no_alter’? [-Wimplicit-function-declaration]
  250 |           p_err_no_alert("IMOpenIM '%s' failed. Maybe another XIM server is running.\n",
      |           ^~~~~~~~~~~~~~
      |           p_err_no_alter
gcin.cpp: In function ‘delayed_start_cb’:
gcin.cpp:501:7: error: implicit declaration of function ‘init_tray_indicator’ [-Wimplicit-function-declaration]
  501 |       init_tray_indicator();
      |       ^~~~~~~~~~~~~~~~~~~

Apparently GCC 14 started to consider -Wimplicit-function-declaration as an error. After some tests, I noticed that I need two more compiler flags "-Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types" to get gcin built. Could you fix gcin and get rid of those two kinds of errors?

eliu
2
Promote 0 Bookmark 02024-06-16quote  
qtnez
3
Promote 0 Bookmark 02024-08-01quote  

TeX Live 2024 用 gcc14 也編不過。

yan12125
4
Promote 0 Bookmark 02024-11-30quote  

請問有修正的計畫嗎?2.9.2版仍有這個問題,且另外需要 -Wno-error=int-conversion 才能在 GCC 14 編譯。

eliu
5
Promote 0 Bookmark 02024-12-12quote  

cht電腦資訊gcin
adm Find login register
views:2155