How to use GNU gettext with MS Visual C ++?

Is it possible to use GNU gettext with MS Visual C ++? Does anyone know where to find a sample project that compiles in Visual C ++?

Update: Thanks to Sorin Sbarnea for his comments that help me assemble all the parts:

I'm used to the Delphi version of gettext , where you just compile the gnugettext.pas block with your project, so I was just trying to compile gettext.h with my MSVC project. It may work for other C ++ compilers, but not with MSVC.

Frequently Asked Questions at GNU gettext explains how to do this using MSVC, using precompiled DLLs. But there are no DLL links, and these DLLs are not in the main load. They must be downloaded separately from the ftp site. You will need 2 files for the dll:

And if you need tools to extract strings from exe, you also need:

I have not tried it with MSVC yet, but now I think it will work.

+6
visual-c ++ internationalization localization gettext
source share
2 answers

Clearly, I know many projects that use gettext in MSVC. Also, if you plan to use the GNU gettext runtime in a closed source commercial project, keep in mind that the runtime library is LGPL. This basically means that you need to open the source code of any modification you can make to the gettext runtime library (and not your code).

In addition, gettext utilities use the GPL - but this is not so important because you do not need / do not want to distribute them.

For Win32, you should get gettext runtime from Gnome FTP because the build is newer than GNU.

For open source software, check out PoEdit .

+5
source share

GNU gettext-0.18.3.2 Visual C ++ (MSVC) real-time download , this works well for me.

+1
source share

All Articles