Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
makefile:6:target'的配方;全部';在ubuntu-16.04上失败 g++-std=c++11-g-o运行NumberNode.cpp LinkedList.cpp CarBST.cpp Queue.cpp CarNode_C++_Visual Studio_Makefile_Ubuntu 16.04 - Fatal编程技术网

makefile:6:target'的配方;全部';在ubuntu-16.04上失败 g++-std=c++11-g-o运行NumberNode.cpp LinkedList.cpp CarBST.cpp Queue.cpp CarNode

makefile:6:target'的配方;全部';在ubuntu-16.04上失败 g++-std=c++11-g-o运行NumberNode.cpp LinkedList.cpp CarBST.cpp Queue.cpp CarNode,c++,visual-studio,makefile,ubuntu-16.04,C++,Visual Studio,Makefile,Ubuntu 16.04,makefile:6:target'的配方;全部';在ubuntu-16.04上失败 g++-std=c++11-g-o运行NumberNode.cpp LinkedList.cpp CarBST.cpp Queue.cpp CarNode.cpp Manager.cpp main.cpp NumberBST.cpp CarBST.h Queue.h CarNode.h Manager.h NumberBST.h NumberNode.h LinkedList.h 在CarBST

makefile:6:target'的配方;全部';在ubuntu-16.04上失败
g++-std=c++11-g-o运行NumberNode.cpp LinkedList.cpp CarBST.cpp Queue.cpp CarNode.cpp Manager.cpp main.cpp NumberBST.cpp CarBST.h Queue.h CarNode.h Manager.h NumberBST.h NumberNode.h LinkedList.h
在CarBST.h:2:0中包含的文件中,
从编号h:2开始,
来自NumberNode.cpp:1:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
NumberNode.cpp:在析构函数“NumberNode::~NumberNode()”中:
NumberNode.cpp:13:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“int”
数字=空;
^
在LinkedList.h:2:0中包含的文件中,
来自LinkedList.cpp:1:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
在CarBST.h:2:0中包含的文件中,
来自CABST.cpp:1:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
CarBST.cpp:在成员函数“void CarBST::Delete(int)”中:
CarBST.cpp:90:21:警告:从NULL[-Wconversion NULL]转换为非指针类型“int”
int lastLocation=NULL//leafNode\B0\E6\BF\EC\BAθ\F0\B3\EB\B5\E5\C0\C7\B
^
在Queue.h:2:0中包含的文件中,
来自Queue.cpp:1:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
在CarNode.cpp中包含的文件中:1:0:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
CarNode.cpp:在析构函数“CarNode::~CarNode()”中:
CarNode.cpp:12:12:警告:从NULL[-Wconversion NULL]转换为非指针类型“int”
卡号=空;
^
CarNode.cpp:14:8:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
在LinkedList.h:2:0中包含的文件中,
来自经理。h:11,
来自经理。cpp:6:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
在LinkedList.h:2:0中包含的文件中,
来自经理。h:11,
来自main.cpp:3:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
在CarBST.h:2:0中包含的文件中,
从编号h:2开始,
从编号BST.h:2开始,
从编号BST.cpp:1:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
NumberBST.cpp:在成员函数“void NumberBST::Delete(int)”中:
NumberBST.cpp:119:21:警告:从NULL[-Wconversion NULL]转换为非指针类型“int”
int lastLocation=NULL//leafNode\B0\E6\BF\EC\BAθ\F0\B3\EB\B5\E5\C0\C7\B
^
CarBST.h:1:9:警告:#在主文件中使用pragma一次
#布拉格语一次
^
在CarBST.h中包含的文件中:2:0:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
Queue.h:1:9:警告:#pragma在主文件中出现一次
#布拉格语一次
^
在队列中包含的文件中。h:2:0:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
CarNode.h:1:9:警告:#在主文件中使用pragma一次
#布拉格语一次
^
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
Manager.h:1:9:警告:#在主文件中使用pragma一次
#布拉格语一次
^
在LinkedList.h:2:0中包含的文件中,
来自经理。h:11:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
NumberBST.h:1:9:警告:#在主文件中使用pragma一次
#布拉格语一次
^
在CarBST.h:2:0中包含的文件中,
从编号h:2开始,
从编号BST.h:2:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
NumberNode.h:1:9:警告:#在主文件中使用pragma一次
#布拉格语一次
^
在CarBST.h:2:0中包含的文件中,
从编号节点h:2:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
LinkedList.h:1:9:警告:#在主文件中使用pragma一次
#布拉格语一次
^
在LinkedList中包含的文件中。h:2:0:
CarNode.h:在构造函数“CarNode::CarNode(int)”中:
CarNode.h:24:9:警告:从NULL[-Wconversion NULL]转换为非指针类型“char”
state=NULL;
^
/tmp/ccYwuJus.o:在函数“Manager::MOVE(int)”中:
/home/limsh/project/Manager.cpp:172:对“CarBST::CarBST()”的未定义引用
/tmp/ccYwuJus.o:在函数“Manager::Insert_BST(std::basic_ifstream&)”中:
/home/limsh/project/Manager.cpp:363:对“CarBST::CarBST()”的未定义引用
collect2:错误:ld返回了1个退出状态
马克菲尔
g++ -std=c++11 -g -o run NumberNode.cpp LinkedList.cpp CarBST.cpp Queue.cpp CarNode.cpp Manager.cpp main.cpp NumberBST.cpp CarBST.h Queue.h CarNode.h Manager.h NumberBST.h NumberNode.h LinkedList.h
In file included from CarBST.h:2:0,
                 from NumberNode.h:2,
                 from NumberNode.cpp:1:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
