Development > Newbie Coding
new makro
Muton:
http://sourceforge.net/apps/trac/ufoai/changeset/29287
or
Compiling: ..\..\src\common\common.c
V:\strün (x68)\MinGW\ufoai\src\common\common.c: In function 'Qcommon_Init':
V:\strün (x68)\MinGW\ufoai\src\common\common.c:887: error: expected ')' before numeric constant
Process terminated with status 1 (2 minutes, 24 seconds)
1 errors, 0 warnings
Destructavator:
Should be fixed now in the SVN.
Mattn:
reverted that commit - see https://sourceforge.net/apps/trac/ufoai/changeset/29291 for more details.
Muton:
I thought we submit an int as macro not a string
because gcc on Win32 is not able to use the string
if called from C::B (first post)
<Add option="-DUFO_REVISION='"28869M"'" />
result in
Compiling: ..\..\src\common\common.c
V:\strün (x68)\MinGW\ufoai\src\common\common.c:887:78: warning: character constant too long for its type
V:\strün (x68)\MinGW\ufoai\src\common\common.c: In function 'Qcommon_Init':
V:\strün (x68)\MinGW\ufoai\src\common\common.c:887: error: expected ')' before '\x3836394d'
GNU C (TDM-2 mingw32) version 4.4.1 (mingw32)
the explanation for this
cmd
COLLECT_GCC_OPTIONS='-v' '-DUFO_REVISION='\''1234c'\''' '-otest.exe' '-mtune=i386'
there are ' \ ' ' 1234c ' \ ' '
not ' " 1234c " '
mingw
COLLECT_GCC_OPTIONS='-v' '-DUFO_REVISION="1234c"' '-otest.exe' '-mtune=i386'
correct ' " 1234c " '
Mattn:
well for me -DSOMEVAR=\"VALUE\" works and - as i've written in the commit log - int is not possible, because svnversion might also return none int values.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version