Home > Back-end >  Under the Windows version of MinGW compiler iconv function error
Under the Windows version of MinGW compiler iconv function error

Time:01-27

I use Windows version of MinGW, compile a DLL file, can be compiled successfully before, but because of the added character conversion function iconv (), compile-time error, error below

F:/software/mingw/bin/.. B/GCC/i686 - w64 - mingw32/4.7.2/../../../../i686 - w64 - min
Gw32b/.. B \ libiconv (localcharset. O) : localcharset. C: (. The text + 0 x7) : undefined
The reference to ` _imp__GetACP @ 0 '
Collect2. Exe: error: ld returned 1 exit status
Makefile: 195: the recipe for target 'BACnetIP. DLL' failed
Make [1] : * * */BACnetIP. DLL Error 1
The makefile: 70: the recipe for target 'library' failed
Make: * * * (library) Error 2



Initial guess is the lack of corresponding iconv library, could you tell me how to solve this kind of circumstance, or someone with a complete library or Windows version of MinGW

CodePudding user response:

Baidu search relevant keywords,

CodePudding user response:

Iconv () may be special function under Linux, Windows didn't

CodePudding user response:

How do you solve?

CodePudding user response:

Is this libiconv. Lack of iconv library, looking for a or libiconv. DLL on the path, the compiler can find again try, really not line, download the source iconv, myself,
  • Related