User forums > General (but related to Code::Blocks)
TDM's unofficial GCC 4.2.0 for MinGW (now with OpenMP, Fortran and Obj-C)
patlecat:
--- Quote from: stahta01 on May 19, 2007, 11:55:40 pm ---Since, you do not know the difference between an IDE and an Compiler, I have no idea if it will bring you anything.
Tim S
--- End quote ---
Oho an angry message from an angry man :lol: But thanks for the logging tip. And I do have no experience with CodeBlocks, that is true.
stahta01:
--- Quote from: patlecat on May 19, 2007, 11:59:00 pm ---
--- Quote from: stahta01 on May 19, 2007, 11:55:40 pm ---Since, you do not know the difference between an IDE and an Compiler, I have no idea if it will bring you anything.
Tim S
--- End quote ---
Oho an angry message from an angry man :lol: But thanks anyways for nothing.
--- End quote ---
It was not angry, it just showed you that I thought you do NOT know as much as you think you do.
I retract my offer to help.
Tim S
patlecat:
ok this is the full compiler log:
--- Code: ---mingw32-gcc-4.2.0.exe -Lh:\MinGW\lib -LH:\wxWidgets-2.8.4\lib -LH:\wxWidgets-2.8.4\lib\gcc_lib -o bin\Release\consoleTest.exe obj\Release\main.o -s -s
obj\Release\main.o:main.cpp:(.text+0x30): undefined reference to `std::ios_base::Init::Init()'
obj\Release\main.o:main.cpp:(.text+0x3e): undefined reference to `std::ios_base::Init::~Init()'
obj\Release\main.o:main.cpp:(.text+0x99): undefined reference to `std::cout'
obj\Release\main.o:main.cpp:(.text+0x9e): undefined reference to `std::basic_ostream >& std::__ostream_insert >(std::basic_ostream >&, char const*, int)'
obj\Release\main.o:main.cpp:(.text+0xa5): undefined reference to `std::cout'
obj\Release\main.o:main.cpp:(.text+0xaa): undefined reference to `std::basic_ostream >& std::endl >(std::basic_ostream
> >&)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
6 errors, 0 warnings
--- End code ---
As I said before I don't think that this is a problem of TDragons GCC4.2 but rather of CodeBlocks.
stahta01:
--- Quote from: AmR EiSa on May 19, 2007, 03:08:01 am ---Hello
:?
did u try build console app by c++ by it ?
by this code only :(
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
i got that error
c:\program files\codeblocks\bin\..\lib\gcc\mingw32\4.2.0\..\..\..\..\include\c++\4.2.0\cwctype:90: error: '::iswblank' has not been declared
:: === Build finished: 1 errors, 0 warnings ===
it's very strang :(
i have last build
AmR EiSa
--- End quote ---
@TDragon and AmR EiSa
I installed mingw-runtime-3.11.tar.gz over my minGW installation and it fixed the problem.
Before that it was mingw-runtime-3.10.tar.gz which is the default minGW candidate runtime right now.
Tim S
You may need to edit c++config.h header in include\c++\4.2.0\mingw32\bits
It maybe correct to comment out _GLIBCXX_HAVE_ISWBLANK.
I think someone needs to confirm or deny whether libstdc++ has the iswblank fuction.
It's beyond my current knowledge level.
If, libstdc++ does not have iswblank then commentting out the define of _GLIBCXX_HAVE_ISWBLANK seems to fix the issue.
Note, I could not find the debug version of libstdc++, but no idea if that relates to this issue or not.
The GLIB seems to be is called libstdc++ in minGW GCC.
Possibly Bad code below, that causes error message of "'::iswblank' has not been declared" on my computer.
/* Defined if iswblank exists. */
#define _GLIBCXX_HAVE_ISWBLANK 1
Possibly Fixed code in c++config.h below; this fixes the error on my computer.
/* Define to 1 if you have the `iswblank' function. */
/* #undef _GLIBCXX_HAVE_ISWBLANK */
Tim S
heromyth:
--- Quote from: patlecat on May 19, 2007, 02:10:13 pm ---I too have errors compiling the above mentioned simplest console program:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
...and got the following errors in CodeBlocks:
--- Code: ---:: === consoleTest, Release ===
obj\Release\main.o:main.cpp:(.text+0x30):: undefined reference to `std::ios_base::Init::Init()'
obj\Release\main.o:main.cpp:(.text+0x3e):: undefined reference to `std::ios_base::Init::~Init()'
obj\Release\main.o:main.cpp:(.text+0x99):: undefined reference to `std::cout'
obj\Release\main.o:main.cpp:(.text+0x9e):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj\Release\main.o:main.cpp:(.text+0xa5):: undefined reference to `std::cout'
obj\Release\main.o:main.cpp:(.text+0xaa):: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
:: === Build finished: 6 errors, 0 warnings ===
--- End code ---
So, what is wrong??
--- End quote ---
I think this problem exists in the most of Unofficial GCC for MinGW. To use it correctly, you must know the place where the the OLD MingW which is used to build the new Unofficial one locate. If you place Unofficial one at wrong place, you may get these errors. For example, my OLD MingW is in D:\mingw, so my new built MingW should be there.
I have ever built a copy gcc. That's what I have found. However, I havn't yet found what happens to this :(.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version