User forums > Using Code::Blocks

undefined reference to `wxCriticalSection::Enter()' when debug compiling

<< < (2/3) > >>

GemmaB89:
Yeah, I'd rather do it that way, but this place: https://wiki.wxwidgets.org/CodeBlocks_Setup_Guide

says:


--- Quote --- If your makefile.gcc (in my version on line 7) includes config.gcc, your command line parameters will be overriden by the config-file. Thus edit the compiler settings in config.gcc to reflect your choice.
--- End quote ---

I will try compiling again with the options on the command line too though.

Edit: Compiled, but same problem of missing appropriate .a file. Used:

>mingw32-make.exe -f makefile.gcc clean USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=debug UNICODE=1

GemmaB89:
I ran a clean and compiled again, this time saving the entire compile output:

(too big to post, see: http://pastebin.com/Bg3rRnic)


I then searched it for "libwxmsw30ud.a" which I'm guessing is the name of the lib I want, based on the name of the release version, and it shows up, but only as a file to be removed in the clean :/

So if the clean thinks it needs removing, why doesn't the build mention it?

BlueHazzard:
well the build didn't complete:

--- Code: ---../../src/common/wxcrt.cpp: In function 'int wxVsprintf(wchar_t*, const wxString&, va_list)':
../../src/common/wxcrt.cpp:663:56: error: invalid conversion from 'const wchar_t*' to 'size_t {aka unsigned int}' [-fpermissive]
../../src/common/wxcrt.cpp:663:56: error: cannot convert 'va_list {aka char*}' to 'const wchar_t*' for argument '3' to 'int vswprintf(wchar_t*, size_t, const wchar_t*, char*)'
../../src/common/wxcrt.cpp:673:1: warning: control reaches end of non-void function [-Wreturn-type]
mingw32-make.exe: *** [gcc_mswuddll\monodll_wxcrt.o] Error 1
--- End code ---

i have no clue (not the time to look into it) what the error is, and this is the wrong place to ask such questions ( a wx forum would be the better place, it could be possible that this topic gets locked, because it violates the forum rules...)

greetings

stahta01:
I see you ran clean twice; did you build the wxWidgets in the wall of text anywhere?

Edit: Found the build command; I suggest NOT editing the wx config file and finding where you did it and undo it.

Edit2: Please read the directions before following next time. You are using about 10 years old directions that is very likely wrong for 3.0 or 2.9 wxWidgets!

--- Quote ---This page describes the steps I took in order to get Code::Blocks working with a homemade wxWidgets. I used the Code::Blocks+MINGW 1.0 bundle and wxWidgets 2.6.

--- End quote ---

Edit3: The error looks close to the Unicode issues that started with wxWidgets 2.9; so, I would guess you told wxWidgets to build a non unicode build which does NOT work very well with 3.0 wxWidgets.

Tim S.


--- Quote from: GemmaB89 on June 23, 2015, 09:37:20 pm ---I ran a clean and compiled again, this time saving the entire compile output:

(too big to post, see: http://pastebin.com/Bg3rRnic)


I then searched it for "libwxmsw30ud.a" which I'm guessing is the name of the lib I want, based on the name of the release version, and it shows up, but only as a file to be removed in the clean :/

So if the clean thinks it needs removing, why doesn't the build mention it?

--- End quote ---

GemmaB89:
This all sounds promising, especially me using 10 year old instructions, Do'h!

I will look these suggestions, and will find a wx forum, it's clear now that it's not a codeblocks problem, apologies!

Thanks :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version