Go to Post At championship, as we do at every regional, we'll be counting every point scored (or lost) by each robot. Nothing beats numbers. - Derek Bessette [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-08-2016, 07:12 PM
Oakytree's Avatar
Oakytree Oakytree is offline
Spoopy Scary Skeleton
AKA: The Spook Master
FRC #4065 (Nerds of Prey)
Team Role: Programmer
 
Join Date: Apr 2015
Rookie Year: 2013
Location: Clermont, Florida
Posts: 4
Oakytree is an unknown quantity at this point
Multiple errors with WPILIB in Eclipse

Hello CD. I am having many build errors with trying to build any project. It seems to be something wrong with the std namespace and with some header files for threading. It first started out as some wpilib header files saying it's missing pthread.h, then after installing pthead-32 through MinGW I got quite a few std errors saying std does not name a type "so and so". It may have something to do with the tool chains being dumb or the libraries, since I used a new computer and installed Eclipse with the plug-ins and tool chains and then created a new example project and it still not working, leaves me to think it's frc's fault. I do not know.

I have tried:
Reinstalling everything from scratch.
Creating a default example robot project.
Trying 3 different computers (one of them being a Linux os) one window 8.1,other one windows 10.
Using a computer with WPILIB never installed before.
Useing cygwin.
Adding everything into the paths for includes and libraries manually.
Messing with different tool chains and builders.
Crying.
Almost all fixes I can find through Google search.

I am really at a stand still and can't deploy code because of no binaries being built. This has taken much of my time and I really need help. Thank you. Here is the error when building for cygwin:
Code:
 
21:14:22 **** Incremental Build of configuration Debug for project Stronghold with onboard vision ****
Info: Configuration "Debug" uses tool-chain "Cygwin GCC" that is unsupported on this system, attempting to build anyway.
Info: Internal Builder is used for build
g++ "-IC:\\Users\\NerdsOfPrey/wpilib/cpp/current/include" -O0 -g3 -Wall -c -fmessage-length=0 -std=c++11 -o "src\\Commands\\WaterBridge.o" "..\\src\\Commands\\WaterBridge.cpp" 
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_mutex.h:20:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ErrorBase.h:13,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/Command.h:11,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/CommandGroup.h:11,
                 from ..\src\Commands\WaterBridge.h:16,
                 from ..\src\Commands\WaterBridge.cpp:13:
