wxDev.fr, le portail francophone consacré à wxWidgets ! ( The french portal for wxWidgets )  
Esp. membre
Recheche rapide



Recherche avancée
Statistiques
Membres inscrits :2359

Membres en ligne : 0
Invités en ligne : 2
Pub hébergeur
Pourquoi cette pub ?

Valid XHTML 1.0 Transitional

Valid CSS2

Menu forum (navigation):
Pages: 1 2  
 
Accueil » Accueil forums » Compilation - Installation - Réglages IDE
» Compilation example minimal
Conversation (Résolue) : Compilation example minimal
09-09-2013 12:48:20  Compilation example minimal #1
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
Bonjour,

Je peux compiler cet example avec mingw32 mais pas dans CodeBlocks 12.11 installés avec codeblocks-12.11mingw-setup.
J'ai suivi au mieux les instructions du tutorial pour la configuration de CodeBlocks.

J'obtiens les messages suivants :

minimal.cpp||undefined reference to `wxEntry(HINSTANCE__*, HINSTANCE__*, char*, int)'|
minimal.cpp||undefined reference to `wxAppConsoleBase::CheckBuildOptions(char const*, char const*)'|
minimal.cpp||undefined reference to `wxAppConsoleBase::OnInit()'|
etc...

J'ai raté quelque chose mais quoi ?

Merci.

Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
10-09-2013 08:24:26  Re: Compilation example minimal #2
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Salut.

Est-ce que tu peux poster le contenu du fichier projet Code::Blocks (tu l'ouvres dans un éditeur de texte pour avoir son contenu).

Tu utilises quelle version de wxWidgets ?
Et de quel tutoriel parles-tu : celui de ce site ou un autre ?

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
10-09-2013 10:23:48  Re: Compilation example minimal #3
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
Salut,

Pour info:
version wxWidgets 2.9.5
version make      3.82
version gnu gcc   4.7.1
version Windows   7 build 7601 service pack 1 64 bits edition

je compile avec succès wxWidgets et les samples avec les commandes :
mingw32-make -f makefile.gcc USE_XRC=1 UNICODE=0 SHARED=1 MONOLITHIC=1 BUILD=release clean
mingw32-make -f makefile.gcc USE_XRC=1 UNICODE=0 SHARED=1 MONOLITHIC=1 BUILD=release

J'ai suivi les instructions de tutoriels d'autres sites, car je n'utilise pas devPacks.
par example en dernier : http://wiki.wxwidgets.org/CodeBlocks_Setup_Guide

Le contenu du fichier cbp pour un nouveau projet est :

Code:

 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
    <FileVersion major="1" minor="6" />
    <Project>
        <Option title="p-09-10-10-16" />
        <Option pch_mode="2" />
        <Option compiler="gcc" />
        <Build>
            <Target title="Release">
                <Option output="bin/Release/p-09-10-10-16" prefix_auto="1" extension_auto="1" />
                <Option object_output="obj/Release/" />
                <Option type="0" />
                <Option compiler="gcc" />
                <Option projectLinkerOptionsRelation="2" />
                <Compiler>
                    <Add option="-O2" />
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_dll/msw" />
                </Compiler>
                <ResourceCompiler>
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_dll/msw" />
                </ResourceCompiler>
                <Linker>
                    <Add option="-s" />
                    <Add library="libwxmsw29.a" />
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_dll" />
                </Linker>
            </Target>
        </Build>
        <Compiler>
            <Add option="-pipe" />
            <Add option="-mthreads" />
            <Add option="-D__GNUWIN32__" />
            <Add option="-D__WXMSW__" />
            <Add option="-DWXUSINGDLL" />
            <Add option='[[if (PLATFORM == PLATFORM_MSW &amp;&amp; (GetCompilerFactory().GetCompilerVersionString(_T(&quot;gcc&quot;)) &gt;= _T(&quot;4.0.0&quot;))) print(_T(&quot;-Wno-attributes&quot;));]]' />
            <Add option="-Wall" />
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/contrib/include" />
        </Compiler>
        <ResourceCompiler>
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
        </ResourceCompiler>
        <Linker>
            <Add option="-mthreads" />
        </Linker>
        <Unit filename="p_09_10_10_16App.cpp" />
        <Unit filename="p_09_10_10_16App.h" />
        <Unit filename="p_09_10_10_16Main.cpp" />
        <Unit filename="p_09_10_10_16Main.h" />
        <Unit filename="resource.rc">
            <Option compilerVar="WINDRES" />
        </Unit>
        <Extensions>
            <code_completion />
            <envvars />
            <debugger />
        </Extensions>
    </Project>
</CodeBlocks_project_file>
 
 


Voila, j'ai les erreurs suivantes (les 3 premières) :

p_09_10_10_16App.cpp||undefined reference to `_imp___ZN8wxString10ConvertStrEPKcjRK8wxMBConv'|
obj\Release\p_09_10_10_16App.o(.rdata$_ZTV16p_09_10_10_16App[vtable for p_09_10_10_16App]+0x5c):p_09_10_10_16App.cpp||undefined reference to `wxApp::Initialize(int&, wchar_t**)'|
obj\Release\p_09_10_10_16App.o(.rdata$_ZTV16p_09_10_10_16App[vtable for p_09_10_10_16App]+0xcc):p_09_10_10_16App.cpp||undefined reference to `wxAppConsoleBase::OnAssertFailure(wchar_t const*, int, wchar_t const*, wchar_t const*, wchar_t const*)'|

Merci pour ton aide.

