cht電腦資訊gcin
adm Find login register

使用 GCC 14 編譯出現錯誤

yan12125
joined: 2018-10-05
posted: 8
promoted:
bookmarked:
1subject: 使用 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

joined: 2007-08-09
posted: 11478
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02024-06-16quote  

收到,謝謝。

qtnez

joined: 2016-10-14
posted: 93
promoted:
bookmarked:
台灣‧屏東
3subject: Promote 0 Bookmark 02024-08-01quote  

TeX Live 2024 用 gcc14 也編不過。

-- 
Do not feed the troll, please.

yan12125
joined: 2018-10-05
posted: 8
promoted:
bookmarked:
4subject: Promote 0 Bookmark 05 days agoquote  

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

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