Hi, It looks like the realpath and canonicalize_file_name posix calls are missing from msys2.
#define _GNU_SOURCE #include <limits.h> #include <stdlib.h> int main(int argc, char *argv[]) { realpath("test", NULL); canonicalize_file_name("test"); return 0; } On linux: 11:15:48 folkert@belle:~⥠40s $ gcc can.c 11:15:51 folkert@belle:~⥠$ ./a.out 11:15:53 folkert@belle:~⥠$ On msys2: FHE@Hawking MINGW64 ~/Cornerstone/G4Platforms/G4Cpp/03G4Parsing $ gcc can.c can.c: In function 'main': can.c:7:10: warning: implicit declaration of function 'realpath' [-Wimplicit-function-declaration] realpath("test", NULL); ^~~~~~~~ can.c:9:11: warning: implicit declaration of function 'canonicalize_file_name' [-Wimplicit-function-declaration] canonicalize_file_name("test"); ^~~~~~~~~~~~~~~~~~~~~~ C:\msys2\tmp\ccSvFse3.o:can.c:(.text+0x21): undefined reference to `realpath' C:\msys2\tmp\ccSvFse3.o:can.c:(.text+0x2d): undefined reference to `canonicalize_file_name' collect2.exe: error: ld returned 1 exit status Folkert van Heusden -- ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Msys2-users mailing list Msys2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msys2-users