Dernière modification par Ded (10-09-2013 11:00:01)


Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
10-09-2013 12:44:25  Re: Compilation example minimal #4
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
En fait, la seule explication que je puisse trouver à ton problème viendrait du fait que tu as compilé tes libs en "ANSI" (paramètre UNICODE=0 lors de la compilation).
Alors que, malgré le fait que le projet Code::Blocks ait bien été configuré pour ce paramètre, la config wxWidgets cherche quand même à utiliser Unicode. (paramètres wchar_t dans les lignes d'erreur que tu obtiens).

Tu devrais à mon avis utiliser Unicode dans tes libs, car de toute façon, la configuration "ANSI" va être plus ou moins abandonnée.

Pendant que tu y es, tu peux ajouter CXXFLAGS="-fno-keep-inline-dllexport" à ta ligne de commande : ça devrait diminuer un peu la taille des fichiers obtenus.

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
10-09-2013 13:39:50  Re: Compilation example minimal #5
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
J'ai donc recompilé wxWidgets en mettant UNICODE=1 et ton flag.
Les examples compilent en mode commande.

Mais il y toujours des erreurs dans Code::Blocks :

Code:

 
minimal.cpp||undefined reference to `wxEntry(HINSTANCE__*, HINSTANCE__*, char*, int)'|
minimal.cpp||undefined reference to `wxAppConsoleBase::CheckBuildOptions(char const*, char const*)'|
minimal.cpp||undefined reference to `wxAppConsoleBase::OnInit()'|
minimal.cpp||undefined reference to `wxFrameNameStr'|
minimal.cpp||undefined reference to `wxDefaultSize'|
minimal.cpp||undefined reference to `wxDefaultPosition'|
minimal.cpp||undefined reference to `wxIcon::wxIcon(wxString const&, wxBitmapType, int, int)'|
minimal.cpp||undefined reference to `wxTopLevelWindowBase::SetIcon(wxIcon const&)'|
minimal.cpp||undefined reference to `wxIcon::~wxIcon()'|
minimal.cpp||undefined reference to `wxIcon::~wxIcon()'|
minimal.cpp||undefined reference to `wxMenuBar::wxMenuBar()'|
minimal.cpp||undefined reference to `wxFrameBase::SetMenuBar(wxMenuBar*)'|
minimal.cpp||undefined reference to `wxStatusLineNameStr'|
minimal.cpp||undefined reference to `wxFrameBase::CreateStatusBar(int, long, int, wxString const&)'|
minimal.cpp||undefined reference to `wxFrameBase::SetStatusText(wxString const&, int)'|
minimal.cpp||undefined reference to `wxFrame::~wxFrame()'|
minimal.cpp||undefined reference to `wxFrameNameStr'|
minimal.cpp||undefined reference to `wxDefaultSize'|
minimal.cpp||undefined reference to `wxDefaultPosition'|
minimal.cpp||undefined reference to `wxIcon::wxIcon(wxString const&, wxBitmapType, int, int)'|
minimal.cpp||undefined reference to `wxTopLevelWindowBase::SetIcon(wxIcon const&)'|
minimal.cpp||undefined reference to `wxIcon::~wxIcon()'|
minimal.cpp||undefined reference to `wxIcon::~wxIcon()'|
minimal.cpp||undefined reference to `wxMenuBar::wxMenuBar()'|
minimal.cpp||undefined reference to `wxFrameBase::SetMenuBar(wxMenuBar*)'|
minimal.cpp||undefined reference to `wxStatusLineNameStr'|
minimal.cpp||undefined reference to `wxFrameBase::CreateStatusBar(int, long, int, wxString const&)'|
minimal.cpp||undefined reference to `wxFrameBase::SetStatusText(wxString const&, int)'|
minimal.cpp||undefined reference to `wxFrame::~wxFrame()'|
minimal.cpp||undefined reference to `wxWindowBase::Close(bool)'|
minimal.cpp||undefined reference to `wxGetOsDescription()'|
minimal.cpp||undefined reference to `wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int)'|
minimal.cpp||undefined reference to `wxEventHashTable::wxEventHashTable(wxEventTable const&)'|
minimal.cpp||undefined reference to `wxEVT_MENU'|
minimal.cpp||undefined reference to `wxEVT_MENU'|
minimal.cpp||undefined reference to `wxEVT_MENU'|
minimal.cpp||undefined reference to `wxEVT_MENU'|
minimal.cpp||undefined reference to `wxEVT_NULL'|
minimal.cpp||undefined reference to `wxEventHashTable::~wxEventHashTable()'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.rdata+0x0):minimal.cpp||undefined reference to `wxFrame::sm_eventTable'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.text$_ZN16wxAppConsoleBase11GetInstanceEv[wxAppConsoleBase::GetInstance()]+0x4):minimal.cpp||undefined reference to `wxAppConsoleBase::ms_appInstance'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.text$_ZN5MyAppC1Ev[MyApp::MyApp()]+0xd):minimal.cpp||undefined reference to `wxApp::wxApp()'|
wxMBConv const&)]+0x40):minimal.cpp||undefined reference to `wxString::npos'|
wxMBConv const&)]+0x5a):minimal.cpp||undefined reference to `wxString::ConvertStr(char const*, unsigned int, wxMBConv const&)'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.text$_Z16wxGet_wxConvLibcv[wxGet_wxConvLibc()]+0x8):minimal.cpp||undefined reference to `wxConvLibcPtr'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.text$_Z16wxGet_wxConvLibcv[wxGet_wxConvLibc()]+0x10):minimal.cpp||undefined reference to `wxGet_wxConvLibcPtr()'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.text$_Z16wxGet_wxConvLibcv[wxGet_wxConvLibc()]+0x15):minimal.cpp||undefined reference to `wxConvLibcPtr'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.text$_Z16wxGet_wxConvLibcv[wxGet_wxConvLibc()]+0x1a):minimal.cpp||undefined reference to `wxConvLibcPtr'|
wxItemKind)]+0x31):minimal.cpp||undefined reference to `wxMenuItemBase::New(wxMenu*, int, wxString const&, wxString const&, wxItemKind, wxMenu*)'|
D:\C++\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x53):minimal.cpp||undefined reference to `vtable for wxMenu'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 13 seconds) ===|
 


Par contre si je crée un nouveau projet WxWidgets par Code:Blocks la compile donne pas d'erreurs. Mais quand on fait run la fenetre n'apparait pas et on a :

Code:

 
Checking for existence: D:\wxWidgets App\p-09-10-13-25\bin\Release\p-09-10-13-25.exe
Executing: "D:\wxWidgets App\p-09-10-13-25\bin\Release\p-09-10-13-25.exe"  (in D:\wxWidgets App\p-09-10-13-25\.)
Process terminated with status -1073741819 (0 minutes, 13 seconds)
 


J'ai vu qu'il y a déjà un topic sur ça, mais je n'y ai pas trouvé la solution.

Alors 2 problèmes.

Dernière modification par Ded (10-09-2013 13:53:57)


Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
10-09-2013 18:06:28  Re: Compilation example minimal #6
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
En ce qui concerne le projet actuel :
- Il faut ajouter "wxUSE_UNICODE" dans les options de compilation (menu "Project", "Build options", onglet "Compiler settings", sous-onglet "#defines").
- Il faut ensuite faire un "Rebuild" complet du projet.

