cht電腦資訊gcin
adm Find login register

使用 GCC 14 編譯出現錯誤

yan12125
joined: 2018-10-05
posted: 7
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: 11473
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02024-06-16quote  

收到,謝謝。

qtnez

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

TeX Live 2024 用 gcc14 也編不過。

-- 
Do not feed the troll, please.

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