Game Development Community

Compiling TGE under VC++ .net

by Radgeman · in Torque Game Engine · 05/26/2003 (12:28 pm) · 4 replies

Pardon me for rehashing this... I looked around and nobody seems to be having the same issues that I am.

I have the standard edition (2003) of VC++ .net. I have downloaded the HEAD release. When I try to compile it, I get:

------ Build started: Project: opengl2d3d, Configuration: Debug Win32 ------

Compiling...
opengl2d3d.cc
c:\torque\lib\opengl2d3d\gllist.h(9) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory

Build log was saved at "file://c:\torque\lib\out.VC6.DEBUG\opengl2d3d\BuildLog.htm"
opengl2d3d - 1 error(s), 0 warning(s)

Sure enough. When I look in the VC++.net include directory, there is a file called iostream, but not iostream.h.

Looking the online help, I found this:

"Old iostream Library
For Visual C++, the use of the old iostream library is deprecated; you will get a warning each time you use an iostream function. It is possible that the old iostream library will be removed in a subsequent release."

I realize that VC++.net is not supported by GG, but, that seems to be what is available now. Is the professional version required?

Am I missing something really simple? I would appreciate any help.

Thanks

David "Radgeman" Mintz

#1
05/26/2003 (7:27 pm)
A couple more details:

In gllist.h, if I change

#include
to
#include

The line:
template ostream& operator<<(ostream& o, const GLList& list);

generates:

Compiling...
opengl2d3d.cc
c:\torque\lib\opengl2d3d\gllist.h(88) : error C2143: syntax error : missing ';' before '&'
c:\torque\lib\opengl2d3d\gllist.h(88) : error C2501: 'ostream' : missing storage-class or type specifiers
c:\torque\lib\opengl2d3d\gllist.h(88) : error C2501: 'operator'<<'' : missing storage-class or type specifiers
c:\torque\lib\opengl2d3d\gllist.h(88) : error C2143: syntax error : missing ';' before ''
c:\torque\lib\opengl2d3d\gllist.h(88) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Since I am relatively new to c++, I have no idea what is wrong with this line. I was hoping the sdk would compile out of the box.

And, btw, I did make the registry change. Amazingly, all of the other modules compiled just fine.

Is anybody else having this problem? Help!

-David
#2
05/26/2003 (9:06 pm)
Yea I'm having the same problems compiling on version 2003. I'm planning on digging through it this weekend. As a side note, you can compile out of the box on vs.net version 2002.
#3
05/27/2003 (3:46 am)
After you change
#include <iostream.h>
to
#include <iostream>
insert
using namespace std;
after the include lines.
#4
05/27/2003 (4:15 am)
Sweet!!!! That was it. Thank you very much.

-David