From: SourceForge.net <no...@so...> - 2010-07-14 08:50:11
|
Bugs item #3029164, was opened at 2010-07-13 21:42 Message generated for change (Comment added) made by keithmarshall You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3029164&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: None >Priority: 1 Private: No Submitted By: Greg Hazel (ghazel) Assigned to: Nobody/Anonymous (nobody) Summary: compilation with backslahes fails through make, not with gcc Initial Comment: I'm trying to compile a simple file which has an include path with backslashes in it. This works fine if I run the gcc command directly, but fails when I use a Makefile. The command Make claims to be executing is the same: c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext>dir *.o Volume in drive C is Windows7_OS Volume Serial Number is 20E2-67EC Directory of c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext File Not Found c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext>make gcc -I. -I. -IC:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -Ic:\Progra~2\MySQL\MYSQLS~1.1/include -g -O2 -DFD_SETSIZE=256 -c slim_attrib_ext.c slim_attrib_ext.c:12:19: mysql.h: No such file or directory slim_attrib_ext.c:13:20: errmsg.h: No such file or directory slim_attrib_ext.c:14:26: mysqld_error.h: No such file or directory slim_attrib_ext.c:29: error: syntax error before "MYSQL_RES" slim_attrib_ext.c:29: warning: no semicolon at end of struct or union slim_attrib_ext.c:31: error: syntax error before '}' token slim_attrib_ext.c: In function `all_hashes': slim_attrib_ext.c:48: error: `MYSQL_RES' undeclared (first use in this function) slim_attrib_ext.c:48: error: (Each undeclared identifier is reported only once slim_attrib_ext.c:48: error: for each function it appears in.) slim_attrib_ext.c:48: error: `res' undeclared (first use in this function) slim_attrib_ext.c:48: error: dereferencing pointer to incomplete type slim_attrib_ext.c:49: error: `MYSQL_FIELD' undeclared (first use in this function) slim_attrib_ext.c:49: error: `fields' undeclared (first use in this function) slim_attrib_ext.c:50: error: `MYSQL_ROW' undeclared (first use in this function) slim_attrib_ext.c:50: error: syntax error before "row" slim_attrib_ext.c:52: error: `my_ulonglong' undeclared (first use in this function) slim_attrib_ext.c:52: error: syntax error before "nr" slim_attrib_ext.c:65: error: `nr' undeclared (first use in this function) slim_attrib_ext.c:68: error: `row' undeclared (first use in this function) slim_attrib_ext.c:69: warning: assignment makes pointer from integer without a cast make: *** [slim_attrib_ext.o] Error 1 c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext>dir *.o Volume in drive C is Windows7_OS Volume Serial Number is 20E2-67EC Directory of c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext File Not Found c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext>gcc -I. -I. -IC:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -Ic:\Progra~2\MySQL\MYSQLS~1.1/include -g -O2 -DFD_SETSIZE=256 -c slim_attrib_ext.c c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext>dir *.o Volume in drive C is Windows7_OS Volume Serial Number is 20E2-67EC Directory of c:\Ruby187\lib\ruby\gems\1.8\gems\ghazel-slim-attributes-0.7.6.1\ext 07/13/2010 02:35 PM 413,140 slim_attrib_ext.o 1 File(s) 413,140 bytes 0 Dir(s) 76,642,385,920 bytes free ---------------------------------------------------------------------- >Comment By: Keith Marshall (keithmarshall) Date: 2010-07-14 08:50 Message: > This bug is with msys Make, not mingw Make. Sorry. In which case, it isn't a bug at all; thanks for withdrawing it. Just for the record, MSYS make treats backslashes as any POSIX hosted make would -- as an escape. If you *must* use them in path names (why?) then you must escape them, (i.e. double them up). ---------------------------------------------------------------------- Comment By: Greg Hazel (ghazel) Date: 2010-07-13 21:45 Message: Oops! This bug is with msys Make, not mingw Make. Sorry. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3029164&group_id=2435 |