Thanks a lot for taking the time to answer. Unfortunately it doesn't work.
The new error "exception.h:6:24: error: QtConcurrent: No existe el fichero o el directorio" says there is no such file or directory.

Just a quick search:


find /usr/include/ -name "*QtConcurrent*"
/usr/include/qt4/QtCore/QtConcurrentMap
/usr/include/qt4/QtCore/QtConcurrentRun
/usr/include/qt4/QtCore/QtConcurrentFilter

The output is this:


make[1]: se ingresa al directorio `/mnt/almacen/dev-libs/utils'
g++ -c -pipe -march=athlon64 -O2 -pipe -march=athlon64 -O2 -Wall -W -D_REENTRANT -fPIC -DLIBRARY_BUILD -D__PWD__=/home/whisp/almacen/dev-libs/utils -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I.moc -I.ui -o .obj/exception.o exception.cpp
En el fichero incluÃ*do de exception.cpp:1:
exception.h:6:24: error: QtConcurrent: No existe el fichero o el directorio
In file included from exception.cpp:1:
exception.h:9: error: expected class-name before '{' token
make[1]: *** [.obj/exception.o] Error 1
make[1]: se sale del directorio `/mnt/almacen/dev-libs/utils'
make: *** [sub-utils-make_default] Error 2



I've tried with #include <QtCore> too, which I think should import the QtConcurrent namespace too, with the same outcome.

Just to be more precise, in qtconcurrentexception.h is the declaration of QtConcurrent::Exception

Qt Code:
  1. #ifndef QTCONCURRENT_EXCEPTION_H
  2. #define QTCONCURRENT_EXCEPTION_H
  3.  
  4. #include <QtCore/qglobal.h>
  5.  
  6. #ifndef QT_NO_QFUTURE
  7.  
  8. #include <QtCore/qatomic.h>
  9.  
  10. #ifndef QT_NO_EXCEPTIONS
  11. # include <exception>
  12. #endif
  13.  
  14. QT_BEGIN_HEADER
  15. QT_BEGIN_NAMESPACE
  16.  
  17. QT_MODULE(Core)
  18.  
  19. namespace QtConcurrent
  20. {
  21.  
  22. #ifndef QT_NO_EXCEPTIONS
  23.  
  24. class Q_CORE_EXPORT Exception : public std::exception
  25. {
  26. public:
  27. virtual void raise() const;
  28. virtual Exception *clone() const;
  29. };
To copy to clipboard, switch view to plain text mode 

but I don't know anything about the macros that appear before QtConcurrent::Exception and may have something to do with this.

Could I post the URL of the example, or would it be considered spam?