I
I
ixon2016-09-29 15:33:31
GTK+
ixon, 2016-09-29 15:33:31

Why doesn't helloworld compile using wxWidgets?

Installed Code::Blocks IDE with pre-installed mingw, installed wxWidgets, compiled, set system variables, created a project using wxWidgets, specified the path variable to wxWidgets using a wizard, tried to build and run the project, but got a number of errors:

C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_richtext
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_xrc
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_aui
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_dbgrid
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxbase28ud_odbc
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_media
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxbase28ud_net
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_gl
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_qa
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxbase28ud_xml
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_adv
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_html
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxmsw28ud_core
C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot find -lwxbase28ud
collect2.exe: error: ld returned 1 exit status

The path C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ is actually ld.exe .
What is wrong? How to build a project?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Mercury13, 2016-09-29
@Mercury13

Project → Build Options → Search Directories → Linker

O
Oleg Tsilyurik, 2016-09-29
@Olej

The path C:/Soft/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ is actually ld.exe.
ld.exe is a dynamic DLL, it has nothing to do with your posts.
You don't have the DLLs for wxWidgets.

A
Adamos, 2016-09-29
@Adamos

In fact, the current version of the library is the third.
For some reason, your linker is looking for libraries for 2.8
Well, after downloading this library from the official site, the first thing you need to do is compile it yourself.
According to instructions from the same site.

I
ixon, 2016-09-29
@ixon

It was necessary to indicate in the wizard when creating the project that wx was built with MONOLITHIC=1
Read more: forums.codeblocks.org/index.php?topic=5979.0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question