Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
new WxWidgets project build failed
qrees:
Ok, I've installed WxWidgets 2.8 and Code::Blocks 10.05 with WxSmith plugin and have some problems with compiling programs or rather creating new projects.
1. I select new WxWidget project.
2. Select WxWidgets version 2.8
3. Select WxSmith gui builder and Application type: Dialog based
4. Select correct WxWidgets location
5. Select debug and release build, dll library version, no Miscellaneus options, no additional libraries.
6. Project gets created with example dialog and text "Welcome to WxWidgets", great.
7. Click "build" - FAIL -
--- Code: ---Compiling: resource.rc
Linking executable: bin\Debug\ex_test.exe
(...)./libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings
--- End code ---
Not so strage because all source files are all empty (all created cpp and h files are empty). There is something wrong with wizard, or it's normal??
stahta01:
Learn to post in the correct forum in the future.
Please continue this post in this thread; in time a admin will move it to the proper forum.
Note: You are not as likely to get help in this forum so you will need to wait more for help.
Turn on Full Compiler Logging and post the rebuild log
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
This will help to confirm if the compiler setup is a cause or not.
What OS and its version are you using?
Did you Compile wxWidgets or install wxPack?
If compiled wxWidgets, what command did you use?
If installed wxPack, what version did you use?
Tim S.
qrees:
--- Quote from: stahta01 on November 14, 2010, 07:40:06 pm ---Learn to post in the correct forum in the future.
Please continue this post in this thread; in time a admin will move it to the proper forum.
Note: You are not as likely to get help in this forum so you will need to wait more for help.
Turn on Full Compiler Logging and post the rebuild log
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F
This will help to confirm if the compiler setup is a cause or not.
What OS and its version are you using?
Did you Compile wxWidgets or install wxPack?
Tim S.
--- End quote ---
Sorry for posting in wrong forum.
This is log for build command:
--- Code: ---windres.exe -i J:\Dropbox\projekty\test\resource.rc -J rc -o obj\Debug\resource.res -O coff -IG:\MinGW\wxWidgets\wxWidgets2.8\include -IG:\MinGW\wxWidgets\wxWidgets2.8\lib\gcc_dll\mswd -IG:\MinGW\bin
mingw32-g++.exe -LG:\MinGW\wxWidgets\wxWidgets2.8\lib\gcc_dll -LG:\MinGW\bin -o bin\Debug\test.exe obj\Debug\resource.res -mthreads -lwxmsw28d -mwindows
G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings
--- End code ---
Windows XP Pro SP3
I used wxPack_v2.8.11.03.exe
stahta01:
--- Quote from: qrees on November 14, 2010, 07:51:13 pm ---
Windows XP Pro SP3
I used wxPack_v2.8.11.03.exe
--- End quote ---
Use an Compiler/wxPack combination that works together.
I believe that wxPack is using DW2 instead of SJLJ as used in MinGW GCC 3.4.5.
Do you know that this is NOT your problem?
From http://wxpack.sourceforge.net/
--- Quote ---10/18/2010
There is a new release of wxPack that supports wxWidgets v2.8.11. It now supports OBDC connections. This release only has MinGW GCC v4.4.1-tdm_dw2 and Microsoft Visual C++ 8.0 libraries included. Please give feedback.
--- End quote ---
Tim S.
qrees:
--- Quote from: stahta01 on November 14, 2010, 08:14:03 pm ---Use an Compiler/wxPack combination that works together.
I believe that wxPack is using DW2 instead of SJLJ as used in MinGW GCC 3.4.5.
Do you know that this is NOT your problem?
From http://wxpack.sourceforge.net/
--- Quote ---10/18/2010
There is a new release of wxPack that supports wxWidgets v2.8.11. It now supports OBDC connections. This release only has MinGW GCC v4.4.1-tdm_dw2 and Microsoft Visual C++ 8.0 libraries included. Please give feedback.
--- End quote ---
Tim S.
--- End quote ---
I don't think this is WxWidgets poblem. As I said before, the files (*.cpp and *.h) that are generated by Code::Blocks wizard are empty, and Code::Blocks never tries to compile them.
Also I'm using mingw with g++ version 4.5.0 which should be compatile with WxPAck.
Also I believe that I have never version (or the same one) than described in quoted by you post.
Navigation
[0] Message Index
[#] Next page
Go to full version