User forums > Using Code::Blocks
About wxSmith and compiling on Linux
nime1:
Hello,
1) I would like to know is this my fault (as usually) or wxSmith can't yet propagate events like KeyDown, GotFocus and so to textBoxes, listBoxes, comboBoxes to be achievable from code. For now I havent those events listed on propertyes for those controls but I would like to.
Is this possible to get with wxSmith?
2) I made small program at windows where in IDE and out of them program works OK.
Then I load same project (*.cbp) to Linux. I get that whole project looks properly but I can't compile them. On windows I have c::B 10.05, on Linux 8.02.
I get folowing message:
-------------- Build: Release in aaa ---------------
Compiling: aaaMain.cpp
cc1plus: error: unrecognized command line option "-mthreads"
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
What I need to do for successfully compiling on both OSes?
oBFusCATed:
Read carefully: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F !!!
p.s. -mthread is windows only flag
nime1:
Well, this dont helps me much as I am a novice.
After enabling full loging I get this (on Linux Ubuntu 9.10):
-------------- Build: Release in aaa ---------------
g++ -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -O2 -IC:/wxWidgets-2.8.10/include -IC:/wxWidgets-2.8.10/contrib/include -IC:/wxWidgets-2.8.10/lib/gcc_dll/mswu -c "/media/Win7/aaa (copy)/aaaMain.cpp" -o obj/Release/aaaMain.o
cc1plus: error: unrecognized command line option "-mthreads"
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
And I still dont know how to remove this -mthreads out of project and why they are here (obviously commes automatically). If i remove this somehow would windows compiling then be OK?
I also expect some concrete help (ansewer) regarding wxSmith.
Jenna:
Create a sample wxWidgets-application with the wizard and see which flags are set there.
You can not use a windows-project directly on linux, due to other defines and possibly libs.
nime1:
Thank you jens, this is wery important and helpful information (fact).
I see now, many things from windows wizard (which make my project automatically) commes to linux which messes compiler.
OK, my wx in linux works good so I should make new project with same files to have similar program on both platforms? If this is all - not a big deal.
And please, regarding wxSmith, how to get key and mouse events for text, combo, listboxes through them?
Or ansewer that this don't go will be also good if don't go.
Navigation
[0] Message Index
[#] Next page
Go to full version