[Dev-C++] VC project and Dev-cpp: friend declaration requires class-key
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Bo F. <bo...@ma...> - 2004-11-27 10:36:46
|
Hi all.
I getting involved in a project and the other members uses Visual C++ or
Borland. I'm the first on the project to use Dev-cpp.
When I compile, I get alot of errors, I've included those at the end of
the mail. Many of them look like this:
../spacesim/workroot/source/Client/processing/p_processor.h:76: error:
friend
declaration requires class-key, i.e. `friend class
PROCESSING::cProcessor'
Does that really mean that I have to add a class-key (which appears to
be the same as namespace) to all my friend declarations to make it compile?
...that would suck....
I tried making the modification in one declaration, and the error did go
away. But I do hope there is an easier way.
Thx.
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\slet
ingen\Dokumenter\c++\MySpaceSim\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\slet
ingen\Dokumenter\c++\MySpaceSim\Makefile.win" all
g++.exe -c ../spacesim/workroot/source/Client/Space_Sim.cpp -o
../spacesim/workroot/source/Client/Space_Sim.o
-I"C:/Dev-Cpp/include/c++/3.3.1"
-I"C:/Dev-Cpp/include/c++/3.3.1/mingw32"
-I"C:/Dev-Cpp/include/c++/3.3.1/backward"
-I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include"
-I"C:/Dev-Cpp/include" -fexpensive-optimizations -O3
In file included from ../spacesim/workroot/source/Client/precompile.h:42,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Shared/commondefines.h:9:1: warning: "M_PI"
redefined
In file included from ../spacesim/workroot/source/Client/precompile.h:16,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
C:/Dev-Cpp/include/math.h:53:1: warning: this is the location of the
previous definition
In file included from ../spacesim/workroot/source/Client/precompile.h:54,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/processing/p_processor.h:65: error:
friend
declaration requires class-key, i.e. `friend class
PROCESSING::cProcessor'
../spacesim/workroot/source/Client/processing/p_processor.h:76: error:
friend
declaration requires class-key, i.e. `friend class
PROCESSING::cProcessor'
In file included from ../spacesim/workroot/source/Client/precompile.h:68,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/graphics/g_render.h:24: error: friend
declaration requires class-key, i.e. `friend class PROCESSING::cResource'
In file included from
../spacesim/workroot/source/Client/userinterface/u_keycontrol.h:5,
from ../spacesim/workroot/source/Client/precompile.h:78,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/userinterface/u_keyin.h:5:36:
processing/p_processor.h: No such file or directory
In file included from ../spacesim/workroot/source/Client/precompile.h:78,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/userinterface/u_keycontrol.h:96:
error: friend
declaration requires class-key, i.e. `friend class USERINTERFACE::cKeyIn'
In file included from ../spacesim/workroot/source/Client/precompile.h:83,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Shared/fileio/f_modelloader.h:22:31:
warning: extra tokens at end of #endif directive
In file included from ../spacesim/workroot/source/Client/precompile.h:84,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/network/n_clientconnection.h:5:49:
..\Shared\network\n_tcpioconnection.h: No such file or directory
In file included from ../spacesim/workroot/source/Client/precompile.h:84,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/network/n_clientconnection.h:14:
error: base
class `NETWORK::cTcpioConnection' has incomplete type
../spacesim/workroot/source/Client/Space_Sim.cpp:4: error: ISO C++ forbids
declaration of `WinMain' with no type
make.exe: *** [../spacesim/workroot/source/Client/Space_Sim.o] Error 1
Execution terminated
|