Error on building project

Dec 6, 2010 at 9:30 PM

I have built a simple test programming using VS 6.0 coding (see below) and it results in an error

 

Code:

#include <iostream.h>

int main()
{
	cout << "test" << endl;
	return(0);
}

Error:
1>------ Build started: Project: Test of 6.0 compiler, Configuration: Debug Win32 ------
1>Build started 12/6/2010 5:25:01 PM.
1>InitializeBuildStatus:
1>  Touching "Debug\Test of 6.0 compiler.unsuccessfulbuild".
1>CLA : Command line warning D4002: ignoring unknown option '/Oy-'
1>  Test.cpp
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(106): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(106): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(106): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(106): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(108): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(108): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(108): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(109): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(109): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(109): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(111): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(111): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(111): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(111): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(113): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(113): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(113): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(115): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(115): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(115): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(115): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(117): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(117): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(117): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(118): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(118): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(118): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(120): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\mem.h(120): error C4226: nonstandard extension used : '__far' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(41): warning C4068: unknown pragma
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(50): warning C4068: unknown pragma
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(53): warning C4068: unknown pragma
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(71): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(72): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(73): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(74): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(75): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(76): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(77): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(78): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(80): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(131): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(132): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(205): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(211): error C2059: syntax error : '('
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(211): error C2238: unexpected token(s) preceding ';'
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(222): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(249): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(252): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(253): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(255): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(331): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(406): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(409): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(410): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(414): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(416): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(418): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(489): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(585): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(588): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(589): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(591): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(592): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(650): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(719): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(721): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(722): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(725): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(729): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(732): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(734): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(744): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(747): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(749): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(759): error C4226: nonstandard extension used : '__huge' is an obsolete keyword
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(762): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(764): warning C4166: illegal calling convention for constructor/destructor
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(803): warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(804): warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(805): warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(806): warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(835): warning C4068: unknown pragma
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(838): warning C4068: unknown pragma
1>c:\program files (x86)\microsoft visual studio\vc98\include\iostream.h(847): warning C4068: unknown pragma
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.40
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Coordinator
Dec 7, 2010 at 12:03 AM

That is odd, because /Oy- works fine on my installation of VS 6.0.  Did you set the Platform toolset in project properties to "v60"?  Are you using the latest version of Daffodil?  If so, please create a new issue in the issue tracker and attach your project files so I can try to reproduce the problem.

Coordinator
Dec 7, 2010 at 1:57 AM

This problem was resolved by reinstalling VS 6.0 and applying SP6:

http://daffodil.codeplex.com/workitem/221