小编Mat*_*ser的帖子

使用IntelliJ进行远程构建

我有以下问题:

a)我在远程服务器上设置了UNIX构建环境,我可以将其编入b)我在Windows上有IntelliJ

我想做的是通过远程连接编辑文件(类似于Emacs存在的功能)并发出shell命令,例如'make'和运行服务器上存在的简单'test-scripts'.

将这些功能集成到IntelliJ中还是需要插件?

ssh build intellij-idea

13
推荐指数
1
解决办法
8601
查看次数

C++中奇怪的类型不匹配

我在这里需要一些帮助,这种类型的不匹配怎么可能呢?当我替换所有内容时,它是完全相同的类型,包括constness.

cgVertex3D.cpp:33: error: no matching function for call to 
std::vector<Polygon3D*, std::allocator<Polygon3D*> >::push_back(const Polygon3D*&)

/usr/include/c++/4.4/bits/stl_vector.h:733:
note: candidates are: 

void std::vector<_Tp, _Alloc>::push_back(const _Tp&) 
[with _Tp = Polygon3D*, _Alloc = std::allocator<Polygon3D*>]
<near match>       
Run Code Online (Sandbox Code Playgroud)

c++ types const

2
推荐指数
1
解决办法
231
查看次数

模板参数需要向前声明,还是要知道类型定义

基本上我有这个代码,但是GCC抱怨不能用空类型构造向量.以前有人遇到过这个问题吗?我应该提到Vertex3D仅用于文件中的指针,因此编译器不应该知道整个类型.我不知道模板在这方面的表现如何..

//#include "cgVertex3D.hpp"                                                                                                                                                                                              
#include "cgDirection3D.hpp"

#include "cgHandedness.hpp"

class Vertex3D; // Forward declaration to avoid mutual header include

class Polygon3D {
  // Vertices constituting this polygon
  vector<Vertex3D*> *vertices = NULL;

  public:
    ...
Run Code Online (Sandbox Code Playgroud)

c++

1
推荐指数
1
解决办法
1322
查看次数

标签 统计

c++ ×2

build ×1

const ×1

intellij-idea ×1

ssh ×1

types ×1