当前位置:   article > 正文

在windows 编译Gnu Global_c++ gnu global windows版本

c++ gnu global windows版本

编译平台是msys2 + windows server 2012 R2,使用的是官方的6.6.3版本。

Mingw64报错信息

bt_open.c: In function 'tmp':
bt_open.c:405:2: error: unknown type name 'sigset_t'; did you mean '_sigset_t'?
  405 |  sigset_t set, oset;
  • 1
  • 2
  • 3

Mingw32报错信息

./.libs/lt-gtags-cscope.c: In function 'main':
./.libs/lt-gtags-cscope.c:318:16: warning: implicit declaration of function '_spawnv' [-Wimplicit-function-declaration]
  318 |   rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
      |                ^~~~~~~
./.libs/lt-gtags-cscope.c:318:25: error: '_P_WAIT' undeclared (first use in this function)
  318 |   rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
      |                         ^~~~~~~
./.libs/lt-gtags-cscope.c:318:25: note: each undeclared identifier is reported only once for each function it appears in
strip: './gtags-cscope.exe': No such file
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

解决方案

使用mingw32

./configure --disable-shared 
make
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/294266
推荐阅读
相关标签
  

闽ICP备14008679号