Anyway, I simply need to change the icon of my exe. In DevC++ this method (the standard method) works fine, but there's some problem to do with MingW, apparently.
I get these errors when I link my project to my resources.rc file, that only has this:
DEFAULT_ICON ICON "fighterstw.ico"
The errors are as followings:
Code: Select all
||=== FightersTW, default ===|
D:\CodeBlocks\MinGW\lib\gcc\mingw32\3.4.5\include\stddef.h|213|error: expected constructor, destructor, or type conversion before string constant|
D:\CodeBlocks\MinGW\include\stdio.h|191|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|191|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|202|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|202|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|206|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|206|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|216|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|216|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|217|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|217|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|297|error: expected constructor, destructor, or type conversion before "fread"|
D:\CodeBlocks\MinGW\include\stdio.h|298|error: expected constructor, destructor, or type conversion before "fwrite"|
D:\CodeBlocks\MinGW\include\stdio.h|446|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|446|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|450|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|450|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|480|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|480|error: ISO C++ forbids declaration of `n' with no type|
D:\CodeBlocks\MinGW\include\stdio.h|482|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\stdio.h|483|error: ISO C++ forbids declaration of `n' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|171|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|171|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|189|error: expected constructor, destructor, or type conversion before "wcsftime"|
D:\CodeBlocks\MinGW\include\wchar.h|204|error: expected constructor, destructor, or type conversion before "wcscspn"|
D:\CodeBlocks\MinGW\include\wchar.h|206|error: expected constructor, destructor, or type conversion before "wcslen"|
D:\CodeBlocks\MinGW\include\wchar.h|207|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|207|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|208|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|208|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|209|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|209|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|212|error: expected constructor, destructor, or type conversion before "wcsspn"|
D:\CodeBlocks\MinGW\include\wchar.h|215|error: expected constructor, destructor, or type conversion before "wcsxfrm"|
D:\CodeBlocks\MinGW\include\wchar.h|229|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|229|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|230|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|230|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|236|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|236|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|237|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|237|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|253|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|253|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|254|error: `size_t' has not been declared|
D:\CodeBlocks\MinGW\include\wchar.h|254|error: ISO C++ forbids declaration of `parameter' with no type|
D:\CodeBlocks\MinGW\include\wchar.h|277|error: expected constructor, destructor, or type conversion before "mbrlen"|
D:\CodeBlocks\MinGW\include\wchar.h|279|error: expected constructor, destructor, or type conversion before "mbrtowc"|
D:\CodeBlocks\MinGW\include\wchar.h|281|error: expected constructor, destructor, or type conversion before "mbsrtowcs"|
D:\CodeBlocks\MinGW\include\wchar.h|283|error: expected constructor, destructor, or type conversion before "wcrtomb"|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|I have it all linked, too, to the MingW.
Settings are like this:
Search Directories:
D:\CodeBlocks\MinGW\include
D:\CodeBlocks\MinGW\include\c++\3.4.5
D:\CodeBlocks\MinGW\include\c++\3.4.5\mingw32
D:\CodeBlocks\MinGW\include\c++\3.4.5\backward
D:\CodeBlocks\MinGW\lib\gcc\mingw32\3.4.5\include
Linker:
D:\CodeBlocks\MinGW\lib
D:\CodeBlocks\MinGW\lib\gcc\mingw32\3.4.5
Any ideas? I used the Code::Blocks that is bundled with the MingW that comes with it, so it should work??
I've searched all over, and I found no help.
Thank you in advance.

