alright! just found the solution. change it to the following and it works :D

DEFINES += SVN_VER=\\\"$$system(svnversion -n .)\\\"

On Tue, Oct 2, 2012 at 6:27 PM, Mohammad Mirzadeh <[email protected]>wrote:

> Hi,
>
> I'm trying to include my application's SVN revision number as a macro in
> my code and I'm doing this via
>
> DEFINES += SVN_VER=\"$$system(svnversion -n .)\"
>
> When I hover mouse in QtCreator, I see
>
> #define SVN_VER "280M"
>
> which sounds ok to me but the compiler refuses to compile. Apparently the
> "" mark is not processed correctly since gcc complains that
>
> error: invalid suffix "M" on integer constant
>
> How should I fix this?
>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to