Click here to Skip to main content
15,886,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
CPallini16-Oct-14 9:45
mveCPallini16-Oct-14 9:45 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
Stefan_Lang17-Oct-14 3:08
Stefan_Lang17-Oct-14 3:08 
AnswerRe: #define VERSION 1.0.0 - too many decimal points Pin
PIEBALDconsult16-Oct-14 4:58
mvePIEBALDconsult16-Oct-14 4:58 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
Vaclav_16-Oct-14 6:17
Vaclav_16-Oct-14 6:17 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
PIEBALDconsult16-Oct-14 7:27
mvePIEBALDconsult16-Oct-14 7:27 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
Albert Holguin16-Oct-14 12:33
professionalAlbert Holguin16-Oct-14 12:33 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
CPallini16-Oct-14 9:14
mveCPallini16-Oct-14 9:14 
AnswerRe: #define VERSION 1.0.0 - too many decimal points Pin
Richard MacCutchan16-Oct-14 6:27
mveRichard MacCutchan16-Oct-14 6:27 
Vaclav_Sal wrote:
Apparently #define VERSION   does not simply replace the VERSION with literal 1.0.0 but the 1.0.0 is analyzed by GCC compiler.
When you use that statement the value after the word VERSION has two decimal points so it is not a valid token, and the compiler rejects it. A #define statement must contain valid C/C++ code, so the value after the identifier must be a valid literal or expression which resolves to a valid literal; see http://msdn.microsoft.com/en-us/library/teas0593.aspx[^].
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
PIEBALDconsult16-Oct-14 7:29
mvePIEBALDconsult16-Oct-14 7:29 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
Richard MacCutchan16-Oct-14 22:14
mveRichard MacCutchan16-Oct-14 22:14 
GeneralRe: #define VERSION 1.0.0 - too many decimal points Pin
PIEBALDconsult17-Oct-14 5:03
mvePIEBALDconsult17-Oct-14 5:03 
GeneralSOLVED Re: #define VERSION 1.0.0 - too many decimal points Pin
Vaclav_16-Oct-14 7:32
Vaclav_16-Oct-14 7:32 
Questionwhich tool can be used develop c++ code i.e visual studio or unix Pin
Member 1112317113-Oct-14 9:30
Member 1112317113-Oct-14 9:30 
AnswerRe: which tool can be used develop c++ code i.e visual studio or unix Pin
Richard MacCutchan13-Oct-14 21:10
mveRichard MacCutchan13-Oct-14 21:10 
AnswerRe: which tool can be used develop c++ code i.e visual studio or unix Pin
CPallini13-Oct-14 22:08
mveCPallini13-Oct-14 22:08 
GeneralSuggestion on C++ Pin
Member 1081309011-Oct-14 4:45
Member 1081309011-Oct-14 4:45 
GeneralRe: Suggestion on C++ Pin
Michael Haephrati11-Oct-14 5:33
professionalMichael Haephrati11-Oct-14 5:33 
GeneralRe: Suggestion on C++ Pin
Member 1081309011-Oct-14 6:15
Member 1081309011-Oct-14 6:15 
GeneralRe: Suggestion on C++ Pin
Michael Haephrati11-Oct-14 7:11
professionalMichael Haephrati11-Oct-14 7:11 
GeneralRe: Suggestion on C++ Pin
jschell14-Oct-14 10:54
jschell14-Oct-14 10:54 
GeneralStrange Pin
Michael Haephrati11-Oct-14 3:05
professionalMichael Haephrati11-Oct-14 3:05 
GeneralRe: Strange Pin
Freak3012-Oct-14 23:42
Freak3012-Oct-14 23:42 
GeneralRe: Strange Pin
Michael Haephrati12-Oct-14 23:45
professionalMichael Haephrati12-Oct-14 23:45 
GeneralRe: Strange Pin
Stefan_Lang13-Oct-14 2:41
Stefan_Lang13-Oct-14 2:41 
QuestionMFC Ribbon Editor Pin
Richard Andrew x6410-Oct-14 9:30
professionalRichard Andrew x6410-Oct-14 9:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.