En ce qui concerne l'exécution, je viens de penser à un truc tout bête : est-ce que tu as laissé la dll wxWidgets dans le dossier "lib\gcc_dll" ?
Si c'est le cas, le problème vient du fait que le système ne la trouve pas.
Tu as 3 possibilités :
- La placer dans un dossier "connu" par le système (défini par la variable système PATH)
- Ajouter le dossier dans lequel elle se trouve à la variable système PATH
- Copier la dll (il ne doit y en avoir qu'une puisue tu compiles en monolithique) dans le même dossier que ton exécutable

Pour ma part, comme j'ai plusieurs versions des libs installées (et donc pas mal de dll qui trainent), j'ai créé un dossier "bin" dans le répertoire d'installation de wxWidgets, j'y ai placé mes dll, et j'ai ajouté ce dossier à la variable système PATH.

Si tu as besoin de plus d'infos, n'hésites pas.

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
10-09-2013 18:22:02  Re: Compilation example minimal #7
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
L'option wxUSE_UNICODE était déjà au bon endroit.
Et j'ai aussi dans mon path le chemin pour lib\gcc_dll.

Par contre les examples ne marchaient plus avec shared=1 monolithic=1 donc j'ai recompilé avec shared=0 et monolithic=1. Maintenant ça marche. Reste à faire marcher code::blocks.

Quand je build minimal.cpp ou un nouveau projet j'ai les mêmes erreurs.

Pour info le cbp du projet:

Code:

 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
    <FileVersion major="1" minor="6" />
    <Project>
        <Option title="p-09-10-18-10" />
        <Option pch_mode="2" />
        <Option compiler="gcc" />
        <Build>
            <Target title="Release">
                <Option output="bin/Release/p-09-10-18-10" prefix_auto="1" extension_auto="1" />
                <Option object_output="obj/Release/" />
                <Option type="0" />
                <Option compiler="gcc" />
                <Option projectLinkerOptionsRelation="2" />
                <Compiler>
                    <Add option="-O2" />
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
                </Compiler>
                <ResourceCompiler>
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
                </ResourceCompiler>
                <Linker>
                    <Add option="-s" />
                    <Add library="libwxmsw29u.a" />
                    <Add library="libwxpng.a" />
                    <Add library="libwxjpeg.a" />
                    <Add library="libwxtiff.a" />
                    <Add library="libwxzlib.a" />
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib" />
                </Linker>
            </Target>
        </Build>
        <Compiler>
            <Add option="-pipe" />
            <Add option="-mthreads" />
            <Add option="-D__GNUWIN32__" />
            <Add option="-D__WXMSW__" />
            <Add option="-DwxUSE_UNICODE" />
            <Add option='[[if (PLATFORM == PLATFORM_MSW &amp;&amp; (GetCompilerFactory().GetCompilerVersionString(_T(&quot;gcc&quot;)) &gt;= _T(&quot;4.0.0&quot;))) print(_T(&quot;-Wno-attributes&quot;));]]' />
            <Add option="-Wall" />
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/contrib/include" />
        </Compiler>
        <ResourceCompiler>
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
        </ResourceCompiler>
        <Linker>
            <Add option="-mthreads" />
            <Add library="libkernel32.a" />
            <Add library="libuser32.a" />
            <Add library="libgdi32.a" />
            <Add library="libwinspool.a" />
            <Add library="libcomdlg32.a" />
            <Add library="libadvapi32.a" />
            <Add library="libshell32.a" />
            <Add library="libole32.a" />
            <Add library="liboleaut32.a" />
            <Add library="libuuid.a" />
            <Add library="libcomctl32.a" />
            <Add library="libwsock32.a" />
            <Add library="libodbc32.a" />
        </Linker>
        <Unit filename="p_09_10_18_10App.cpp" />
        <Unit filename="p_09_10_18_10App.h" />
        <Unit filename="p_09_10_18_10Main.cpp" />
        <Unit filename="p_09_10_18_10Main.h" />
        <Unit filename="resource.rc">
            <Option compilerVar="WINDRES" />
        </Unit>
        <Extensions>
            <code_completion />
            <envvars />
            <debugger />
            <lib_finder disable_auto="1" />
        </Extensions>
    </Project>
</CodeBlocks_project_file>
 


et le full log du build :

Code:

 
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
::~wxStringTypeBuffer()]+0x7b):window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_mdi.o)(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x73):mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
event.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x117):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, unsigned int, std::allocator<wchar_t> const&)'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x23e):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZNK16wxDropFilesEvent5CloneEv[wxDropFilesEvent::Clone() const]+0x104):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned int, wchar_t)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
...)]+0x20c):strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
string.cpp||undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'|
string.cpp||undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 14 seconds) ===|
 

----------
L'option wxUSE_UNICODE était déjà au bon endroit.
Et j'ai aussi dans mon path le chemin pour lib\gcc_dll.

Par contre les examples ne marchaient plus avec shared=1 monolithic=1 donc j'ai recompilé avec shared=0 et monolithic=1. Maintenant ça marche. Reste à faire marcher code::blocks.

Quand je build minimal.cpp ou un nouveau projet j'ai les mêmes erreurs.

Pour info le cbp du projet:

Code:

 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
    <FileVersion major="1" minor="6" />
    <Project>
        <Option title="p-09-10-18-10" />
        <Option pch_mode="2" />
        <Option compiler="gcc" />
        <Build>
            <Target title="Release">
                <Option output="bin/Release/p-09-10-18-10" prefix_auto="1" extension_auto="1" />
                <Option object_output="obj/Release/" />
                <Option type="0" />
                <Option compiler="gcc" />
                <Option projectLinkerOptionsRelation="2" />
                <Compiler>
                    <Add option="-O2" />
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
                </Compiler>
                <ResourceCompiler>
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
                </ResourceCompiler>
                <Linker>
                    <Add option="-s" />
                    <Add library="libwxmsw29u.a" />
                    <Add library="libwxpng.a" />
                    <Add library="libwxjpeg.a" />
                    <Add library="libwxtiff.a" />
                    <Add library="libwxzlib.a" />
                    <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/lib/gcc_lib" />
                </Linker>
            </Target>
        </Build>
        <Compiler>
            <Add option="-pipe" />
            <Add option="-mthreads" />
            <Add option="-D__GNUWIN32__" />
            <Add option="-D__WXMSW__" />
            <Add option="-DwxUSE_UNICODE" />
            <Add option='[[if (PLATFORM == PLATFORM_MSW &amp;&amp; (GetCompilerFactory().GetCompilerVersionString(_T(&quot;gcc&quot;)) &gt;= _T(&quot;4.0.0&quot;))) print(_T(&quot;-Wno-attributes&quot;));]]' />
            <Add option="-Wall" />
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/contrib/include" />
        </Compiler>
        <ResourceCompiler>
            <Add directory="D:/C++/wxBook/wxWidgets-2.9.5/include" />
        </ResourceCompiler>
        <Linker>
            <Add option="-mthreads" />
            <Add library="libkernel32.a" />
            <Add library="libuser32.a" />
            <Add library="libgdi32.a" />
            <Add library="libwinspool.a" />
            <Add library="libcomdlg32.a" />
            <Add library="libadvapi32.a" />
            <Add library="libshell32.a" />
            <Add library="libole32.a" />
            <Add library="liboleaut32.a" />
            <Add library="libuuid.a" />
            <Add library="libcomctl32.a" />
            <Add library="libwsock32.a" />
            <Add library="libodbc32.a" />
        </Linker>
        <Unit filename="p_09_10_18_10App.cpp" />
        <Unit filename="p_09_10_18_10App.h" />
        <Unit filename="p_09_10_18_10Main.cpp" />
        <Unit filename="p_09_10_18_10Main.h" />
        <Unit filename="resource.rc">
            <Option compilerVar="WINDRES" />
        </Unit>
        <Extensions>
            <code_completion />
            <envvars />
            <debugger />
            <lib_finder disable_auto="1" />
        </Extensions>
    </Project>
</CodeBlocks_project_file>
 


et le full log du build :

Code:

 
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
window.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
::~wxStringTypeBuffer()]+0x7b):window.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_mdi.o)(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x73):mdi.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
event.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x117):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, unsigned int, std::allocator<wchar_t> const&)'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x23e):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'|
D:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\libwxmsw29u.a(monolib_event.o)(.text$_ZNK16wxDropFilesEvent5CloneEv[wxDropFilesEvent::Clone() const]+0x104):event.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned int, wchar_t)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
appbase.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
...)]+0x20c):strconv.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'|
string.cpp||undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'|
string.cpp||undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'|
string.cpp||undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'|
string.cpp||undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings (0 minutes, 14 seconds) ===|
 

Dernière modification par Ded (10-09-2013 18:22:37)


Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
10-09-2013 21:50:34  Re: Compilation example minimal #8
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Il y a un truc qui me chagrine.
Je ne suis pas certain que le problème vienne de là, mais dans le doute...

En fait, il faut éviter les caractères spéciaux dans les chemins en développement.
Et là, pour tes libs wxWidgets, tu utilises "D:/C++/wxBook/wxWidgets-2.9.5/"

Comme je l'ai dit, ça n'est pas sur que le problème vienne de là, mais il vaut mieux éviter ce genre de choses.

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
10-09-2013 22:49:15  Re: Compilation example minimal #9
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
J'ai changé C++ par CPP et recompilé wxWidgets.

et j'obtiens le build log suivant :

Code:

 
-------------- Build: Release in p-09-10-22-44 (compiler: GNU GCC Compiler)---------------
 
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE  -Wall  -O2    -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\contrib\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -ID:\  -c "D:\wxWidgets App\p-09-10-22-44\p_09_10_22_44App.cpp" -o obj\Release\p_09_10_22_44App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE  -Wall  -O2    -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\contrib\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -ID:\  -c "D:\wxWidgets App\p-09-10-22-44\p_09_10_22_44Main.cpp" -o obj\Release\p_09_10_22_44Main.o
windres.exe -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll\mswu  -J rc -O coff -i D:\WXWIDG~1\P-E9AA~1\resource.rc -o obj\Release\resource.res
mingw32-g++.exe -LD:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll  -o bin\Release\p-09-10-22-44.exe obj\Release\p_09_10_22_44App.o obj\Release\p_09_10_22_44Main.o  obj\Release\resource.res  -s -mthreads  -lwxmsw29u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32  -mwindows
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x6391):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x775a):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x8d31):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x987e):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9bdb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9d19):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xb234):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xbdfc):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xc3e2):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xcbbb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xd8bf):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xdcd3):window.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text$_ZN18wxStringTypeBufferIwED1Ev[wxStringTypeBuffer<wchar_t>::~wxStringTypeBuffer()]+0x7b):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x245e):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3879):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3eaa):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x49c7):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x73):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text+0x131e):event.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x117):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, unsigned int, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x23e):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZNK16wxDropFilesEvent5CloneEv[wxDropFilesEvent::Clone() const]+0x104):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xabc):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xce6):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a05):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a37):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a69):appbase.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x4b3d):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x5194):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6447):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x68d0):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x69a1):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned int, wchar_t)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6b08):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6d21):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x7a17):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x804f):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x4674):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x5477):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZN8wxLogger10DoLogTraceERK8wxStringPKwz[wxLogger::DoLogTrace(wxString const&, wchar_t const*, ...)]+0x20c):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZNK14wxMBConv_win3211GetMBNulLenEv[wxMBConv_win32::GetMBNulLen() const]+0x3d9):strconv.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x143):string.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x183):string.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1b3):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1d1):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x20f):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x22d):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x265):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x285):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x392):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x3b6):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x45f):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)'
Process terminated with status 1 (0 minutes, 34 seconds)
50 errors, 0 warnings (0 minutes, 34 seconds)
 


a+

Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
10-09-2013 23:12:59  Re: Compilation example minimal #10
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Ded a écrit:
J'ai changé C++ par CPP et recompilé wxWidgets.

et j'obtiens le build log suivant :

Code:

mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE  -Wall  -O2    -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\contrib\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -ID:\  -c "D:\wxWidgets App\p-09-10-22-44\p_09_10_22_44App.cpp" -o obj\Release\p_09_10_22_44App.o
......
Il y a encore des "D:\C++\wxBook..." qui traînent.
De plus, je viens de voir que le chemin de ton projet contient un espace (D:\wxWidgets App\p-09-10-22-44\), ce qui peut également poser problème.
Mais commence d'abord par mettre à jour le projet Code::Blocks pour voir si ça marche.
De cette façon, on sera fixé pour l'espace.

@=
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
11-09-2013 04:12:55  Re: Compilation example minimal #11
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
Oh la la, tu as l'oeil !!

J'ai recompilé wxWidgets de scratch pour éliminer les "++" et le " ".

Voici le nouveau fichier cbp :

Code:

 
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
    <FileVersion major="1" minor="6" />
    <Project>
        <Option title="p-09-11-04-07" />
        <Option pch_mode="2" />
        <Option compiler="gcc" />
        <Build>
            <Target title="Release">
                <Option output="bin/Release/p-09-11-04-07" prefix_auto="1" extension_auto="1" />
                <Option object_output="obj/Release/" />
                <Option type="0" />
                <Option compiler="gcc" />
                <Option projectLinkerOptionsRelation="2" />
                <Compiler>
                    <Add option="-O2" />
                    <Add directory="D:/CPP/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
                </Compiler>
                <ResourceCompiler>
                    <Add directory="D:/CPP/wxBook/wxWidgets-2.9.5/lib/gcc_lib/mswu" />
                </ResourceCompiler>
                <Linker>
                    <Add option="-s" />
                    <Add library="libwxmsw29u.a" />
                    <Add library="libwxpng.a" />
                    <Add library="libwxjpeg.a" />
                    <Add library="libwxtiff.a" />
                    <Add library="libwxzlib.a" />
                    <Add directory="D:/CPP/wxBook/wxWidgets-2.9.5/lib/gcc_lib" />
                </Linker>
            </Target>
        </Build>
        <Compiler>
            <Add option="-pipe" />
            <Add option="-mthreads" />
            <Add option="-D__GNUWIN32__" />
            <Add option="-D__WXMSW__" />
            <Add option="-DwxUSE_UNICODE" />
            <Add option='[[if (PLATFORM == PLATFORM_MSW &amp;&amp; (GetCompilerFactory().GetCompilerVersionString(_T(&quot;gcc&quot;)) &gt;= _T(&quot;4.0.0&quot;))) print(_T(&quot;-Wno-attributes&quot;));]]' />
            <Add option="-Wall" />
            <Add directory="D:/CPP/wxBook/wxWidgets-2.9.5/include" />
            <Add directory="D:/CPP/wxBook/wxWidgets-2.9.5/contrib/include" />
        </Compiler>
        <ResourceCompiler>
            <Add directory="D:/CPP/wxBook/wxWidgets-2.9.5/include" />
        </ResourceCompiler>
        <Linker>
            <Add option="-mthreads" />
            <Add library="libkernel32.a" />
            <Add library="libuser32.a" />
            <Add library="libgdi32.a" />
            <Add library="libwinspool.a" />
            <Add library="libcomdlg32.a" />
            <Add library="libadvapi32.a" />
            <Add library="libshell32.a" />
            <Add library="libole32.a" />
            <Add library="liboleaut32.a" />
            <Add library="libuuid.a" />
            <Add library="libcomctl32.a" />
            <Add library="libwsock32.a" />
            <Add library="libodbc32.a" />
        </Linker>
        <Unit filename="p_09_11_04_07App.cpp" />
        <Unit filename="p_09_11_04_07App.h" />
        <Unit filename="p_09_11_04_07Main.cpp" />
        <Unit filename="p_09_11_04_07Main.h" />
        <Unit filename="resource.rc">
            <Option compilerVar="WINDRES" />
        </Unit>
        <Extensions>
            <code_completion />
            <envvars />
            <debugger />
            <lib_finder disable_auto="1" />
        </Extensions>
    </Project>
</CodeBlocks_project_file>
 


et le build log :

Code:

 
 
-------------- Build: Release in p-09-11-04-07 (compiler: GNU GCC Compiler)---------------
 
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE  -Wall  -O2    -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\contrib\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -ID:\  -c D:\wxWidgetsApp\p-09-11-04-07\p_09_11_04_07App.cpp -o obj\Release\p_09_11_04_07App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE  -Wall  -O2    -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\contrib\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\include -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -ID:\  -c D:\wxWidgetsApp\p-09-11-04-07\p_09_11_04_07Main.cpp -o obj\Release\p_09_11_04_07Main.o
windres.exe -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll\mswu  -J rc -O coff -i D:\WXWIDG~1\P-2B1C~1\resource.rc -o obj\Release\resource.res
mingw32-g++.exe -LD:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll  -o bin\Release\p-09-11-04-07.exe obj\Release\p_09_11_04_07App.o obj\Release\p_09_11_04_07Main.o  obj\Release\resource.res  -s -mthreads  -lwxmsw29u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32  -mwindows
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x6391):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x775a):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x8d31):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x987e):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9bdb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9d19):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xb234):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xbdfc):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xc3e2):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xcbbb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xd8bf):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xdcd3):window.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text$_ZN18wxStringTypeBufferIwED1Ev[wxStringTypeBuffer<wchar_t>::~wxStringTypeBuffer()]+0x7b):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x245e):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3879):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3eaa):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x49c7):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x73):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text+0x131e):event.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x117):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, unsigned int, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x23e):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZNK16wxDropFilesEvent5CloneEv[wxDropFilesEvent::Clone() const]+0x104):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xabc):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xce6):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a05):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a37):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a69):appbase.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x4b3d):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x5194):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6447):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x68d0):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x69a1):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned int, wchar_t)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6b08):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6d21):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x7a17):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x804f):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x4674):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x5477):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZN8wxLogger10DoLogTraceERK8wxStringPKwz[wxLogger::DoLogTrace(wxString const&, wchar_t const*, ...)]+0x20c):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZNK14wxMBConv_win3211GetMBNulLenEv[wxMBConv_win32::GetMBNulLen() const]+0x3d9):strconv.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x143):string.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x183):string.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1b3):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1d1):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x20f):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x22d):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x265):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x285):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x392):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x3b6):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x45f):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)'
Process terminated with status 1 (0 minutes, 22 seconds)
50 errors, 0 warnings (0 minutes, 22 seconds)
 


Merci pour ta patience.

Dernière modification par Ded (11-09-2013 04:15:09)


Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
11-09-2013 08:23:37  Re: Compilation example minimal #12
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Il y a un truc bizarre :
Le contenu du fichier projet Code::Blocks a l'air tout à fait correct, mais les lignes de commande non.

La compilation des fichiers "*.cpp" s'effectue apparemment sans erreur.
Par contre, celle du fichier "*.rc" a l'air de passer, mais la ligne de commande contient des erreurs.

De même que le link qui lui, échoue.

C'est justement là qu'on voit un problème : il y a l'air d'avoir un mélange entre les anciens paramètres et les nouveaux.

windres.exe -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu -ID:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll\mswu  -J rc -O coff -i D:\WXWIDG~1\P-2B1C~1\resource.rc -o obj\Release\resource.res

mingw32-g++.exe -LD:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_lib -LD:\C++\wxBook\wxWidgets-2.9.5\lib\gcc_dll  -o bin\Release\p-09-11-04-07.exe obj\Release\p_09_11_04_07App.o obj\Release\p_09_11_04_07Main.o  obj\Release\resource.res  -s -mthreads  -lwxmsw29u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32  -mwindows


D'ailleurs, pour le link, on voit qu'il y a même un reste de ligne de commande correspondant à quand tu étais en "SHARED=1"

Tu n'aurais pas, à tout hasard, modifié les paramètres par défaut du compilateur ?
Vérifie (menu "Settings", "Compiler", onglet "Search directories").
Les contenu des 3 sous-onglets (Compier, Linker, Resource Compiler) doivent être vides.

Allez, courage, on va y arriver !...

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
11-09-2013 08:57:26  Re: Compilation example minimal #13
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
Effectivement il y avait des chemins. J'ai tout enlevé.
Un rebuild donne encore des erreurs :


Code:

 
 
-------------- Clean: Release in p-09-11-08-49 (compiler: GNU GCC Compiler)---------------
 
Cleaned "p-09-11-08-49 - Release"
 
