Menu

No way to compile some standard C programs?

2002-10-08
2012-09-26
  • Nobody/Anonymous

    I'm trying to programming in just plain C.
    I believe I have found a problem that limits Dev-C++ for C development.

    First, Start up a new project.
    In the "New Project Window":
    Select "Windows Application".
    Select "C Project".
    Press OK.
    ( Save the project in a proper location.)

    Now compile and run the program.
    It should be OK.

    Now add the following standard C library headers to the top above #include <windows.h>:

    #include <stdio.h>
    #include <stdlib.h>

    Try to compile and run the program.
    You should get a list of errors.

    Is there a workaround for this?

    Thank you.

    Michael

     
    • Nobody/Anonymous

      Same kind of error appears with standard console-app.

      or

      just create a text file main.c and write a basic "hello world" programm. Next open it and try to compile it as a C programm.

       
    • Nobody/Anonymous

      Now I found out its ONLY the filename. Write it in uppercase letters, i.e. MAIN.C instead of main.c.

      This seems to be another error of mingw (like inlcudeing conio.c instead of .h) - and the new version is not recommended,  sigh

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.