Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question#ifdef...#endif is not working in Resource(.rc) file Pin
Member 1233569517-Nov-16 17:20
Member 1233569517-Nov-16 17:20 
AnswerRe: #ifdef...#endif is not working in Resource(.rc) file Pin
Richard MacCutchan17-Nov-16 20:50
mveRichard MacCutchan17-Nov-16 20:50 
AnswerRe: #ifdef...#endif is not working in Resource(.rc) file Pin
leon de boer17-Nov-16 20:54
leon de boer17-Nov-16 20:54 
GeneralRe: #ifdef...#endif is not working in Resource(.rc) file Pin
Member 1233569517-Nov-16 21:43
Member 1233569517-Nov-16 21:43 
QuestionCMake - syntax error ? Pin
Vaclav_16-Nov-16 6:11
Vaclav_16-Nov-16 6:11 
AnswerRe: CMake - syntax error ? Pin
Jochen Arndt16-Nov-16 7:21
professionalJochen Arndt16-Nov-16 7:21 
GeneralRe: CMake - syntax error ? Pin
Vaclav_16-Nov-16 14:52
Vaclav_16-Nov-16 14:52 
GeneralRe: CMake - syntax error ? Pin
leon de boer16-Nov-16 18:10
leon de boer16-Nov-16 18:10 
You are missing the point it is complaining about there is no cmake_minimum_required(VERSION 3.5) in CMakeLists.txt

You said you cut and paste "cmake_minimum_required(VERSION 3.5)" but did you put it into CMakeLists.txt, you didn't put in the script file per chance??????

I am not being condescending here but I need to check, you do get the script file has nothing to do with cmake. Like you we are a bit perplexed because it's step 1 of any cmake file.

Usually the first two lines of CMakeLists.txt are
make_minimum_required (VERSION x.x)
project (_MY_PROJECT_NAME_)

_MY_PROJECT_NAME_ being what you want to call the project

I am sorry for having to ask and check all these really beginner stuff but there is something strange going on.

Whatever the situation I suggest you simply open up a command line window, change to the directory and manually type in the cmake command (so we have any scripts out of the way) and we can see the exact screen spit from cmake itself without the script which is just another source of possible error.

Assuming we pass all this basic stuff there is left one other possibility that your first makelist pulls other makelists and those later makelists have version requirements but that is not the sort of error you seem to be getting. The problem is the exact messages change depending on version CMake and exact OS type so I will leave it as a possibility.
In vino veritas


modified 17-Nov-16 0:42am.

GeneralRe: CMake - syntax error ? Pin
Jochen Arndt16-Nov-16 21:07
professionalJochen Arndt16-Nov-16 21:07 
QuestionSOLVED CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 4:19
Vaclav_14-Nov-16 4:19 
AnswerRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 4:25
professionalChris Losinger14-Nov-16 4:25 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 4:32
Vaclav_14-Nov-16 4:32 
GeneralRe: CMake whose "source directory" ? Pin
Chris Losinger14-Nov-16 4:46
professionalChris Losinger14-Nov-16 4:46 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_14-Nov-16 5:10
Vaclav_14-Nov-16 5:10 
AnswerRe: CMake whose "source directory" ? Pin
Albert Holguin15-Nov-16 7:22
professionalAlbert Holguin15-Nov-16 7:22 
GeneralRe: CMake whose "source directory" ? Pin
Vaclav_15-Nov-16 9:27
Vaclav_15-Nov-16 9:27 
AnswerRe: CMake whose "source directory" ? Pin
Vaclav_17-Nov-16 5:11
Vaclav_17-Nov-16 5:11 
QuestionEclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 4:40
Vaclav_13-Nov-16 4:40 
AnswerRe: Eclipse IDE GCC linker options ? Pin
NotPolitcallyCorrect13-Nov-16 7:00
NotPolitcallyCorrect13-Nov-16 7:00 
AnswerRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 15:17
leon de boer13-Nov-16 15:17 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_13-Nov-16 16:42
Vaclav_13-Nov-16 16:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Richard MacCutchan13-Nov-16 21:42
mveRichard MacCutchan13-Nov-16 21:42 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Jochen Arndt13-Nov-16 21:49
professionalJochen Arndt13-Nov-16 21:49 
GeneralRe: Eclipse IDE GCC linker options ? Pin
leon de boer13-Nov-16 22:35
leon de boer13-Nov-16 22:35 
GeneralRe: Eclipse IDE GCC linker options ? Pin
Vaclav_14-Nov-16 4:31
Vaclav_14-Nov-16 4:31 

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.