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.)
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.)
#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++.
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?
oh yeah, i forgot that project settings/source file settings...check to see that it is being saved as .cpp instead of .c
#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.
I use mingw 3.2 also, but I don't use dev. It may be their software, not sure, try at the bloodshed forum.
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