Dev C++ !?...

This is a discussion on Dev C++ !?... within the C++ Programming forums, part of the General Programming Boards category; I have a C++ 6.0 but it doesn't work on <iostream> , which I learn to use but it works ...

  1. #1
    Registered User [Z-D]'s Avatar
    Join Date
    Oct 2006
    Posts
    37

    Question Dev C++ !?...

    I have a C++ 6.0 but it doesn't work on <iostream> , which I learn to use but it works on <stdio.h> . Why is that and does anybody know how to get it to work.

    When I compli it I get:
    c:\program files\microsoft visual studio\vc98\include\eh.h(32) : fatal error C1189: #error : "eh.h is only for C++!"
    Error executing cl.exe.


    So I tried downloading Dev C++ from
    http://www.bloodshed.net/dev/devcpp.html
    http://sourceforge.net/project/showf...ease_id=307174

    Non of it is working!... Either that or I don't know how to use it. Once downloaded, when I try to open it it automatically closses in split second. How do I get it to work?....

    Please help me......
    Last edited by [Z-D]; 10-21-2006 at 03:42 AM.

  2. #2
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Are you trying to use DevC++ (the latest version is 4.9.9.2) or Visual C++? Dev-C++ has no "eh.h". And it would say so.

    Did you download and install full DevC++ (together with the compiler and headers)?

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    ...it doesn't work on <iostream> , which I learn to use but it works on <stdio.h> . Why is that and does anybody know how to get it to work. ..."eh.h is only for C++!"
    The compiler seems to be compiling in C, instead of C++. So, something is configured incorrectly... I don't know what...

    Maybe VC++ 6 requires you to use <iostream.h> but I doubt it...

    Apparently, eh.h has something do do with exception handling. I assume you didn't #include <eh.h>. But, if you included <windows.h>, eh.h is probably included inside <windows.h> .

    I've never tried Dev-C++ myself, but every time I've installed an new compiler it's taken a few hours to a day to get it installed, configured & working. So, don't give-up. (Always test a new compiler with "Hello World" before trying a real project!)

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Are you sure your source file doesn't end in .c? C++ source must end in .cpp, .cc or .cxx to be properly recognized.

    Maybe VC++ 6 requires you to use <iostream.h> but I doubt it...
    Nope, it doesn't. It was the first MS compiler to ship the new-style headers, though they lack a few things.

    Anyway, you might want to upgrade to Visual Studio 2005 if possible.

    Or install Code::Blocks instead of Dev-C++.

    None of this matters, though, if your source file ends in .c. All compilers will treat is as C.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    When you create your projects in Dev-C++, is the Language: C box checked?

  6. #6
    Registered User [Z-D]'s Avatar
    Join Date
    Oct 2006
    Posts
    37
    Thanks for trying to help out guys. But I think I'll just give up on this one, and try to finnish my assignment in th University's Computer lab. Gives me less stress....

    By the way the error thing that I mentioned in the above post was not from Dev C++, it was from Microsof Visual C++ 6.0. I should have been more clear there.



    Anyways this is what I got.
    http://img183.imageshack.us/img183/5915/downloadkn8.png
    I donwloaded two WinRAR files from the arrow shown. I was unable to download the rest.
    from here http://www.bloodshed.net/dev/devcpp.html

    I mannage to get these....
    http://img181.imageshack.us/img181/606/devzn0.jpg
    http://img89.imageshack.us/img89/7734/dev2po1.jpg
    I don't know what to do from here....


    If the process to get it work is too troublesome, don't bother wasting your time explaining to me. I'm just gonna use the University's Computer Lab, which is one hour drive from my place.... T_T
    But if it is simple then please explain.

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Don't get Dev-C++. Get Code::Blocks or Visual Studio 2005 Express.

    And I still claim that your source file ends in .c. So far you've not told me that I'm wrong.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    The larch
    Join Date
    May 2006
    Posts
    3,573
    You have downloaded Dev-C++ 4. That is really old. Although version 5 (4.9.9.2) is said to be beta, it is actually very stable. (Download the full package, there's no point in going through a lot of trouble to make it work with the non-standard VC++ libraries.)

    If you want to try it, you'll probably need to uninstal the old version first, because otherwise there might be some confusion about configuration files in some system folders. If you run into trouble, Bloodshed DevC++ support forum is also a place to ask (make sure you read their Read this before posting thread before posting a thread )

    You might also look for wxDev-C++. It's practically the same, except you also get a graphical GUI tool and the wxWidgets libraries for cross-platform GUI programming.

    If you are a programming student, you might better get some compiler to your home computer. It would be hard to learn stuff, if you only had limited access to a compiler - that would be like learning to swim on dry land.

  9. #9
    Registered User [Z-D]'s Avatar
    Join Date
    Oct 2006
    Posts
    37
    Quote Originally Posted by CornedBee
    And I still claim that your source file ends in .c. So far you've not told me that I'm wrong.
    No man, it's .cpp .

    My Microsoft Visuals C++ 6.0 is exactly the same as I have in Uninersity but it only has one Project in New. And that is Database Project. I was taught to use Win32 Project in University.


    Someone suggested for me to use Cygwin... I'm still working on downloading it... Can't seem to get it right, but if its troubling me too much, I'm just gonna give up...

    Quote Originally Posted by anon
    If you want to try it, you'll probably need to uninstal the old version first, because otherwise there might be some confusion about configuration files in some system folders. If you run into trouble, Bloodshed DevC++ support forum is also a place to ask (make sure you read their Read this before posting thread before posting a thread)
    I might consider that... or I might just give up on this...

    Quote Originally Posted by anon
    If you are a programming student, you might better get some compiler to your home computer. It would be hard to learn stuff, if you only had limited access to a compiler - that would be like learning to swim on dry land.
    Nice analogy. I like that saying... So getting a C++ at home is like getting swimming pool. Having trouble with that...
    Actually I'm a Mechanical Engineering student. But it still worries me because C-Programming is 50% of proffesional studies... But I'm very sure I'll pull through even without C++ at home.

    Thanks guys.

    I posted my first problem here: Hello and Help

  10. #10
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Quote Originally Posted by CornedBee
    Don't get Dev-C++. Get Code::Blocks or Visual Studio 2005 Express.
    There's nothing wrong with Dev-C++. Better than Visual Studio. I've tried Visual Studio but I uninstalled it on the same day, because I didn't like it at all.
    Code::Blocks is... primitive. I know it is being developed and probably soon it will beat any other IDE, but at the moment I would prefer Dev-C++.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  11. #11
    Registered User [Z-D]'s Avatar
    Join Date
    Oct 2006
    Posts
    37
    Okay, so I mannaged to download Cygwin... When I open it I get the black screen. It seems I have to write some command in... But what do I write to open a C++ file?...

  12. #12
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    I think that is a command line compiler, borland issue them 5.0 6.0 come to mind. They are tricky to use. Best stick to the IDE as mentioned above.

    MSVC++6.0 that you use is rather dated, and since the standard in 1998 ot fails to properly implement the standard in some important ways. I would consider using Dev4.992 or even code::blocks instead. MSVC++2005 is avaliable from MS website free of charge but you will also need the platform SDK if you want to use windows.h functions

  13. #13
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    From their site: "Cygwin is a Linux-like environment for Windows." It's not an IDE or compiler, it's just a way to get some linux functionality/feel on windows, and probably isn't what you want.

    Non of it is working!... Either that or I don't know how to use it. Once downloaded, when I try to open it it automatically closses in split second. How do I get it to work?....
    What is 'it'? The setup application? Dev-C++ itself?

    I agree with CornedBee that Code::Blocks or Visual C++ 2005 express are good options; I personally have both installed, as well as Dev-C++.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  14. #14
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    But what do I write to open a C++ file?...
    This really made me laugh
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  15. #15
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Exclamation need some help

    im new to cprogramming.i have dev-c++ complier and i dont know how to run a program.it says project not complied.how do i use this complier?

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

Similar Threads

  1. Whats better, C-Free or Dev C++??
    By i_can_do_this in forum Tech Board
    Replies: 10
    Last Post: 07-07-2006, 04:34 AM
  2. New to Dev C++/<windows.h>...
    By Cilius in forum C++ Programming
    Replies: 3
    Last Post: 02-23-2005, 12:05 AM
  3. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 07:43 PM
  4. DEV C++ Limitations?
    By Kirdra in forum Game Programming
    Replies: 3
    Last Post: 09-09-2002, 09:40 PM
  5. Tutorial about Bloodshed Dev!
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2001, 06:42 PM

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