My Dev compiler won't compile

This is a discussion on My Dev compiler won't compile within the C++ Programming forums, part of the General Programming Boards category; I am very new to programmin and have just downloaded it. I did the simple program that they give you ...

  1. #1
    Unregistered
    Guest

    My Dev compiler won't compile

    I am very new to programmin and have just downloaded it.
    I did the simple program that they give you in the tutorial but it will not compile, I have done others as well but none will do anything. Am I just missing something or am I doing something wrong? If you are not to busy, please respond. Thank you

  2. #2
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    What were the error messages you got when you tried to compile?

  3. #3
    Unregistered
    Guest
    It dosn't give an error, It just won't compile. When I try to run it is says that this program is not compiled.

  4. #4
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    Congratulations, you've fallen at the first hurdle.

  5. #5
    Unregistered
    Guest
    So I am just a really big idiot? Are you going to tell me why or just mock me?

  6. #6
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    Who knows, all I've got to go on is what you're telling me. If you've got one of bloodsheds new fangled IDE's you might need to scroll up a bit to obtain the error message. Nobody's gonna help without one of those (and before you think it, yes I'm on some big power trip).

    Which compiler did you download?

  7. #7
    Unregistered
    Guest
    devC++ 4.9.2.0
    It dosen't give any error, but it does say that there are no input files. What that means, I have no clue. Which files is it talking about?

  8. #8
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Did you actually type any code? Sounds like you opened Dev and just clicked "run program".

  9. #9
    Unregistered
    Guest
    #include <stdio.h>


    int main(int argc, char *argv[])
    {
    int first=1;
    int second=5;
    int third=3;
    int sum(first+second)*third;
    printf("%d ",sum);
    return 0;
    }


    Thisis what it told me to type, so I typed it. It told me to compile and run, so I compiled it and ran it. It told me it would do something, guess what. It did nothing.

  10. #10
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    I tried using the new release of Dev-C++, but I couldn't get it to work. Just download version 4.0 and it will work fine.

  11. #11
    Unregistered
    Guest
    Ok I'll try that, Thanks.

  12. #12
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    Also you need to do

    int sum = (first+second)*third;
    or it won't compile.

  13. #13
    Unregistered
    Guest
    Well thanks for the help, but I figured out the problem on my own. It was saving the file as a .h, all I had to do was save it as a CPP file and it will run just fine. That isn't bad is it?

  14. #14
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    >That isn't bad is it?

    No, people enjoy having their time wasted.

  15. #15
    Unregistered
    Guest
    You don't like newbies do you. Well tell you what maybe you should try not to help, if you are going to be rude.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 10-25-2007, 12:27 PM
  2. DEV C++ Compiler Questions re: Color
    By pityocamptes in forum C++ Programming
    Replies: 6
    Last Post: 07-13-2006, 07:28 AM
  3. Dev C++ Compiler - True or false?
    By JamesF in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-10-2006, 11:03 AM
  4. Can you use a different compiler in Dev C++?
    By Dixon in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2003, 01:57 PM
  5. Won't compile, can YOU compile it on your compiler?
    By incognito in forum C++ Programming
    Replies: 12
    Last Post: 03-10-2002, 11:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21