Author Topic: Help with project build  (Read 5358 times)

Offline gReaen

  • Multiple posting newcomer
  • *
  • Posts: 18
Help with project build
« on: February 23, 2008, 12:41:43 pm »
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... :(

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help with project build
« Reply #1 on: February 23, 2008, 02:00:32 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).

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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline gReaen

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Help with project build
« Reply #2 on: February 23, 2008, 02:47:44 pm »
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?  :(

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: Help with project build
« Reply #3 on: February 26, 2008, 02:18:59 am »
Try following the directions in the wxWindowsQuickRef, linked directly from the User Documentation page in the Wiki.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)