For me, I had this problem with the Makefile that I used on Windows. The compiler is a 32-bit version of MinGW64-W32.
gcc --version shows: gcc (i686-posix-sjlj-rev0, Built by MinGW-W64 project) 5.1.0
make --version shows: GNU Make 3.81
I wrote a Makefile that was supposed to include modified directories (i.e. include directories for a 32-bit compiler are different from include directories for a 64-bit compiler). I needed to include something like: -IC:/Program Files (x86)/mingw-w64/gtk+-3.6.4_win32/include/gtk-3.0
For instance. I had the same problem when I tried to compile the compiler was wrong (on line 0 or something. My solution was simple. I just had to use double quotes, for example:
-I"C:/Program Files (x86)/mingw-w64/gtk+-3.6.4_win32/include/gtk-3.0"
The use of double quotes. This allowed me to successfully compile my program.
Note. Usually on Linux for a directory with spaces we need something like:
-I"C:/Program\ Files\ (x86)/mingw-w64/gtk+-3.6.4_win32/include/gtk-3.0"
with \ in front of the space. In the Makefile, if I use \ for spaces, with a double quote, the program does not compile. I believe the Makefile thinks that \ is actually part of the directory name when I use double quotes.
For your code, try something like:
.PHONY: all all: /Users/wu/qqaa/homepage\ 1\ 2\ 3/icons\ (ab) @tar cjvf 1.tar.bz2 --exclude=*~ "/Users/wu/qqaa/homepage 1 2 3/icons (ab)"
If this does not work, try something like:
.PHONY: all all: /Users/wu/qqaa/homepage\ 1\ 2\ 3/icons\ (ab) @tar cjvf 1.tar.bz2 --exclude=*~ "/Users/wu/qqaa/homepage\ 1\ 2\ 3/icons\ (ab)"
In any case, good luck.
user5253700
source share