This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
command [2015/01/06 18:25] czerny created |
command [2015/01/06 18:41] czerny |
||
---|---|---|---|
Line 14: | Line 14: | ||
'main.c' includes the following source code: | 'main.c' includes the following source code: | ||
+ | <code c> | ||
#include <stdio.h> | #include <stdio.h> | ||
Line 21: | Line 22: | ||
return 0; | return 0; | ||
} | } | ||
+ | </code> | ||
+ | |||
+ | Now you can change some project settings. Select 'Project' --> 'Project Options': | ||
+ | |||
+ | * In the 'Compiler' tab, 'Optimizations' change 'Maximize speed' to 'None'. The Pelles C optimizer has some errors. This is not helpfull to beginners. So we don't use them. | ||
+ | * To use the debugger to step through your code, select 'Debug information' --> 'Full' in the 'Compiler' tab and 'Debug information' --> 'CodeView COFF format' in the 'Linker' tab. | ||
+ | * Click 'ok' to leave the 'Project Options' dialog. | ||
+ | |||
+ | Now you can use 'Project' --> 'Build' (or 'Rebuild') to compile your project. | ||
+ | |||
+ | Then it is possible to use 'Project' --> 'Execute' to run 'test.exe' or to use 'Project' --> 'Debug' to start the debugger. | ||
+ | |||
+ | That's it! | ||