what is the difference with dev-cpp and visual c++

This is a discussion on what is the difference with dev-cpp and visual c++ within the C++ Programming forums, part of the General Programming Boards category; I can not compile and run my codes which I wrote in visual c++ in dev-cpp. (I do copy and ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    34

    what is the difference with dev-cpp and visual c++

    I can not compile and run my codes which I wrote in visual c++ in dev-cpp. (I do copy and paste my codes are not so complicated to import projects.)

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    34
    #include <iostream>
    using namespace std;
    int main(){
    cout<<"aaaa"<<endl;
    return 0;
    }

    it is a simple code infact I didn't understand the error massage I do not know how to read it. It is not like visual c++.

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    does it give you errors with this code? it shouldn't. if it does give you errors with this code, then something may be wrong with the install...which version of dev do you have?

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    oh yeah, i forgot that project settings/source file settings...check to see that it is being saved as .cpp instead of .c

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    34
    #include <iostream>
    using space std;
    int main(){
    cout<<"s"<<endl;
    return 0;
    }

    with this code I have an error like this

    cc1plus.exe C:\Myfolder\cc1plus.exe
    unrecognized option `-fdollar-in-identifiers'

    I developt this program from files/new/source code file and then save it as .cpp but I have still have the error.

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    I use mingw 3.2 also, but I don't use dev. It may be their software, not sure, try at the bloodshed forum.

  7. #7
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Just take that switch out of he command line. Not sure about dev c but you should be able to set command line switches on one of the menus. Look under settings,project or build. It may be there.Or if you see a use $ in identifiers checkbox then clear it. There is no reason to use a $ in identifiers so no reason for that switch i guess.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with Visual Studio 2005
    By Duskan in forum C++ Programming
    Replies: 2
    Last Post: 08-25-2007, 02:04 PM
  2. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 07:13 PM
  3. My Console Library For Dev C++
    By cfrost in forum C++ Programming
    Replies: 21
    Last Post: 11-09-2004, 06:22 AM
  4. Organisiing code
    By pdstatha in forum C++ Programming
    Replies: 4
    Last Post: 07-01-2002, 11:39 AM
  5. difference between cout and printf
    By Shadow12345 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2002, 09:27 AM

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