How to fix error: unknown type name ‘namespace’

前端 未结 3 1404
暖寄归人
暖寄归人 2021-01-04 14:05
#ifndef UNO_ACTION_ 
#define UNO_ACTION_
namespace Uno
{
namespace Game
{
    class Game;
}
} // namespace

namespace Uno
{
namespace Action
{
using ::Uno::Game::Gam         


        
3条回答
  •  情深已故
    2021-01-04 14:36

    It sounds like you're trying to compile your C++ code with a C compiler. Try using g++ instead of gcc and giving your file a C++ extension such as .cpp (rather than .c).

提交回复
热议问题