Microsoft & Visual C++ Express Edition woes...

Discussion about everything. New games, 3d math, development tips...
RustyNail
Posts: 168
Joined: Fri Jun 02, 2006 1:49 pm
Contact:

Microsoft & Visual C++ Express Edition woes...

Post by RustyNail »

Here we go...
After installing Windows XP, Visual C++ Express Edition, Platform SDK, then having to rip out my hair to get my modem to work (windows refused to install the proper driver, and its own kinda didn't do the job...) registering C++ Express, being unable to access the benefits site and all...

After all of that happened, and I finally decided to test Visual C++ EE:

Code: Select all

#include <iostream>

int main()
{
	std::cout << "Hello Microsoft... Why must you make such sucky products?" << std::endl;
	return 0;
}
I get 102 errors. ==;; ==;;
Will Microsoft ever try to help its users?!?!?!? :evil: :evil: :evil:
Why are the Libs that IT supplied so screwed up?
all of the errors are either in cstdio or cstdlib...
And all of them are like this
" Error 101 error C2143: syntax error : missing '{' before ':' "
Any suggestions on what to do?



And please, forgive me for all of these repeated posts on the same topic...
I'm a n00b and cannot help it... I want to change, but it is difficult... :oops:
I have recently discovered that both the Flu and my Algebra teacher have exact the same effect on my health: it quickly degrades.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Usually fixing the first few errors will eliminate many of the following ones. I can't imagine why that code would be giving you fits, but if you want actual help, it would be useful if you provided the exact text of the first few [10 or so] error messages and maybe the source code with line numbers.

Travis
RustyNail
Posts: 168
Joined: Fri Jun 02, 2006 1:49 pm
Contact:

Post by RustyNail »

Code: Select all

Error	1	error C2143: syntax error : missing '{' before ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	25
Error	2	error C2059: syntax error : ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	25
Error	3	error C2143: syntax error : missing '{' before ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	25
Error	4	error C2059: syntax error : ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	25
Error	5	error C2143: syntax error : missing '{' before ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	25
Error	6	error C2059: syntax error : ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	25
Error	7	error C2143: syntax error : missing '{' before ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	26
Error	8	error C2059: syntax error : ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	26
Error	9	error C2143: syntax error : missing '{' before ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	26
Error	10	error C2059: syntax error : ':'	f:\program files\microsoft visual studio 8\vc\include\cstdio	26
10 errors....
And (beginning at line 25) file cstdio:

Code: Select all

using ::size_t; using ::fpos_t; using ::FILE;
using ::clearerr; using ::fclose; using ::feof;
using ::ferror; using ::fflush; using ::fgetc;
using ::fgetpos; using ::fgets; using ::fopen;
using ::fprintf; using ::fputc; using ::fputs;
using ::fread; using ::freopen; using ::fscanf;
using ::fseek; using ::fsetpos; using ::ftell;
using ::fwrite; using ::getc; using ::getchar;
using ::gets; using ::perror;
using ::putc; using ::putchar;
using ::printf; using ::puts; using ::remove;
using ::rename; using ::rewind; using ::scanf;
using ::setbuf; using ::setvbuf; using ::sprintf;
using ::sscanf; using ::tmpfile; using ::tmpnam;
using ::ungetc; using ::vfprintf; using ::vprintf;
using ::vsprintf;
_STD_END
I have recently discovered that both the Flu and my Algebra teacher have exact the same effect on my health: it quickly degrades.
someone153
Posts: 2
Joined: Thu Oct 26, 2006 12:22 am

Post by someone153 »

Try this:

Code: Select all

#include <iostream>

using namespace std;

int main() 
{ 
	cout << "Hello Microsoft... Why must you make such sucky products?";
	cout << "\n";
	cout << "\n";

	system("PAUSE");
}
I hope that helps.
RustyNail
Posts: 168
Joined: Fri Jun 02, 2006 1:49 pm
Contact:

Post by RustyNail »

Hmmm....
I'm quite sure that that is not the problem,
I think it's something related to the includes...
But then again, i'm not the best person to ask about this...

Any ideas?

Another fact:
Before installing WinXP, on Win2K,
Code::Blocks with MinGW, Borland, and VCToolKit2003 had the same problems...

EDIT: Hmm.... It seems that only "#include <iostream>" gives errors...
other headers do not give any errors...
Last edited by RustyNail on Mon Oct 30, 2006 2:11 am, edited 1 time in total.
I have recently discovered that both the Flu and my Algebra teacher have exact the same effect on my health: it quickly degrades.
laforced
Posts: 39
Joined: Tue Feb 01, 2005 5:07 am
Location: South Carolina,USA
Contact:

Post by laforced »

Remove the space in the scope resoultion operator
If you're not making GREAT games
you belong in an institute!
The Game Institute.
www.gameinstitute.com
RustyNail
Posts: 168
Joined: Fri Jun 02, 2006 1:49 pm
Contact:

Post by RustyNail »

It's not that...
The build does not get past the line:

Code: Select all

#include <iostream> 
EDIT:

Just installed Dev-Cpp & the same program compiled without any errors...
Probably the same if I install Code::Blocks and MinGW...
So, for me this is isolated to VC2005Express... hmmm...
There is something wrong with the PSDK or VC's own built-in libs... :?
I have recently discovered that both the Flu and my Algebra teacher have exact the same effect on my health: it quickly degrades.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I'm assuming that you are compiling from within the IDE instead of at the command line. I also don't have access to the top of the VC8 iostream header, so this is all guesswork...

What happens if you create an Empty Win32 project and add the code there? If that doesn't work, you might check to see how many files named iostream there are on your system. If there are more than one, there could be a problem with the wrong one getting used.

Did you follow the directions for installing the PSDK?
RustyNail
Posts: 168
Joined: Fri Jun 02, 2006 1:49 pm
Contact:

Post by RustyNail »

If I create an Empty Win32 Console Application, and add the code there,
I get the same errors...

I have 8 different copies of iostream, but only 3 of them are in directories that are listed in VC's directories... And one of them is iostream.h, which is not used...
so, I have one here:

Code: Select all

F:\Program Files\Microsoft Visual Studio 8\VC\include\
and one here:

Code: Select all

F:\ProgrammingLibs\Microsoft Platform SDK for Windows Server 2003 R2\Include\crt\
and since the second directory is listed first, I assume that it is the one being used...

And I DID follow the directions Micro$oft gave for installing...
I have recently discovered that both the Flu and my Algebra teacher have exact the same effect on my health: it quickly degrades.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You might try putting in F:\Program Files\Microsoft Visual Studio 8\VC\include\ first in the include order. The instructions aren't clear about it, but it is something you could try.
3ddev
Posts: 169
Joined: Tue Sep 19, 2006 6:51 am
Contact:

Visual Express has expired on May 6, 2006! Leastways, my...

Post by 3ddev »

I think the Visual Express Edition expired on May 6, 2006. After this date, certain features would become disabled. Within a few months they wouldn't even let you compile a program. Leastways, that is what my version of the Express Edition liscense agreement stated. Microsoft doensn't disclose that when you download it, but about halfway through the liscense agreement it is hidden away. The due date has oviously expired; maybe all your errors are because the program compiling functions are diabled? :?:
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I really doubt it is that. It is my understanding that many of the guys here are using VS8 express with Irrlicht. There would many posts about this same exact problem.

I did some searching and it looks like the VS8 express beta 2 expired May 1, 2006. I don't think anyone here is using the beta anymore...
zenaku
Posts: 212
Joined: Tue Jun 07, 2005 11:23 pm

Post by zenaku »

The site appears down at the moment, but here's the google cache of it:

http://72.14.253.104/search?q=cache:E3B ... =clnk&cd=1

I installed c++ 2005 express, the platform SDK, followed the instructions above, and your program compiles without errors for me.

I installed c++ express from the manual install ISO's

http://msdn.microsoft.com/vstudio/expre ... fault.aspx

If you use the ISO you don't have to register with MSN or any of that crap.
-------------------------------------
IrrLua - a Lua binding for Irrlicht
http://irrlua.sourceforge.net/
RustyNail
Posts: 168
Joined: Fri Jun 02, 2006 1:49 pm
Contact:

Post by RustyNail »

Vewy, Vwey Strange....
Before, when using Code::Blocks on Win2K with 2003ToolKit and the same PSDK, I recieved the same errors, so I think that this has something to do with the includes in that...
I'll try to re-order the stuff, speaking of that, where was the PSDK in your includes directories? At the top, or the bottom?
And I did use the ISO's...
I have recently discovered that both the Flu and my Algebra teacher have exact the same effect on my health: it quickly degrades.
RustyNail
Posts: 168
Joined: Fri Jun 02, 2006 1:49 pm
Contact:

Post by RustyNail »

Okay... I feel vewy, vewy dum-dum....
At the Microsoft forums they told me that it was all with the extension of the file... it was ".c" which compiles as a C file, and that does not support "#include <iostream>"; I needed to change the extension to ".cpp" and voila! everything worked.... 8)
I feel vewy dum-dum...
I have recently discovered that both the Flu and my Algebra teacher have exact the same effect on my health: it quickly degrades.
Post Reply