#include <iostream> using namespace std; void main( ) { cout << "aaa"; }
1>------ Build started: Project: remote_computer_controller_client, Configuration: Debug Win32 ------ 1> main.cpp 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::ios_base::iostate' to 'int &&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'int &&std::_Move<_Ty&>(int)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::iostate 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(51 ![]() ![]() 1> with 1> [ 1> _Ty=std::ios_base::iostate 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std: ![]() 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation '__int64 &&std::_Move<_Ty&>(__int64)' being compiled 1> with 1> [ 1> _Ty=std: ![]() 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(521) : see reference to function template instantiation 'void std: ![]() ![]() 1> with 1> [ 1> _Ty=std: ![]() 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::ios_base::_Iosarray *' to 'std::ios_base::_Iosarray *&&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'std::ios_base::_Iosarray *&&std::_Move<_Ty&>(std::ios_base::_Iosarray)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::_Iosarray * 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(524) : see reference to function template instantiation 'void std: ![]() 1> with 1> [ 1> _Ty=std::ios_base::_Iosarray * 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::ios_base::_Fnarray *' to 'std::ios_base::_Fnarray *&&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'std::ios_base::_Fnarray *&&std::_Move<_Ty&>(std::ios_base::_Fnarray)' being compiled 1> with 1> [ 1> _Ty=std::ios_base::_Fnarray * 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(525) : see reference to function template instantiation 'void std: ![]() 1> with 1> [ 1> _Ty=std::ios_base::_Fnarray * 1> ] 1>f:\program files\microsoft visual studio 10.0\vc\include\utility(99): error C2440: 'return' : cannot convert from 'std::locale *' to 'std::locale *&&' 1> You cannot bind an lvalue to an rvalue reference 1> f:\program files\microsoft visual studio 10.0\vc\include\utility(117) : see reference to function template instantiation 'std::locale *&&std::_Move<_Ty&>(std::locale)' being compiled 1> with 1> [ 1> _Ty=std::locale * 1> ] 1> f:\program files\microsoft visual studio 10.0\vc\include\xiosbase(526) : see reference to function template instantiation 'void std: ![]() 1> with 1> [ 1> _Ty=std::locale * 1> ] ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
#include <iostream> using namespace std; int main( ) { cout << "aaa" << endl; return 0; }
After looking up the main method, I read that the main method has more parameters.
Did you also update all libraries? because it will not be different in a different editor. |
I think you should use Code Blocks
:http://www.codeblocks.org/ |
Here ya go:
http://www.microsoft.com/visualstudi...al-cpp-express I use it as well, even though I have a license for the whole program and not just the free express version =). Works like a charm. |
After looking up the main method, I read that the main method has more parameters.
Did you also update all libraries? because it will not be different in a different editor. |
I'll try, thanks. By the way, will it be legal if I release paid application with this free version?
|
Hi All, Thanks for bringing this question up, hopefully this will make things clearer. Provided that you comply with all the License Terms for a particular Express release, the 2010 Express SKUS can be used to create commercial software. Before you register the express SKU you are effectively running a trial version of the Express product, which expires after 30 days. There is no limit on creating commercial software during the trial period. Once you register the product, the ‘Evaluation’ text changes to show it is a licensed copy. Thanks for your time, Adrian Collier Program Manager – Visual Studio Express |