You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone https://github.com/nocotan/chppl-tool
$ cd chppl-tool/chppl-tool/src
$ make
すると
$ make
gcc -g -std=c++11 -I C:/msys64/mingw64/include -I C:/msys64/mingw64/include/POST GR~1/server -MD -MF obj/chppl.dep -o obj/chppl.o -c chppl.cpp
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:1114:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/chppl.h:6,
from chppl.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/port.h:17:19: fatal error: netdb.h: No such file or directory
compilation terminated.
make: *** [makefile:20: obj/chppl.o] エラー 1
gcc -g -std=c++11 -I C:/msys64/mingw64/include -I C:/msys64/mingw64/include/POST GR~1/server -MD -MF obj/chppl.dep -o obj/chppl.o -c chppl.cpp
In file included from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:48:0,
from ../include/common_pg.h:7,
from ../include/chppl.h:6,
from chppl.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/utils/elog.h:41:0: warning: "ERROR" re defined
#define ERROR 20 /* user error - abort transaction; return to
^
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71: 0,
from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23 ,
from C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:3 7,
from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/chppl.h:6,
from chppl.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75:0: note: this is the lo cation of the previous definition
#define ERROR 0
^
gcc -g -std=c++11 -I C:/msys64/mingw64/include -I C:/msys64/mingw64/include/POST GR~1/server -MD -MF obj/common_pg.dep -o obj/common_pg.o -c common_pg.cpp
In file included from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:48:0,
from ../include/common_pg.h:7,
from common_pg.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/utils/elog.h:41:0: warning: "ERROR" re defined
#define ERROR 20 /* user error - abort transaction; return to
^
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71: 0,
from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23 ,
from C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:3 7,
from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from common_pg.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75:0: note: this is the lo cation of the previous definition
#define ERROR 0
^
gcc -g -std=c++11 -I C:/msys64/mingw64/include -I C:/msys64/mingw64/include/POST GR~1/server -MD -MF obj/operation.dep -o obj/operation.o -c operation.cpp
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:459:0: warning: "S_IRGR P" redefined
#define S_IRGRP 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:155:0: note: this is the location of the previous definition
#define S_IRGRP (S_IRUSR >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:460:0: warning: "S_IWGR P" redefined
#define S_IWGRP 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:156:0: note: this is the location of the previous definition
#define S_IWGRP (S_IWUSR >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:461:0: warning: "S_IXGR P" redefined
#define S_IXGRP 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:157:0: note: this is the location of the previous definition
#define S_IXGRP (S_IXUSR >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:462:0: warning: "S_IRWX G" redefined
#define S_IRWXG 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:158:0: note: this is the location of the previous definition
#define S_IRWXG (S_IRWXU >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:463:0: warning: "S_IROT H" redefined
#define S_IROTH 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:160:0: note: this is the location of the previous definition
#define S_IROTH (S_IRGRP >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:464:0: warning: "S_IWOT H" redefined
#define S_IWOTH 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:161:0: note: this is the location of the previous definition
#define S_IWOTH (S_IWGRP >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:465:0: warning: "S_IXOT H" redefined
#define S_IXOTH 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:162:0: note: this is the location of the previous definition
#define S_IXOTH (S_IXGRP >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101:0,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:466:0: warning: "S_IRWX O" redefined
#define S_IRWXO 0
^
In file included from ../include/operation.h:6:0,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/sys/stat.h:163:0: note: this is the location of the previous definition
#define S_IRWXO (S_IRWXG >> 3)
^
In file included from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:48:0,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/include/POSTGR~1/server/utils/elog.h:41:0: warning: "ERROR" re defined
#define ERROR 20 /* user error - abort transaction; return to
^
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:71: 0,
from C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:23 ,
from C:/msys64/mingw64/include/POSTGR~1/server/pg_config_os.h:3 7,
from C:/msys64/mingw64/include/POSTGR~1/server/c.h:101,
from C:/msys64/mingw64/include/POSTGR~1/server/postgres.h:47,
from ../include/common_pg.h:7,
from ../include/operation.h:9,
from operation.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:75:0: note: this is the lo cation of the previous definition
#define ERROR 0
^
gcc -g -std=c++11 -I C:/msys64/mingw64/include -I C:/msys64/mingw64/include/POSTGR~1/server -MD -MF obj/error.dep -o obj/error.o -c error.cpp
gcc -o ../bin/chppl obj/validate.o obj/chppl.o obj/common_pg.o obj/operation.o obj/error.o -L C:/msys64/mingw64/lib -lpq -lstdc++ -g -std=c++11
obj/operation.o: In function `Operation::install_lib() const':
C:\msys64\home\yumetodo\chppl-tool\chppl-tool\src/operation.cpp:97: undefined reference to `pgwin32_system(char const*)'
C:\msys64\home\yumetodo\chppl-tool\chppl-tool\src/operation.cpp:98: undefined reference to `pgwin32_system(char const*)'
C:\msys64\home\yumetodo\chppl-tool\chppl-tool\src/operation.cpp:100: undefined reference to `pgwin32_system(char const*)'
obj/operation.o: In function `Operation::download_lib() const':
C:\msys64\home\yumetodo\chppl-tool\chppl-tool\src/operation.cpp:117: undefined reference to `pgwin32_system(char const*)'
C:\msys64\home\yumetodo\chppl-tool\chppl-tool\src/operation.cpp:118: undefined reference to `pgwin32_system(char const*)'
obj/operation.o:C:\msys64\home\yumetodo\chppl-tool\chppl-tool\src/operation.cpp:120: more undefined references to `pgwin32_system(char const*)' follow
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:15: ../bin/chppl] エラー 1
LINKエラーになる。
The text was updated successfully, but these errors were encountered:
yumetodo
changed the title
Windwos(msys2 mingw)でコンパイルできない
Windows(msys2 mingw)でコンパイルできない
Jun 16, 2016
msys2( https://msys2.github.io/ )のmingwでコンパイルできない。
環境構築
OSはWIndows7 x64
https://msys2.github.io/
よりインストーラーを落としてインストール、
msys2_shell.cmd
を実行してなお
再現手順
msys2_shell.cmd
があるディレクトリをコマンドプロンプトで開きそして
すると
とコンパイルエラーになる。仕方ないので
./mingw64/include/postgresql/server/port.h
をのように書き換えた所
LINKエラーになる。
The text was updated successfully, but these errors were encountered: