dev c++ - Dev C++ to compile C source file -


How can I use Dev C ++ to compile a C source file? I thought it would do this automatically, but for some reasons it is compiled with many errors and I think that for this you have to make changes to compile the file.

Example of Examination:

#include & lt; Stdio.h & gt; Main () {int i, j; Double X, X_Plus_on (); Four f; I = 0; X = 0; Printf ("% f", x_plus_one (x)); Printf ("% f", x); Jammu = Result (i); Printf ("% d", j); } Double x_ plus_on (x) double x; {X = x + 1; Return (x); } As a result (j) int j; {Returns (2 * J + 3); }

This is pre-ANSI code, I'm not sure the GCC compiler supports it , And in any case there is poor practice to use it to change your function to:

  double x_plus_one (double x) {x = x + 1; Return (x); }  

and you must declare it:

  double x_plus_one (double x); You can also try compiling with the  - protected  flag, but I have not tested it. 


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -