User forums > Help

Build problems with wxW2.8.4

<< < (3/5) > >>

stahta01:
Please check compiler settings.

Under Tool Chain Executables
Program files Tab.

I have

--- Code: ---C-Compiler                   mingw32-gcc.exe
C++ Compiler                 mingw32-g++.exe

Resource Compiler            windres.exe

--- End code ---
Note, I omitted the other values since, I think they are not related to compiler errors.

Please verify the value for C++ Compiler.

You are using mingw32-gcc-4.2.0.exe (in your command posted above) which errors out, I changed it to "mingw32-g++.exe" which does not at the same place.

Please post an updated "Build Log" for me to check after you verify the "Program files" Tab.
I just need the command plus 6 to 12 lines of errors.

Tim S

patlecat:
I have changed so many settings in the last weeks, also the gcc executables. But this time the settings mix gives some progress, thanks man :P

Now this link error (which I had also in the beginning) remains:

--- Code: ----------------- Build: Release in wixTest ---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -O2 -march=athlon-xp
-O3 -W -pg -g -D_UNICODE -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\include
-IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu -Ih:\MinGW\include -c H:\myProjects2\wixTest\wx_pch.h -o
wx_pch.h.gch\Release_wx_pch_h_gch
In file included from H:/wxWidgets-2.8.4/include/wx/gdicmn.h:23,
from H:/wxWidgets-2.8.4/include/wx/msw/private.h:213,
from H:/wxWidgets-2.8.4/include/wx/msw/wrapcdlg.h:18,
from H:/wxWidgets-2.8.4/include/wx/wxprec.h:47,
from ./wx_pch.h:14,
...
windres.exe -i H:\MYPROJ~1\wixTest\resource.rc -J rc -o obj\Release\resource.res -O coff -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\include -Ih:\MinGW\include
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -O2 -march=athlon-xp -O3 -W -pg -g -D_UNICODE -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu -Ih:\MinGW\include -c H:\myProjects2\wixTest\GUIDialog.cpp -o obj\Release\GUIDialog.o
mingw32-g++.exe -LH:\wxWidgets-2.8.4\lib\gcc_lib -Lh:\MinGW\lib -o bin\Release\wixTest.exe obj\Release\wixTestApp.o obj\Release\wixTestMain.o
 obj\Release\GUIDialog.o obj\Release\resource.res -s -s -pg -lgmon -lwxmsw28 -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32
-lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
h:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28
collect2: ld returned 1 exit status
--- End code ---

stahta01:

--- Quote from: patlecat on May 20, 2007, 06:20:13 pm ---

--- Code: ---mingw32-g++.exe -LH:\wxWidgets-2.8.4\lib\gcc_lib -Lh:\MinGW\lib -o bin\Release\wixTest.exe obj\Release\wixTestApp.o obj\Release\wixTestMain.o
 obj\Release\GUIDialog.o obj\Release\resource.res -s -s -pg -lgmon -lwxmsw28 -lwxpng -lwxjpeg -lwxtiff -lwxzlib -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lodbc32 -mwindows
h:/mingw/bin/../lib/gcc/mingw32/4.2.0/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28
collect2: ld returned 1 exit status
--- End code ---

--- End quote ---

The above code looks like monolithic build code, you said you were doing multilib right?

For Multi, Change wxmsw28 to wxmsw28_core and add wxbase28
Note, more libs may need to be added based on each project requirement.

Are you doing an Unicode build or not?

Tim S

patlecat:
My Config.gcc has MONOLITHIC = 0 in it. Or is there another option that overrides this?

And where can I change the libs?

stahta01:

--- Quote from: patlecat on May 20, 2007, 06:40:55 pm ---My Config.gcc has MONOLITHIC = 0 in it. Or is there another option that overrides this?

--- End quote ---

Yes, when building wxWidgets.

No inside codeblocks, but the wizard is normally only tested with MONOLITHIC builds, note it should asked you when running it if mono or multilib build. I have not used the wizard in months not sure if it asks you, but the forum implied it did after last redesign.

Edit added stuff I added late above

For Multi, Change wxmsw28 to wxmsw28_core and add wxbase28
Note, more libs may need to be added based on each project requirement.

Are you doing an Unicode build or not?

To change libs look at
Project -> Build Options
Change "Compiler Settings" to "Linker Settings"
The libraries should be under "Link Libraries" add them one per row.

Tim S

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version