NumberNode.cpp: In destructor ‘NumberNode::~NumberNode()’:
NumberNode.cpp:13:9: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
  number = NULL;
         ^
In file included from LinkedList.h:2:0,
                 from LinkedList.cpp:1:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
In file included from CarBST.h:2:0,
                 from CarBST.cpp:1:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
CarBST.cpp: In member function ‘void CarBST::Delete(int)’:
CarBST.cpp:90:21: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
  int lastLocation = NULL; //leafNode \B0\E6\BF\EC \BAθ\F0\B3\EB\B5\E5\C0\C7 \B
                     ^
In file included from Queue.h:2:0,
                 from Queue.cpp:1:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
In file included from CarNode.cpp:1:0:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
CarNode.cpp: In destructor ‘CarNode::~CarNode()’:
CarNode.cpp:12:12: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
  carNumber = NULL;
            ^
CarNode.cpp:14:8: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
  state = NULL;
        ^
In file included from LinkedList.h:2:0,
                 from Manager.h:11,
                 from Manager.cpp:6:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
In file included from LinkedList.h:2:0,
                 from Manager.h:11,
                 from main.cpp:3:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
In file included from CarBST.h:2:0,
                 from NumberNode.h:2,
                 from NumberBST.h:2,
                 from NumberBST.cpp:1:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
NumberBST.cpp: In member function ‘void NumberBST::Delete(int)’:
NumberBST.cpp:119:21: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null]
  int lastLocation = NULL; //leafNode \B0\E6\BF\EC \BAθ\F0\B3\EB\B5\E5\C0\C7 \B
                     ^
CarBST.h:1:9: warning: #pragma once in main file
 #pragma once
         ^
In file included from CarBST.h:2:0:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
Queue.h:1:9: warning: #pragma once in main file
 #pragma once
         ^
In file included from Queue.h:2:0:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
CarNode.h:1:9: warning: #pragma once in main file
 #pragma once
         ^
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
Manager.h:1:9: warning: #pragma once in main file
 #pragma once
         ^
In file included from LinkedList.h:2:0,
                 from Manager.h:11:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
NumberBST.h:1:9: warning: #pragma once in main file
 #pragma once
         ^
In file included from CarBST.h:2:0,
                 from NumberNode.h:2,
                 from NumberBST.h:2:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
NumberNode.h:1:9: warning: #pragma once in main file
 #pragma once
         ^
In file included from CarBST.h:2:0,
                 from NumberNode.h:2:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
LinkedList.h:1:9: warning: #pragma once in main file
 #pragma once
         ^
In file included from LinkedList.h:2:0:
CarNode.h: In constructor ‘CarNode::CarNode(int)’:
CarNode.h:24:9: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
   state = NULL;
         ^
/tmp/ccYwuJus.o: In function `Manager::MOVE(int)':
/home/limsh/project/Manager.cpp:172: undefined reference to `CarBST::CarBST()'
/tmp/ccYwuJus.o: In function `Manager::Insert_BST(std::basic_ifstream<char, std::char_traits<char> >&)':
/home/limsh/project/Manager.cpp:363: undefined reference to `CarBST::CarBST()'
collect2: error: ld returned 1 exit status
Makefile:6: recipe for target 'all' failed
make: *** [all] Error 1
Makefile:6: recipe for target 'all' failed
undefined reference to `CarBST::CarBST()'
g++ -std=c++11 -g -o run NumberNode.cpp LinkedList.cpp CarBST.cpp Queue.cpp CarNode.cpp Manager.cpp main.cpp NumberBST.cpp CarBST.h Queue.h CarNode.h Manager.h NumberBST.h NumberNode.h LinkedList.h
state = 0;