On Mon, Aug 15, 2011 at 7:49 AM, Jonathan Martens <jonat...@snetram.nl> wrote: > This commit brakes compilation on windows with the following errror: > > gcc -g -O2 -Wall -W -o ccache.exe main.o ccache.o mdfour.o hash.o > execute.o util.o args.o stats.o version.o cleanup.o snprintf.o unify.o > manifest.o hashtable.o hashtable_itr.o murmurhashneutral2.o hashutil.o > getopt_long.o exitfn.o lockfile.o counters.o language.o compopt.o -Lzlib > -lzccache.o: In function `cc_process_args': > D:\MinGW\msys\1.0\home\bb.mythtv\ccache-jrosdahl/ccache.c:1610: undefined > reference to `x_realpath' > collect2: ld returned 1 exit status > make: *** [ccache.exe] Error 1 > > This seems to be because x_realpath is defined inside a #ifndef _WIN32 block > in util.c however it is referenced without such a clause in ccache.c like > this: > > ```c > /* Convert to absolute path. */ > arg_profile_dir = x_realpath(arg_profile_dir + 1); > ``` > > I am not sure if the code needs to be in an ifndef construct, as I have not > looked at it too much.
Assuming -fprofile-generate/-fprofile-use also work on windows, that code shouldn't be ifdef'ed out. Instead I need an equivalent to x_realpath for windows (or windows support for x_realpath). Cheers, Chris _______________________________________________ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache