Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

new WxWidgets project build failed

<< < (2/3) > >>

stahta01:
I do NOT believe you!!

qrees:

--- Quote from: stahta01 on November 14, 2010, 08:50:35 pm ---I do NOT believe you!!

--- End quote ---
Which part you don't believe? ;)

stahta01:

--- Quote from: qrees on November 14, 2010, 07:51:13 pm ---G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16'

--- End quote ---

The above shows that you were using MinGW 3.4.5 version of the Compiler; or you have your compiler completely damaged.

Tim S.

qrees:

--- Quote from: stahta01 on November 14, 2010, 08:57:29 pm ---
--- Quote from: qrees on November 14, 2010, 07:51:13 pm ---G:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../libmingw32.a(main.o):main.c:(.text+0xd2): undefined reference to `WinMain@16'

--- End quote ---

The above shows that you were using MinGW 3.4.5 version of the Compiler; or you have you compiler completely damaged.

Tim S.

--- End quote ---
Yes, but I've reinstalled mingw, wxWidgets and Code::Blocks to newer versions after your posts and the result is the same.

--- Code: ----------------- Build: Debug in test ---------------

mingw32-g++.exe -LG:\MinGW-4\wxWidgets\wxWidgets2.8\lib\gcc_dll -LG:\MinGW-4\bin  -o bin\Debug\test.exe  obj\Debug\resource.res  -mthreads  -lwxmsw28d  -mwindows
g:/mingw-4/bin/../lib/gcc/mingw32/4.5.0/../../../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, 3 seconds)
1 errors, 0 warnings

--- End code ---

stahta01:
I can NOT duplicate the problem; using Code::Blocks 10.05.

1. Have "Skip next Page" Unchecked
2. Select "wxWidgets 2.8.x"
3. Project Title "TestwxSmith" with valid path that has no spaces or special characters
4. Left blank Author info
5. Select WxSmith gui builder and Application type: Dialog based
6. Used "$(#wx)" as wxWidgets location
7. Checked both Debug and Release
8. Checked Use DLL, Monolithic, and Configure Advanced Options
9. Verified that __WXDEUG__ is not checked and GUI Mode is checked for both targets

And, I get several source code files each of them has code in them.

What warning messages do you get doing the above steps?
I got several because I only have Unicode wxWidgets installed.


The below is a Guess on My part.
Note: You are likely to have edited the templates and made them blank.
The simplest  solution is to exit out of Code::Blocks; uninstall it and delete the Configuration files.
And, then re-install Code::Blocks.

%APPDATA%\Codeblocks should have the configuration files inside them. You must manually delete or rename the Config the un-installing will not remove them.


Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version