c:\mingw\include\pthread.h:320:8: error: redefinition of 'struct timespec'
 struct timespec {
        ^
In file included from c:\mingw\include\time.h:53:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ctime:42,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\chrono:41,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\mutex:39,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_mutex.h:11,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ErrorBase.h:13,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/Command.h:11,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/CommandGroup.h:11,
                 from ..\src\Commands\WaterBridge.h:16,
                 from ..\src\Commands\WaterBridge.cpp:13:
c:\mingw\include\parts\time.h:105:8: error: previous definition of 'struct timespec'
 struct timespec
        ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ErrorBase.h:13:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/Command.h:11,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/CommandGroup.h:11,
                 from ..\src\Commands\WaterBridge.h:16,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_mutex.h:49:59: error: cannot convert '<brace-enclosed initializer list>' to 'pthread_mutex_t' in initialization
       {0, 0, 0, 0x20 | PTHREAD_MUTEX_RECURSIVE_NP, 0, {0}}};
                                                           ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_mutex.h:79:30: error: cannot convert '<brace-enclosed initializer list>' to 'pthread_mutex_t' in initialization
       {0, 0, 0, 0x20, 0, {0}}};
                              ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/Semaphore.hpp:3:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/HAL.hpp:24,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/SPI.h:10,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ADXL345_SPI.h:12,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:16,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:27:11: error: 'condition_variable' in namespace 'std' does not name a type
   typedef std::condition_variable::native_handle_type native_handle_type;
           ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:63:3: error: 'cv_status' in namespace 'std' does not name a type
   std::cv_status wait_until(Lock& _lock,
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:87:3: error: 'cv_status' in namespace 'std' does not name a type
   std::cv_status wait_for(Lock& lock, const std::chrono::duration<Rep, Period>& rtime) {
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:97:3: error: 'native_handle_type' does not name a type
   native_handle_type native_handle() {
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:102:3: error: 'condition_variable' in namespace 'std' does not name a type
   std::condition_variable m_cond;
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:103:19: error: 'mutex' is not a member of 'std'
   std::shared_ptr<std::mutex> m_mutex;
                   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:103:19: error: 'mutex' is not a member of 'std'
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:103:29: error: template argument 1 is invalid
   std::shared_ptr<std::mutex> m_mutex;
                             ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In constructor 'priority_condition_variable::priority_condition_variable()':
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:60: error: 'mutex' is not a member of 'std'
   priority_condition_variable() : m_mutex(std::make_shared<std::mutex>()) {}
                                                            ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:60: error: 'mutex' is not a member of 'std'
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:72: error: no matching function for call to 'make_shared()'
   priority_condition_variable() : m_mutex(std::make_shared<std::mutex>()) {}
                                                                        ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:72: note: candidate is:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\memory:82:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Base.h:84,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ErrorBase.h:10,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/Command.h:11,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/CommandGroup.h:11,
                 from ..\src\Commands\WaterBridge.h:16,
                 from ..\src\Commands\WaterBridge.cpp:13:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\shared_ptr.h:610:5: note: template<class _Tp, class ... _Args> std::shared_ptr<_Tp1> std::make_shared(_Args&& ...)
     make_shared(_Args&&... __args)
     ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\shared_ptr.h:610:5: note:   template argument deduction/substitution failed:
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/Semaphore.hpp:3:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/HAL.hpp:24,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/SPI.h:10,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ADXL345_SPI.h:12,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:16,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:72: error: template argument 1 is invalid
   priority_condition_variable() : m_mutex(std::make_shared<std::mutex>()) {}
                                                                        ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'void priority_condition_variable::notify_one()':
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:21: error: 'mutex' is not a member of 'std'
     std::lock_guard<std::mutex> lock(*m_mutex);
                     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:21: error: 'mutex' is not a member of 'std'
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:31: error: template argument 1 is invalid
     std::lock_guard<std::mutex> lock(*m_mutex);
                               ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:37: error: invalid type in declaration before '(' token
     std::lock_guard<std::mutex> lock(*m_mutex);
                                     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:39: error: invalid type argument of unary '*' (have 'int')
     std::lock_guard<std::mutex> lock(*m_mutex);
                                       ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:37:5: error: 'm_cond' was not declared in this scope
     m_cond.notify_one();
     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:33: warning: unused variable 'lock' [-Wunused-variable]
     std::lock_guard<std::mutex> lock(*m_mutex);
                                 ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'void priority_condition_variable::notify_all()':
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:21: error: 'mutex' is not a member of 'std'
     std::lock_guard<std::mutex> lock(*m_mutex);
                     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:21: error: 'mutex' is not a member of 'std'
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:31: error: template argument 1 is invalid
     std::lock_guard<std::mutex> lock(*m_mutex);
                               ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:37: error: invalid type in declaration before '(' token
     std::lock_guard<std::mutex> lock(*m_mutex);
                                     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:39: error: invalid type argument of unary '*' (have 'int')
     std::lock_guard<std::mutex> lock(*m_mutex);
                                       ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:42:5: error: 'm_cond' was not declared in this scope
     m_cond.notify_all();
     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:33: warning: unused variable 'lock' [-Wunused-variable]
     std::lock_guard<std::mutex> lock(*m_mutex);
                                 ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'void priority_condition_variable::wait(Lock&)':
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:21: error: 'mutex' is not a member of 'std'
     std::shared_ptr<std::mutex> _mutex = m_mutex;
                     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:21: error: 'mutex' is not a member of 'std'
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:31: error: template argument 1 is invalid
     std::shared_ptr<std::mutex> _mutex = m_mutex;
                               ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:40: error: invalid type in declaration before '=' token
     std::shared_ptr<std::mutex> _mutex = m_mutex;
                                        ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:22: error: 'mutex' is not a member of 'std'
     std::unique_lock<std::mutex> my_lock(*_mutex);
                      ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:22: error: 'mutex' is not a member of 'std'
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:32: error: template argument 1 is invalid
     std::unique_lock<std::mutex> my_lock(*_mutex);
                                ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:41: error: invalid type in declaration before '(' token
     std::unique_lock<std::mutex> my_lock(*_mutex);
                                         ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:43: error: invalid type argument of unary '*' (have 'int')
     std::unique_lock<std::mutex> my_lock(*_mutex);
                                           ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:22: error: 'mutex' is not a member of 'std'
     std::unique_lock<std::mutex> my_lock2(std::move(my_lock));
                      ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:22: error: 'mutex' is not a member of 'std'
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:32: error: template argument 1 is invalid
     std::unique_lock<std::mutex> my_lock2(std::move(my_lock));
                                ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:42: error: invalid type in declaration before '(' token
     std::unique_lock<std::mutex> my_lock2(std::move(my_lock));
                                          ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:54:5: error: 'm_cond' was not declared in this scope
     m_cond.wait(my_lock2);
     ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'bool priority_condition_variable::wait_until(Lock&, const std::chrono::time_point<_Clock, _Dur>&, Predicate)':
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:79:43: error: 'std::cv_status' has not been declared
       if (wait_until(lock, atime) == std::cv_status::timeout) {
                                           ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/HAL.hpp:24:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/SPI.h:10,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ADXL345_SPI.h:12,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:16,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/Semaphore.hpp: At global scope:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/Semaphore.hpp:8:9: error: 'native_handle_type' in 'class priority_condition_variable' does not name a type
 typedef priority_condition_variable::native_handle_type NATIVE_MULTIWAIT_ID;
         ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/HAL.hpp:25:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/SPI.h:10,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/ADXL345_SPI.h:12,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:16,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/Task.hpp:4:1: error: 'include' does not name a type
 include <pthread.h>
 ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:30:0,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/CameraServer.h:36:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_serverThread;
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/CameraServer.h:37:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_captureThread;
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/CameraServer.h:39:3: error: 'condition_variable_any' in namespace 'std' does not name a type
   std::condition_variable_any m_newImageVariable;
   ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/CANJaguar.h:16:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:31,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/cpp/Semaphore.hpp:28:3: error: 'condition_variable_any' in namespace 'std' does not name a type
   std::condition_variable_any m_condition;
   ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Commands/Scheduler.h:14:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/LiveWindow/LiveWindow.h:13,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/PIDInterface.h:12,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/CANTalon.h:14,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:32,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/networktables/NetworkTable.h:25:3: error: 'mutex' in namespace 'std' does not name a type
   std::mutex m_mutex;
   ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/CANTalon.h:15:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:32,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/HAL/CanTalonSRX.h:268:3: error: 'mutex' in namespace 'std' does not name a type
   std::mutex _mutMotProf;
   ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/DriverStation.h:12:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:51,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Task.h:36:3: error: 'thread' in namespace 'std' does not name a type
   std::thread::id get_id() const noexcept;
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Task.h:37:3: error: 'thread' in namespace 'std' does not name a type
   std::thread::native_handle_type native_handle();
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Task.h:48:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_thread;
   ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Task.h:53:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/DriverStation.h:12,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:51,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Task.inc: In constructor 'Task::Task(const string&, Function&&, Args&& ...)':
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Task.inc:25:3: error: 'm_thread' was not declared in this scope
   m_thread = std::thread(std::forward<std::decay_t<Function>>(function),
   ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Task.inc:25:14: error: 'thread' is not a member of 'std'
   m_thread = std::thread(std::forward<std::decay_t<Function>>(function),
              ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:51:0,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/DriverStation.h: At global scope:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/DriverStation.h:111:3: error: 'condition_variable_any' in namespace 'std' does not name a type
   std::condition_variable_any m_waitForDataCond;
   ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/IterativeRobot.h:11:0,
                 from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:61,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/RobotBase.h:53:30: error: 'FUNCPTR' has not been declared
   static void startRobotTask(FUNCPTR factory);
                              ^
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/RobotBase.h:54:25: error: 'FUNCPTR' has not been declared
   static void robotTask(FUNCPTR factory, Task *task);
                         ^
In file included from C:\Users\NerdsOfPrey/wpilib/cpp/current/include/WPILib.h:95:0,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\Unscoop.h:17,
                 from ..\src\Commands\WaterBridge.h:17,
                 from ..\src\Commands\WaterBridge.cpp:13:
C:\Users\NerdsOfPrey/wpilib/cpp/current/include/Vision/AxisCamera.h:94:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_captureThread;
   ^

21:14:24 Build Finished (took 1s.996ms)
For MinGW (from a different computer, may be different):
Code:
 
19:19:13 **** Incremental Build of configuration Debug for project Stronghold with onboard vision ****
Info: Internal Builder is used for build
g++ "-IC:\\Users\\Brandon/wpilib/cpp/current/include" -IC:/visionpls/_Includes/OpenCv/2.4.10 "-IC:\\Users\\Brandon\\Desktop\\Brandon C++ Projects/Stronghold With New RobotBuilder Code/src" -O0 -g3 -Wall -c -fmessage-length=0 -std=c++11 -o "src\\Commands\\AutonomousDriveForward.o" "..\\src\\Commands\\AutonomousDriveForward.cpp" 
In file included from C:\Users\Brandon/wpilib/cpp/current/include/ErrorBase.h:13:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/Commands/Subsystem.h:11,
                 from ..\src\Commands\AutonomousDriveForward.h:16,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_mutex.h:49:59: error: cannot convert '<brace-enclosed initializer list>' to 'pthread_mutex_t' in initialization
       {0, 0, 0, 0x20 | PTHREAD_MUTEX_RECURSIVE_NP, 0, {0}}};
                                                           ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_mutex.h:79:30: error: cannot convert '<brace-enclosed initializer list>' to 'pthread_mutex_t' in initialization
       {0, 0, 0, 0x20, 0, {0}}};
                              ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/HAL/Semaphore.hpp:3:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/HAL/HAL.hpp:24,
                 from C:\Users\Brandon/wpilib/cpp/current/include/SPI.h:10,
                 from C:\Users\Brandon/wpilib/cpp/current/include/ADXL345_SPI.h:12,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:16,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:27:11: error: 'condition_variable' in namespace 'std' does not name a type
   typedef std::condition_variable::native_handle_type native_handle_type;
           ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:63:3: error: 'cv_status' in namespace 'std' does not name a type
   std::cv_status wait_until(Lock& _lock,
   ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:87:3: error: 'cv_status' in namespace 'std' does not name a type
   std::cv_status wait_for(Lock& lock, const std::chrono::duration<Rep, Period>& rtime) {
   ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:97:3: error: 'native_handle_type' does not name a type
   native_handle_type native_handle() {
   ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:102:3: error: 'condition_variable' in namespace 'std' does not name a type
   std::condition_variable m_cond;
   ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:103:19: error: 'mutex' is not a member of 'std'
   std::shared_ptr<std::mutex> m_mutex;
                   ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:103:19: error: 'mutex' is not a member of 'std'
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:103:29: error: template argument 1 is invalid
   std::shared_ptr<std::mutex> m_mutex;
                             ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In constructor 'priority_condition_variable::priority_condition_variable()':
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:60: error: 'mutex' is not a member of 'std'
   priority_condition_variable() : m_mutex(std::make_shared<std::mutex>()) {}
                                                            ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:60: error: 'mutex' is not a member of 'std'
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:72: error: no matching function for call to 'make_shared()'
   priority_condition_variable() : m_mutex(std::make_shared<std::mutex>()) {}
                                                                        ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:72: note: candidate is:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\memory:82:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/Base.h:84,
                 from C:\Users\Brandon/wpilib/cpp/current/include/ErrorBase.h:10,
                 from C:\Users\Brandon/wpilib/cpp/current/include/Commands/Subsystem.h:11,
                 from ..\src\Commands\AutonomousDriveForward.h:16,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\shared_ptr.h:610:5: note: template<class _Tp, class ... _Args> std::shared_ptr<_Tp1> std::make_shared(_Args&& ...)
     make_shared(_Args&&... __args)
     ^
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\shared_ptr.h:610:5: note:   template argument deduction/substitution failed:
In file included from C:\Users\Brandon/wpilib/cpp/current/include/HAL/Semaphore.hpp:3:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/HAL/HAL.hpp:24,
                 from C:\Users\Brandon/wpilib/cpp/current/include/SPI.h:10,
                 from C:\Users\Brandon/wpilib/cpp/current/include/ADXL345_SPI.h:12,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:16,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:29:72: error: template argument 1 is invalid
   priority_condition_variable() : m_mutex(std::make_shared<std::mutex>()) {}
                                                                        ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'void priority_condition_variable::notify_one()':
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:21: error: 'mutex' is not a member of 'std'
     std::lock_guard<std::mutex> lock(*m_mutex);
                     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:21: error: 'mutex' is not a member of 'std'
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:31: error: template argument 1 is invalid
     std::lock_guard<std::mutex> lock(*m_mutex);
                               ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:37: error: invalid type in declaration before '(' token
     std::lock_guard<std::mutex> lock(*m_mutex);
                                     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:39: error: invalid type argument of unary '*' (have 'int')
     std::lock_guard<std::mutex> lock(*m_mutex);
                                       ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:37:5: error: 'm_cond' was not declared in this scope
     m_cond.notify_one();
     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:36:33: warning: unused variable 'lock' [-Wunused-variable]
     std::lock_guard<std::mutex> lock(*m_mutex);
                                 ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'void priority_condition_variable::notify_all()':
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:21: error: 'mutex' is not a member of 'std'
     std::lock_guard<std::mutex> lock(*m_mutex);
                     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:21: error: 'mutex' is not a member of 'std'
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:31: error: template argument 1 is invalid
     std::lock_guard<std::mutex> lock(*m_mutex);
                               ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:37: error: invalid type in declaration before '(' token
     std::lock_guard<std::mutex> lock(*m_mutex);
                                     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:39: error: invalid type argument of unary '*' (have 'int')
     std::lock_guard<std::mutex> lock(*m_mutex);
                                       ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:42:5: error: 'm_cond' was not declared in this scope
     m_cond.notify_all();
     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:41:33: warning: unused variable 'lock' [-Wunused-variable]
     std::lock_guard<std::mutex> lock(*m_mutex);
                                 ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'void priority_condition_variable::wait(Lock&)':
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:21: error: 'mutex' is not a member of 'std'
     std::shared_ptr<std::mutex> _mutex = m_mutex;
                     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:21: error: 'mutex' is not a member of 'std'
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:31: error: template argument 1 is invalid
     std::shared_ptr<std::mutex> _mutex = m_mutex;
                               ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:47:40: error: invalid type in declaration before '=' token
     std::shared_ptr<std::mutex> _mutex = m_mutex;
                                        ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:22: error: 'mutex' is not a member of 'std'
     std::unique_lock<std::mutex> my_lock(*_mutex);
                      ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:22: error: 'mutex' is not a member of 'std'
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:32: error: template argument 1 is invalid
     std::unique_lock<std::mutex> my_lock(*_mutex);
                                ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:41: error: invalid type in declaration before '(' token
     std::unique_lock<std::mutex> my_lock(*_mutex);
                                         ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:48:43: error: invalid type argument of unary '*' (have 'int')
     std::unique_lock<std::mutex> my_lock(*_mutex);
                                           ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:22: error: 'mutex' is not a member of 'std'
     std::unique_lock<std::mutex> my_lock2(std::move(my_lock));
                      ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:22: error: 'mutex' is not a member of 'std'
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:32: error: template argument 1 is invalid
     std::unique_lock<std::mutex> my_lock2(std::move(my_lock));
                                ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:53:42: error: invalid type in declaration before '(' token
     std::unique_lock<std::mutex> my_lock2(std::move(my_lock));
                                          ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:54:5: error: 'm_cond' was not declared in this scope
     m_cond.wait(my_lock2);
     ^
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h: In member function 'bool priority_condition_variable::wait_until(Lock&, const std::chrono::time_point<_Clock, _Dur>&, Predicate)':
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/priority_condition_variable.h:79:43: error: 'std::cv_status' has not been declared
       if (wait_until(lock, atime) == std::cv_status::timeout) {
                                           ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/HAL/HAL.hpp:24:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/SPI.h:10,
                 from C:\Users\Brandon/wpilib/cpp/current/include/ADXL345_SPI.h:12,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:16,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/HAL/Semaphore.hpp: At global scope:
C:\Users\Brandon/wpilib/cpp/current/include/HAL/Semaphore.hpp:8:9: error: 'native_handle_type' in 'class priority_condition_variable' does not name a type
 typedef priority_condition_variable::native_handle_type NATIVE_MULTIWAIT_ID;
         ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:30:0,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/CameraServer.h:36:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_serverThread;
   ^
C:\Users\Brandon/wpilib/cpp/current/include/CameraServer.h:37:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_captureThread;
   ^
C:\Users\Brandon/wpilib/cpp/current/include/CameraServer.h:39:3: error: 'condition_variable_any' in namespace 'std' does not name a type
   std::condition_variable_any m_newImageVariable;
   ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/CANJaguar.h:16:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:31,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/HAL/cpp/Semaphore.hpp:28:3: error: 'condition_variable_any' in namespace 'std' does not name a type
   std::condition_variable_any m_condition;
   ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/Commands/Scheduler.h:14:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/LiveWindow/LiveWindow.h:13,
                 from C:\Users\Brandon/wpilib/cpp/current/include/PIDInterface.h:12,
                 from C:\Users\Brandon/wpilib/cpp/current/include/CANTalon.h:14,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:32,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/networktables/NetworkTable.h:25:3: error: 'mutex' in namespace 'std' does not name a type
   std::mutex m_mutex;
   ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/CANTalon.h:15:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:32,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/HAL/CanTalonSRX.h:268:3: error: 'mutex' in namespace 'std' does not name a type
   std::mutex _mutMotProf;
   ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/DriverStation.h:12:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:51,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/Task.h:36:3: error: 'thread' in namespace 'std' does not name a type
   std::thread::id get_id() const noexcept;
   ^
C:\Users\Brandon/wpilib/cpp/current/include/Task.h:37:3: error: 'thread' in namespace 'std' does not name a type
   std::thread::native_handle_type native_handle();
   ^
C:\Users\Brandon/wpilib/cpp/current/include/Task.h:48:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_thread;
   ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/Task.h:53:0,
                 from C:\Users\Brandon/wpilib/cpp/current/include/DriverStation.h:12,
                 from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:51,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/Task.inc: In constructor 'Task::Task(const string&, Function&&, Args&& ...)':
C:\Users\Brandon/wpilib/cpp/current/include/Task.inc:25:3: error: 'm_thread' was not declared in this scope
   m_thread = std::thread(std::forward<std::decay_t<Function>>(function),
   ^
C:\Users\Brandon/wpilib/cpp/current/include/Task.inc:25:14: error: 'thread' is not a member of 'std'
   m_thread = std::thread(std::forward<std::decay_t<Function>>(function),
              ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:51:0,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/DriverStation.h: At global scope:
C:\Users\Brandon/wpilib/cpp/current/include/DriverStation.h:111:3: error: 'condition_variable_any' in namespace 'std' does not name a type
   std::condition_variable_any m_waitForDataCond;
   ^
In file included from C:\Users\Brandon/wpilib/cpp/current/include/WPILib.h:95:0,
                 from ..\src\Commands\../Robot.h:15,
                 from ..\src\Commands\AutonomousDriveForward.h:17,
                 from ..\src\Commands\AutonomousDriveForward.cpp:12:
C:\Users\Brandon/wpilib/cpp/current/include/Vision/AxisCamera.h:94:3: error: 'thread' in namespace 'std' does not name a type
   std::thread m_captureThread;
   ^

19:19:19 Build Finished (took 5s.715ms)

Last edited by Oakytree : 02-08-2016 at 07:23 PM.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:25 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi