News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

cannot find -lwxmsw28_core

Started by mastersgn, December 01, 2007, 06:57:01 PM

Previous topic - Next topic

mastersgn

Hi,
I've installed CodeBloks ide, MinCW, and...wxWidgets 2.8.7
Then i set all path, links etc etc etc...
MinCW works, but if i compile a wxWidgets project the linker gives this error:

obj\Release\main.o:main.cpp:(.bss+0x50): first defined here
obj\Release\connection.o:connection.cpp:(.rdata+0x0): multiple definition of `MyConnection::sm_eventTable'
obj\Release\main.o:main.cpp:(.rdata+0x0): first defined here
D:\CodeBlocks\MinGW-5.1.3\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw28_core
Process terminated with status 1 (0 minutes, 10 seconds)
1 errors, 1 warnings


WHAT IS -lwxmsw28_core?? :?

Tanks

TDragon

[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

MortenMacFly

Quote from: mastersgn on December 01, 2007, 06:57:01 PM
WHAT IS -lwxmsw28_core?? :?
The problem is that you are trying to develop a wxWidgets app but have no clue about the wxWidgets basics, obviously. This library it the wxWidgets core library that you need to link against. Of course either you build this lib yourself or you use something like wxPack. The latter might require tweaking compiler/linker settings a little.
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]