User forums > General (but related to Code::Blocks)
TDM's GCC 4.2.1 (now with iconv, Obj-C++ and Treelang)
Ramazan Kartal:
Hi,
I have a problem with gcc 4.2.1. Whenever I try to compile one of my source files I get:
error: no iconv implementation, cannot convert from latin5 to UTF-8
Command line is as follows:
mingw32-g++.exe -DWINVER=0x0500 -g -O0 -fno-inline -DDEBUG1 -Wall -fexceptions -mthreads -finput-charset=latin5 -IC:\MinGW\include -c K.cpp -o K.o
I guess this is related to "-finput-charset=latin5". I have to use this parameter since my sources have some Turkish characters. Can I correct this problem by copying "libiconv*.dll" from my Gnu Win32 utilities to somewhere in Mingw tree?
Regards
Ramazan Kartal
TDragon:
--- Quote from: imbaczek on July 26, 2007, 10:11:47 am ---This and previous version breaks when a directory of the same name as a standard include is on the include path:
--- Code: ---In file included from rts\System\Demo.cpp:12:
rts/Game/GameSetup.h:5:15: error: rts/map: Permission denied
--- End code ---
line 5 is #include <map> and rts/Map is a directory. Workaround is to add -I/standard/include/dir as a first command line option, so it's not critical, but quite annoying.
--- End quote ---
Confirmed. I'll see about creating a GCC bug report.
--- Quote from: Ramazan Kartal on July 26, 2007, 05:12:00 pm ---Can I correct this problem by copying "libiconv*.dll" from my Gnu Win32 utilities to somewhere in Mingw tree?
--- End quote ---
No, I'm pretty sure GCC has to be linked to libiconv when built. Look for another release in the near future that is!
-John E. / TDM
prilenko:
i installed the gcc 4.2.1,it worked well,but i found that the dbg can not work.just as follow:
int main()
{
int i=8,j=9;
int k=i+j;
cout<<"k="<<k<<endl;
return 0;
}
when i debug ,the watch window should show the values of i,j and k,but valued showed in the window are obviously wrong .but when i replaced Gcc by 3.4.5,it can correctly show the values.i can not understand why?
TDragon:
The format of the debugging information produced by GCC has probably changed since 3.4.5. Have you tried upgrading to MinGW's GDB 6.6?
Ramazan Kartal:
Hi,
--- Quote from: 20-40 on July 26, 2007, 11:54:40 pm ---
--- Quote from: Ramazan Kartal on July 26, 2007, 05:12:00 pm ---error: no iconv implementation, cannot convert from latin5 to UTF-8
--- End quote ---
Best solution is to compile one by yourself in msys/mingw. UTF-8 conversion depends on many things (mingw-runtime and winapi), so - it's more a problem of platform's subsystem (MinGW is "under" Windows, he isn't standalone, right?). BTW, compiler itself can be linked without any problems with static libiconv.a and I suggest you to avoid dll-hell doing the same. Libiconv has nasty circular dependency with libintl from gettext /chicken or egg situation/ and because of that (and many other things) iconv has never ever been properly compiled for MinGW.
--- End quote ---
Actually I don't use libiconv.dll in my programs, it is only required by gcc itself if I specify "-finput-charset=latin5" as a parameter, which I should. However, I use libpng.dll and zlib1.dll. You're right, it can cause "dll hells", for that I am planning to use "LoadLibrary".
--- Quote ---
--- Quote ---Quote from: Ramazan Kartal on 26 July 2007, 22:12:00
Can I correct this problem by copying "libiconv*.dll" from my Gnu Win32 utilities to somewhere in Mingw tree?
No, I'm pretty sure GCC has to be linked to libiconv when built. Look for another release in the near future that is!
--- End quote ---
--- End quote ---
I would be grateful if you provide one.
Regards,
Ramazan Kartal
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version