Click here to Skip to main content
13,350,289 members (44,518 online)

C / C++ / MFC

 
AnswerRe: Linker error Pin
Jochen Arndt13-Sep-17 5:14
mvpJochen Arndt13-Sep-17 5:14 
GeneralRe: Linker error Pin
Vaclav_Sal13-Sep-17 10:05
memberVaclav_Sal13-Sep-17 10:05 
GeneralRe: Linker error Pin
Jochen Arndt14-Sep-17 4:38
mvpJochen Arndt14-Sep-17 4:38 
GeneralRe: Linker error Pin
leon de boer15-Sep-17 23:21
memberleon de boer15-Sep-17 23:21 
GeneralRe: Linker error Pin
Vaclav_Sal16-Sep-17 4:02
memberVaclav_Sal16-Sep-17 4:02 
GeneralRe: Linker error Pin
leon de boer16-Sep-17 4:16
memberleon de boer16-Sep-17 4:16 
QuestionClarification of Debug/Release mode Pin
ForNow11-Sep-17 3:24
memberForNow11-Sep-17 3:24 
AnswerRe: Clarification of Debug/Release mode Pin
Jochen Arndt11-Sep-17 4:21
mvpJochen Arndt11-Sep-17 4:21 
The compiler and linker options are set initially to default values for the selected mode (debug or release).

You can change the options according to your needs. Some tips:

  • Use a new setting (e.g. by copying a default setting) if not changing basic options like the warning level
  • You are not allowed to ship an application that is statically linked with debug versions of the run-time libraries or ship the dynamic debug versions with your applications.


The NDEBUG symbol is a standard C symbol that controls if the assert functions are active or not. You can remove it temporarily in release builds to test your code.

The _DEBUG symbol is a MS specific extension. It is set according to the selected /M linker option and controls if the release or debug versions of the run-time libraries should be used.

Finally, the remaining main differences are that debug builds are compiled without optimisations and with (optional) additional checks like initialising memory and using guard bytes to detect out-of-bound accesses.
AnswerRe: Clarification of Debug/Release mode Pin
leon de boer11-Sep-17 16:51
memberleon de boer11-Sep-17 16:51 
GeneralRe: Clarification of Debug/Release mode Pin
ForNow11-Sep-17 16:58
memberForNow11-Sep-17 16:58 
GeneralRe: Clarification of Debug/Release mode Pin
leon de boer12-Sep-17 9:33
memberleon de boer12-Sep-17 9:33 
GeneralRe: Clarification of Debug/Release mode Pin
ForNow12-Sep-17 9:46
memberForNow12-Sep-17 9:46 
GeneralRe: Clarification of Debug/Release mode Pin
leon de boer13-Sep-17 19:25
memberleon de boer13-Sep-17 19:25 
Questionbatch file quicksort algorithm Pin
wayne wu10-Sep-17 17:10
memberwayne wu10-Sep-17 17:10 
AnswerRe: batch file quicksort algorithm Pin
Richard MacCutchan10-Sep-17 20:24
protectorRichard MacCutchan10-Sep-17 20:24 
AnswerRe: batch file quicksort algorithm Pin
CPallini11-Sep-17 3:22
mvpCPallini11-Sep-17 3:22 
Questionelaborate the build instructions Pin
Member 125524089-Sep-17 14:05
memberMember 125524089-Sep-17 14:05 
AnswerRe: elaborate the build instructions Pin
Richard MacCutchan10-Sep-17 5:18
protectorRichard MacCutchan10-Sep-17 5:18 
AnswerRe: elaborate the build instructions Pin
CPallini10-Sep-17 6:14
mvpCPallini10-Sep-17 6:14 
QuestionHow to #include <string> in C code Pin
Vaclav_Sal9-Sep-17 7:18
memberVaclav_Sal9-Sep-17 7:18 
AnswerRe: How to #include <string> in C code Pin
Richard MacCutchan9-Sep-17 7:39
protectorRichard MacCutchan9-Sep-17 7:39 
AnswerRe: How to #include <string> in C code Pin
CPallini10-Sep-17 4:03
mvpCPallini10-Sep-17 4:03 
Questiondirectx 9 ? Pin
bluatigro6-Sep-17 23:03
memberbluatigro6-Sep-17 23:03 
SuggestionRe: directx 9 ? Pin
Richard MacCutchan7-Sep-17 5:41
protectorRichard MacCutchan7-Sep-17 5:41 
QuestionRe: directx 9 ? Pin
David Crow7-Sep-17 6:12
memberDavid Crow7-Sep-17 6:12 

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.


Advertise | Privacy |
Web03 | 2.8.180111.1 | Last Updated 19 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid