News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Help with project build

Started by gReaen, February 23, 2008, 12:41:43 PM

Previous topic - Next topic

gReaen

Hey,
I have installed Code Blocks nightly build 4893 with wxWidgets 2.8.7 and MinGW 5.1
I am trying to build the default dialog in wxWidgets application option. But i get an error message that: ld.exe                cannot find -lwxmswd_core...

The build log is as follows:
----------------------------------------
mingw32-g++.exe -LD:\Projects\wxWidgets-2.8.7\lib\gcc_dll -LD:\MinGW\lib -LD:\Projects\wxWidgets-2.8.7\lib\codeblocks  -o bin\Debug\project1.exe obj\Debug\project1Main.o obj\Debug\project1App.o  obj\Debug\resource.res   -lwxmsw28d_core -lwxbase28d -lwxpngd -lwxzlibd  -mwindows
D:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw28d_core
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 3 seconds)
1 errors, 0 warnings


My wxWidgets is at D:\Projects\wxWidgets-2.8.7
MinGw is at D:\MinGW
CodeBlocks is at D:\Projects

I followed the steps given in this tutorial: http://www.seebeck.com.ve/wink.html

Can someone please help???? I seriously want to build project with dialog in CB for my cross platform frontend project... :(

MortenMacFly

Quote from: gReaen on February 23, 2008, 12:41:43 PM
But i get an error message that: ld.exe                cannot find -lwxmswd_core...
You did compile wx as monolithic version but want to use it as non-monolithic (component based) in your project. You basically either compiled wx wrong (if you want to stay component based) or setup your C::B project wrong (if you had monolithic in mind).

Quote from: gReaen on February 23, 2008, 12:41:43 PM
I followed the steps given in this tutorial: http://www.seebeck.com.ve/wink.html
I have never seen this tutorial and it's most likely non-official at least not of us. I strongly suggest you do what's written in the WiKi of Code::Blocks and not any 3rd party pooper webpage. If you follow the WiKi steps you will:

1.) get a monolitic wx version and
2.) using the wx wizard bundled with a recent nightly you will be able to setup a wx project properly.

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]

gReaen

I uninstalled all the previous installations. I followed the Wikipedia method of installing nightly build of CodeBlocks. But i still get the same error. Also, even if i use wxmsw28u_gcc_cb.dll, i get an option asking link to wxWidgets library when i start a new project and not able to proceed without providing the link. Is this valid?  :(

TDragon

Try following the directions in the wxWindowsQuickRef, linked directly from the User Documentation page in the Wiki.
[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)