-------------- Build: Release in p-09-11-08-49 (compiler: GNU GCC Compiler)---------------
 
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE  -Wall  -O2    -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\contrib\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu  -c D:\wxWidgetsApp\p-09-11-08-49\p_09_11_08_49App.cpp -o obj\Release\p_09_11_08_49App.o
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE  -Wall  -O2    -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\contrib\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu  -c D:\wxWidgetsApp\p-09-11-08-49\p_09_11_08_49Main.cpp -o obj\Release\p_09_11_08_49Main.o
windres.exe -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu  -J rc -O coff -i D:\WXWIDG~1\P-4202~1\resource.rc -o obj\Release\resource.res
mingw32-g++.exe -LD:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib  -o bin\Release\p-09-11-08-49.exe obj\Release\p_09_11_08_49App.o obj\Release\p_09_11_08_49Main.o  obj\Release\resource.res  -s -mthreads  -lwxmsw29u -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32  -mwindows
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x6391):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x775a):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x8d31):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x987e):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9bdb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0x9d19):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xb234):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xbdfc):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xc3e2):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xcbbb):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xd8bf):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text+0xdcd3):window.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_window.o)(.text$_ZN18wxStringTypeBufferIwED1Ev[wxStringTypeBuffer<wchar_t>::~wxStringTypeBuffer()]+0x7b):window.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x245e):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3879):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x3eaa):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text+0x49c7):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_mdi.o)(.text$_ZN6wxMenuC1El[wxMenu::wxMenu(long)]+0x73):mdi.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text+0x131e):event.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x117):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string(wchar_t const*, unsigned int, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZN13wxThreadEventC1ERKS_[wxThreadEvent::wxThreadEvent(wxThreadEvent const&)]+0x23e):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_event.o)(.text$_ZNK16wxDropFilesEvent5CloneEv[wxDropFilesEvent::Clone() const]+0x104):event.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xabc):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0xce6):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a05):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a37):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x3a69):appbase.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x4b3d):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(wchar_t const*, unsigned int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x5194):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6447):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x68d0):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x69a1):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(unsigned int, wchar_t)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6b08):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x6d21):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x7a17):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_appbase.o)(.text+0x804f):appbase.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x4674):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text+0x5477):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZN8wxLogger10DoLogTraceERK8wxStringPKwz[wxLogger::DoLogTrace(wxString const&, wchar_t const*, ...)]+0x20c):strconv.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_strconv.o)(.text$_ZNK14wxMBConv_win3211GetMBNulLenEv[wxMBConv_win32::GetMBNulLen() const]+0x3d9):strconv.cpp: more undefined references to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_S_construct(unsigned int, wchar_t, std::allocator<wchar_t> const&)' follow
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x143):string.cpp: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x183):string.cpp: undefined reference to `std::ostream& std::ostream::_M_insert<void const*>(void const*)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1b3):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x1d1):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x20f):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x22d):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x265):string.cpp: undefined reference to `std::basic_ostream<wchar_t, std::char_traits<wchar_t> >& std::__ostream_insert<wchar_t, std::char_traits<wchar_t> >(std::basic_ostream<wchar_t, std::char_traits<wchar_t> >&, wchar_t const*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x285):string.cpp: undefined reference to `std::basic_ios<wchar_t, std::char_traits<wchar_t> >::clear(std::_Ios_Iostate)'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x392):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x3b6):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()'
D:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib/libwxmsw29u.a(monolib_string.o)(.text+0x45f):string.cpp: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::swap(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&)'
Process terminated with status 1 (0 minutes, 14 seconds)
50 errors, 0 warnings (0 minutes, 14 seconds)
 


A+

Dernière modification par Ded (11-09-2013 11:27:08)


Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
11-09-2013 20:55:31  Re: Compilation example minimal #14
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Bon.

Pour être sûr, que ça marche bien, j'ai fait un test en réel, avec la même configuration que toi, c'est à dire STATIQUE, UNICODE, MONOLITHIQUE, RELEASE.

Voici les différences que j'ai trouvé au niveau des lignes de commande :
- Pour la compilation des fichiers CPP : j'ai le paramètre "-Wno-attributes" en plus (mais j'ai essayé sans, ça marche quand même).
- Tu as un dossier de recherche en trop : avec la version 2.9.x, le dossier "contrib/include" n'existe plus
- Toujours pour le compilateur, chez-moi, le dossier "/lib/gcc_lib/mswu" est avant "/include"
- J'ai un paramètre "wxDEBUG_LEVEL=0" mais ça, je suis obligé de le mettre car j'ai compilé mes libs avec le paramètre "DEBUG_FLAG=0"
- Pour le compilateur de ressources, même constatation que pour le compilateur normal en ce qui concerne le dossier "contrib"
- Au niveau du linker, c'est pareil, à part le fait que tu as beaucoup plus de libs que moi (mais j'ai essayé en mettant les mêmes que toi, et ça marche).

A ce stade, je ne vois plus trop d'où ça peut venir.

Il reste encore une possibilité qui n'a pas été explorée : la version du compilateur.
Encore que normalement, il me semble qu'on utilise la même.

Par acquis de conscience, peux-tu poster le résultat de la ligne de commande suivante (entrée dans une fenêtre "Invite de commande") :

Code:

gcc --version

Ça permettra d'ailleurs de savoir si tu as la version 32 ou 64 bits.

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
11-09-2013 21:16:18  Re: Compilation example minimal #15
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
gcc -version donne :

Code:

 
gcc (tdm-1) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 

j'ai installé Code:Blocks depuis http://www.codeblocks.org/downloads/26
en prenant codeblocks-12.11mingw-setup.exe.

Heureusement je peux développer en mode commande !

Dernière modification par Ded (11-09-2013 22:06:25)


Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
11-09-2013 21:29:23  Re: Compilation example minimal #16
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
C'est vraiment à n'y rien comprendre.

On peut faire le test avec mes libs si tu veux, et ce de façon très simple, sans supprimer les tiennes :
- Renomme ton dossier "D:\CPP\wxBook\wxWidgets-2.9.5" en par exemple "D:\CPP\wxBook\wxWidgets-2.9.5-0"
- Re-creé un dossier (qui sera vide) avec le même nom qu'avant le renommage (D:\CPP\wxBook\wxWidgets-2.9.5)
- Télécharge mes libs à l'aide des deux liens suivants : Archive N°1 et Archive N°2
- Place les deux fichiers téléchargés dans le dossier vide, et décompresse-les "sur place" (avec 7Zip, clic-droit, extraire ici)
- Tu dois obtenir sensiblement la même arborescence que celle que tu avais avec tes libs
- Comme j'ai utilisé le paramètre "CFG" lors de la compilation, il te faut renommer le dossier "lib/gcc_lib32_Mono" en "lib/gcc_lib"
- Dans les options de compilation de ton projet, ajoute "wxDEBUG_LEVEL=0" dans le sous-onglet "#define" de l'onglet "Compiler settings"

Il ne reste plus qu'à faire un "Rebuild" et à croiser les doigts.

De cette façon, on saura si le problème vient des libs ou de l'installation de Code::Blocks.

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
11-09-2013 22:11:31  Re: Compilation example minimal #17
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
gcc -version donne :

[code Style=Autre]
gcc (tdm-1) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[/code]

j'ai installé Code:Blocks depuis http://www.codeblocks.org/downloads/26
en prenant codeblocks-12.11mingw-setup.exe.

Heureusement je peux développer en mode commande !

Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
11-09-2013 22:26:12  Re: Compilation example minimal #18
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Ded a écrit:
gcc -version donne :

Code:

 
gcc (tdm-1) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 


j'ai installé Code:Blocks depuis http://www.codeblocks.org/downloads/26
en prenant codeblocks-12.11mingw-setup.exe.

Heureusement je peux développer en mode commande !
Heu... je crois que tu l'as déjà dit ça :D

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
12-09-2013 06:04:30  Re: Compilation example minimal #19
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
Tu avais raison pour le compilateur : il y avait un gros problème de confusion entre deux compilateurs. DevCpp était installé, je l'ai désinstallé et maintenant je peux compiler un projet vide. Ouf !

Par contre quand je compile minimal je continue à obtenir :

Code:

 
mingw32-g++.exe   -ID:\CPP\wxBook\wxWidgets-2.9.5\include -ID:\CPP\wxBook\wxWidgets-2.9.5\lib\gcc_lib\mswu  -c D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.cpp -o D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o
mingw32-g++.exe  -o D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.exe D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o   
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x43): undefined reference to `wxEntry(HINSTANCE__*, HINSTANCE__*, char*, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xa1): undefined reference to `wxAppConsoleBase::CheckBuildOptions(char const*, char const*)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x14d): undefined reference to `wxAppConsoleBase::OnInit()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x2a3): undefined reference to `wxFrameNameStr'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x2d7): undefined reference to `wxDefaultSize'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x2df): undefined reference to `wxDefaultPosition'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x385): undefined reference to `wxIcon::wxIcon(wxString const&, wxBitmapType, int, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x3a8): undefined reference to `wxTopLevelWindowBase::SetIcon(wxIcon const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x3c2): undefined reference to `wxIcon::~wxIcon()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x5ad): undefined reference to `wxMenuBar::wxMenuBar()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x691): undefined reference to `wxFrameBase::SetMenuBar(wxMenuBar*)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x69e): undefined reference to `wxStatusLineNameStr'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x6dd): undefined reference to `wxFrameBase::CreateStatusBar(int, long, int, wxString const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x72d): undefined reference to `wxFrameBase::SetStatusText(wxString const&, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x7b7): undefined reference to `wxIcon::~wxIcon()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0x9c8): undefined reference to `wxFrame::~wxFrame()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xa12): undefined reference to `wxWindowBase::Close(bool)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xa94): undefined reference to `wxGetOsDescription()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xb1b): undefined reference to `wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xc81): undefined reference to `wxEventHashTable::~wxEventHashTable()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xd26): undefined reference to `wxEventHashTable::wxEventHashTable(wxEventTable const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xd6c): undefined reference to `wxEVT_MENU'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xd80): undefined reference to `wxEVT_MENU'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xde1): undefined reference to `wxEVT_MENU'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xdee): undefined reference to `wxEVT_MENU'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text+0xe50): undefined reference to `wxEVT_NULL'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_Z16wxGet_wxConvLibcv[__Z16wxGet_wxConvLibcv]+0x7): undefined reference to `wxConvLibcPtr'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_Z16wxGet_wxConvLibcv[__Z16wxGet_wxConvLibcv]+0x10): undefined reference to `wxGet_wxConvLibcPtr()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_Z16wxGet_wxConvLibcv[__Z16wxGet_wxConvLibcv]+0x15): undefined reference to `wxConvLibcPtr'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_Z16wxGet_wxConvLibcv[__Z16wxGet_wxConvLibcv]+0x1a): undefined reference to `wxConvLibcPtr'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZNK14wxFormatStringcvPKwEv[__ZNK14wxFormatStringcvPKwEv]+0xf): undefined reference to `wxFormatString::AsWChar()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.rdata+0x128): undefined reference to `wxFrame::sm_eventTable'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj[__ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj]+0x23): undefined reference to `wxFormatString::GetArgumentType(unsigned int) const'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj[__ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj]+0x2e): undefined reference to `wxTheAssertHandler'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj[__ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj]+0x69): undefined reference to `wxOnAssert(char const*, int, char const*, char const*, char const*)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj[__ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj]+0x6e): undefined reference to `wxTrapInAssert'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj[__ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj]+0x82): undefined reference to `wxTrapInAssert'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj[__ZN20wxArgNormalizerWcharIRK8wxStringEC2ES2_PK14wxFormatStringj]+0x88): undefined reference to `wxTrap()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN8wxString7ImplStrEPKcRK8wxMBConv[__ZN8wxString7ImplStrEPKcRK8wxMBConv]+0x37): undefined reference to `wxString::npos'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN8wxString7ImplStrEPKcRK8wxMBConv[__ZN8wxString7ImplStrEPKcRK8wxMBConv]+0x5b): undefined reference to `wxString::ConvertStr(char const*, unsigned int, wxMBConv const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN8wxObjectaSERKS_[__ZN8wxObjectaSERKS_]+0x1d): undefined reference to `wxObject::Ref(wxObject const&)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN10wxListBaseC2E9wxKeyType[__ZN10wxListBaseC2E9wxKeyType]+0xe): undefined reference to `vtable for wxListBase'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN10wxListBaseC2E9wxKeyType[__ZN10wxListBaseC2E9wxKeyType]+0x1e): undefined reference to `wxListBase::Init(wxKeyType)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN23wxCriticalSectionLockerC1ER17wxCriticalSection[__ZN23wxCriticalSectionLockerC1ER17wxCriticalSection]+0x19): undefined reference to `wxCriticalSection::Enter()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN23wxCriticalSectionLockerD1Ev[__ZN23wxCriticalSectionLockerD1Ev]+0x11): undefined reference to `wxCriticalSection::Leave()'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN14wxEventFunctorC2Ev[__ZN14wxEventFunctorC2Ev]+0xe): undefined reference to `vtable for wxEventFunctor'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject[__ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject]+0x2d): undefined reference to `wxTheAssertHandler'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject[__ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject]+0x6b): undefined reference to `wxOnAssert(char const*, int, char const*, char const*, char const*)'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject[__ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject]+0x70): undefined reference to `wxTrapInAssert'
D:\CPP\wxBook\wxWidgets-2.9.5\samples\minimal\minimal.o:minimal.cpp:(.text$_ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject[__ZN21wxEventTableEntryBaseC2EiiP14wxEventFunctorP8wxObject]+0x84): undefined reference to `wxTrapInAssert'
Process terminated with status 1 (0 minutes, 12 seconds)
50 errors, 0 warnings (0 minutes, 12 seconds)
 

On est pas loin. Encore merci.

Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
12-09-2013 07:41:36  Re: Compilation example minimal #20
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Tu as recompilé tes libs après avoir désinstallé DevCpp ?

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
12-09-2013 08:38:28  Re: Compilation example minimal #21
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
Je viens de le refaire, c'est pareil.
- compiler un projet par defaut de Code::Blocks marche
- compiler minimal.cpp donne les mêmes erreurs.

Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
12-09-2013 09:44:03  Re: Compilation example minimal #22
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Ded a écrit:
Je viens de le refaire, c'est pareil.
- compiler un projet par defaut de Code::Blocks marche
- compiler minimal.cpp donne les mêmes erreurs.
Pour compiler minimal.cpp, tu utilises Code::Blocks ou la ligne de commande ?
Tu as pensé à faire un "Clean" avant de retenter (si jamais il lui reste des fichiers intermédiaires des compilations précédentes).

Est-ce que tu as essayé avec mes libs ?
Ça ne devrait pas prendre beaucoup de temps pour faire le test, et tu pourras rapidement effacer le dossier et restaurer les tiennes par la suite.

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
12-09-2013 09:59:57  Re: Compilation example minimal #23
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
J'ai essayé avec tes libs et c'est pire, j'ai des erreurs de compile des samples en mode commande et les mêmes erreurs depuis Code::Blocks.

Pour résumer:
- depuis Code:Blocks je peux compiler des projets wxWidgets créés par Code::Blocks
- je peux compiler les samples en mode commande
- j'ai toujours les mêmes erreurs depuis Code::Blocks quand je compile minimal.cpp.

Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
12-09-2013 14:35:53  Re: Compilation example minimal #24
Xaviou (Administrateur)
Lieu: Annecy (74)
Inscrit le : 27-08-2007
Messages: 1365
Snippets: 25
Tutoriels: 6
Site web
Hors ligne
Ok.

Pour créer le projet Code::Blocks de l'exemple "Minimal", tu as fait comment ?
Parce que si on regarde la ligne de commande du linker, il n'y a aucune trace des libs wxWidgets.

@+
Xav'

Le nouveau portail wxWidgets francophone : www.wxdev.fr
Ben en fait, vous y êtes déjà...
12-09-2013 15:09:39  Re: Compilation example minimal #25
Ded (Membre)
Lieu: Grenoble (38)
Inscrit le : 09-09-2013
Messages: 41
Snippets: 0
Tutoriels: 0
Hors ligne
C'est un fait que je commence à comprendre. Je n'ai pas de fichier cbp pour compiler minimal.cpp. J'ouvre le cpp et je compile directement !
De là l'absence des library wxWidgets certainement.
Comment créer un fichier cbp depuis ce cpp ?
en modifiant un cbp correct ?

On approche, merci beaucoup.

Code::Blocks 13.12 on Windows 7 (build 7601 service pack 1 64 bit edition).
GNU GCC version 4.7.1 -std=c++11 Make version 3.82.
wxWidgets 3.0.0 compiled shared=0 monolithic=1 unicode=1 build=release.
Menu forum (navigation):
Pages: 1 2  
 
Accueil » Accueil forums » Compilation - Installation - Réglages IDE
» Compilation example minimal