nofate 0 Newbie Poster

I have same problem during compilation:

..\\..\\..\\hal\\include/waiting-point.hpp: At global scope:
..\\..\\..\\hal\\include/waiting-point.hpp:7: error: expected type-specifier
..\\..\\..\\hal\\include/waiting-point.hpp:7: error: expected ')'
..\\..\\..\\hal\\include/waiting-point.hpp:7: error: expected initializer
 void operator delete(void*)

..\\..\\..\\hal\\include/waiting-point.hpp: At global scope:
..\\..\\..\\hal\\include/waiting-point.hpp:15: error: expected type-specifier
..\\..\\..\\hal\\include/waiting-point.hpp:15: error: expected ')'
..\\..\\..\\hal\\include/waiting-point.hpp:15: error: expected initializer

 void operator delete [](void*) void MyVector<T>::reallocVector(size_t) MyVector<T>::MyVector() MyVector<T>::~MyVector() bool MyVector<T>::empty() const size_t MyVector<T>::size() const T* MyVector<T>::begin() T* MyVector<T>::end() const T* MyVector<T>::begin() const const T* MyVector<T>::end() const void MyVector<T>::push_back(const T&) T* MyVector<T>::erase(T*, T*) T* MyVector<T>::erase(T*) void MyVector<T>::clear() WaitingPoint::CompletedOperation::CompletedOperation() WaitingPoint::CompletedOperation::CompletedOperation() WaitingPoint::CompletedOperation::CompletedOperation() WaitingPoint::CompletedOperation::CompletedOperation(ObjectToWaitFor&, WaitingPoint::PendingOperation) WaitingPoint::CompletedOperation::CompletedOperation(ObjectToWaitFor&, WaitingPoint::PendingOperation) WaitingPoint::CompletedOperation::CompletedOperation(ObjectToWaitFor&, WaitingPoint::PendingOperation) PortManager::PortManager() PortManager::PortManager() PortManager::PortManager() static PortManager& PortManager::getInstance() void PortManager::pinsOn(size_t, unsigned char) void PortManager::pinsOff(size_t, unsigned char) static void PinConfiguration<Configuration>::pinOn() static void PinConfiguration<Configuration>::pinOff() static void PinConfiguration<Configuration>::deconfigurePin() static void PinConfiguration<Configuration>::configure() static void PinConfiguration<Configuration>::deconfigure() static void AdcPinConfiguration<CONFIGURATION>::configurePin() static void AdcPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void CanPinConfiguration<CONFIGURATION>::configurePin() static void CanPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void ComparatorPinConfiguration<CONFIGURATION>::configurePin() static void ComparatorPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void InputPinConfiguration<CONFIGURATION>::configurePin() static void InputPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void OutputPinConfiguration<CONFIGURATION>::configurePin() static void OutputPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void OpenCollectorOutputPinConfiguration<CONFIGURATION>::configurePin() static void OpenCollectorOutputPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void I2cPinConfiguration<CONFIGURATION>::configurePin() static void I2cPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void SpiPinConfiguration<CONFIGURATION>::configurePin() static void SpiPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void UartPinConfiguration<CONFIGURATION>::configurePin() static void UartPinConfiguration<CONFIGURATION>::connectPinToPeripheral() static void ConfigurationExecuter<TypeList<BeginHead, BeginTail> >::configure() static void ConfigurationExecuter<TypeList<BeginHead, BeginTail> >::deconfigure() static void ConfigurationExecuter<Null>::configure() static void ConfigurationExecuter<Null>::deconfigure() void configure(ConfigurationList) void deconfigure()

And the code:

#include <new>

line 7: inline void *operator new(size_t size) throw(std::bad_alloc) {
    return pvPortMalloc(size);
}
...
line 15: inline void *operator new[](size_t size) throw(std::bad_alloc) {
  return pvPortMalloc(size);
}

...

<new>:

#ifndef __new_H
#define __new_H

namespace std
{

typedef void (*new_handler)();

extern "C" new_handler set_new_handler(new_handler) throw();

}

// placement new and delete
inline void* operator new(std::size_t, void* __p) throw() { return __p; }
inline void* operator new[](std::size_t, void* __p) throw() { return __p; }
inline void  operator delete  (void*, void*) throw() { }
inline void  operator delete[](void*, void*) throw() { }

#endif
dusktreader commented: Same problem? You mean the same problem as others who don't read posting rules... +0