IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques Discussion :

Boost sous codeblock


Sujet :

Bibliothèques

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Février 2004
    Messages
    19
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2004
    Messages : 19
    Par défaut Boost sous codeblock
    Salut à tous bon j'ai réussi à compiler codeblock sous xp avec mingw.
    j'ai copié les dossiers lib et include de boost dans le dossier de mingw
    maintenant je veux utiliser les threads de boost mais systèmatiquement il me dit qu'il ne trouve pas le fichier platform.hpp

    j'ai juste fait un include pour le moment
    #include <boost/thread/thread.hpp>
    et voici toutes les erreur

    C:\mingw\include\boost\thread\detail\config.hpp|20|platform.hpp: No such file or directory|
    C:\mingw\include\boost\thread\win32\mutex.hpp|8|basic_timed_mutex.hpp: No such file or directory|
    C:\mingw\include\boost\detail\sp_counted_base_gcc_x86.hpp|27|sp_typeinfo.hpp: No such file or directory|
    C:\mingw\include\boost\detail\sp_counted_base_gcc_x86.hpp|129|error: `get_deleter' declared as a `virtual' field|
    C:\mingw\include\boost\detail\sp_counted_base_gcc_x86.hpp|129|error: expected `;' before '(' token|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|81|error: `get_deleter' declared as a `virtual' field|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|81|error: expected `;' before '(' token|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|113|error: expected `;' before '}' token|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|147|error: `get_deleter' declared as a `virtual' field|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|147|error: expected `;' before '(' token|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|179|error: expected `;' before '}' token|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|217|error: `get_deleter' declared as a `virtual' field|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|217|error: expected `;' before '(' token|
    C:\mingw\include\boost\detail\sp_counted_impl.hpp|221|error: expected `;' before '}' token|
    C:\mingw\include\boost\detail\shared_count.hpp|261|error: expected `;' before '(' token|
    C:\mingw\include\boost\detail\shared_count.hpp|265|error: expected `;' before '}' token|
    C:\mingw\include\boost\shared_ptr.hpp|457|error: expected `;' before '(' token|
    C:\mingw\include\boost\shared_ptr.hpp|467|error: expected `;' before "private"|
    C:\mingw\include\boost\shared_ptr.hpp||In function `D* boost::get_deleter(const boost::shared_ptr<U>&)'
    C:\mingw\include\boost\shared_ptr.hpp|606|error: expected primary-expression before ')' token|
    C:\mingw\include\boost\shared_ptr.hpp|606|error: there are no arguments to `BOOST_SP_TYPEID' that depend on a template parameter, so a declaration of `BOOST_SP_TYPEID' must be available|
    C:\mingw\include\boost\shared_ptr.hpp|606|error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)|
    C:\mingw\include\boost\thread\win32\mutex.hpp|17|error: expected initializer before "underlying_mutex"|
    C:\mingw\include\boost\thread\win32\mutex.hpp|23|error: expected class-name before '{' token|
    C:\mingw\include\boost\thread\win32\mutex.hpp||In constructor `boost::mutex::mutex()'
    C:\mingw\include\boost\thread\win32\mutex.hpp|27|error: `initialize' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\mutex.hpp|27|warning: unused variable 'initialize'|
    C:\mingw\include\boost\thread\win32\mutex.hpp||In destructor `boost::mutex::~mutex()'
    C:\mingw\include\boost\thread\win32\mutex.hpp|31|error: `destroy' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\mutex.hpp|31|warning: unused variable 'destroy'|
    C:\mingw\include\boost\thread\win32\mutex.hpp|43|error: expected class-name before '{' token|
    C:\mingw\include\boost\thread\win32\mutex.hpp||In constructor `boost::timed_mutex::timed_mutex()'
    C:\mingw\include\boost\thread\win32\mutex.hpp|47|error: `initialize' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\mutex.hpp|47|warning: unused variable 'initialize'|
    C:\mingw\include\boost\thread\win32\mutex.hpp||In destructor `boost::timed_mutex::~timed_mutex()'
    C:\mingw\include\boost\thread\win32\mutex.hpp|52|error: `destroy' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\mutex.hpp|52|warning: unused variable 'destroy'|
    C:\mingw\include\boost\thread\win32\thread.hpp|15|thread_primitives.hpp: No such file or directory|
    C:\mingw\include\boost\thread\win32\thread.hpp|16|thread_heap_alloc.hpp: No such file or directory|
    C:\mingw\include\boost\thread\win32\thread.hpp|44|error: `boost::detail::win32' has not been declared|
    C:\mingw\include\boost\thread\win32\thread.hpp|44|error: ISO C++ forbids declaration of `handle_manager' with no type|
    C:\mingw\include\boost\thread\win32\thread.hpp|44|error: expected `;' before "thread_handle"|
    C:\mingw\include\boost\thread\win32\thread.hpp|45|error: `boost::detail::win32' has not been declared|
    C:\mingw\include\boost\thread\win32\thread.hpp|45|error: ISO C++ forbids declaration of `handle_manager' with no type|
    C:\mingw\include\boost\thread\win32\thread.hpp|45|error: expected `;' before "interruption_handle"|
    C:\mingw\include\boost\thread\win32\thread.hpp||In constructor `boost::detail::thread_data_base::thread_data_base()'
    C:\mingw\include\boost\thread\win32\thread.hpp|52|error: class `boost::detail::thread_data_base' does not have any field named `thread_handle'|
    C:\mingw\include\boost\thread\win32\thread.hpp|52|error: `boost::detail::win32' has not been declared|
    C:\mingw\include\boost\thread\win32\thread.hpp|52|error: `invalid_handle_value' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|error: class `boost::detail::thread_data_base' does not have any field named `interruption_handle'|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|error: `boost::detail::win32' has not been declared|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|error: `manual_reset_event' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|error: `boost::detail::win32' has not been declared|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|error: `event_initially_reset' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|error: `create_anonymous_event' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\thread.hpp|52|warning: unused variable 'invalid_handle_value'|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|warning: unused variable 'manual_reset_event'|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|warning: unused variable 'event_initially_reset'|
    C:\mingw\include\boost\thread\win32\thread.hpp|53|warning: unused variable 'create_anonymous_event'|
    C:\mingw\include\boost\thread\win32\thread.hpp||In function `void boost::detail::intrusive_ptr_add_ref(boost::detail::thread_data_base*)'
    C:\mingw\include\boost\thread\win32\thread.hpp|63|error: `BOOST_INTERLOCKED_INCREMENT' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\thread.hpp|63|warning: unused variable 'BOOST_INTERLOCKED_INCREMENT'|
    C:\mingw\include\boost\thread\win32\thread.hpp||In function `void boost::detail::intrusive_ptr_release(boost::detail::thread_data_base*)'
    C:\mingw\include\boost\thread\win32\thread.hpp|68|error: `BOOST_INTERLOCKED_DECREMENT' was not declared in this scope|
    C:\mingw\include\boost\thread\win32\thread.hpp|70|error: `heap_delete' is not a member of `boost::detail'|
    C:\mingw\include\boost\thread\win32\thread.hpp|68|warning: unused variable 'BOOST_INTERLOCKED_DECREMENT'|
    C:\mingw\include\boost\thread\win32\thread.hpp||In member function `void boost::detail::thread_data_base::interrupt()'
    C:\mingw\include\boost\thread\win32\thread.hpp|76|error: `boost::detail::win32' has not been declared|
    C:\mingw\include\boost\thread\win32\thread.hpp|76|error: `interruption_handle' was not declared in this scope|
    ||More errors follow but not being shown.|
    ||Edit the max errors limit in compiler options...|
    ||=== Build finished: 50 errors, 10 warnings ===|

    Merci a +

  2. #2
    Membre averti
    Profil pro
    Inscrit en
    Février 2004
    Messages
    19
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2004
    Messages : 19
    Par défaut ereka
    salut à tous bon j'ai trouvé c'était donc une option du compilateur
    Il fallait mettre dans Project Settings
    Generated PCH alongside original header aul ieu de Generate PCH in the object output dir
    merci a+
    Sujet clos

Discussions similaires

  1. Installation de Boost (sous winxp) avec mingw
    Par Zapan77 dans le forum Bibliothèques
    Réponses: 1
    Dernier message: 11/11/2006, 01h15
  2. Installer Boost avec CodeBlocks et MinGW
    Par Sephiroth Lune dans le forum Boost
    Réponses: 28
    Dernier message: 18/09/2006, 21h51
  3. installer boost sous windows
    Par bigboomshakala dans le forum Autres éditeurs
    Réponses: 3
    Dernier message: 16/12/2004, 15h59
  4. cherchecomment utiliser boost sous linux
    Par Krost dans le forum Autres éditeurs
    Réponses: 1
    Dernier message: 25/02/2004, 22h03

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo