Re: Compilation problem



Sorry by long time.
See attachment.

Feel free to request any other file.

2009/5/2 Armin Burgmeier <armin arbur net>
On Thu, 2009-04-30 at 01:09 +0200, Daniel Elstner wrote:
> Hi,
>
> Am Montag, den 27.04.2009, 14:16 -0300 schrieb Fabrício Godoy:
>
> > I can compile for Windows by two ways, using native Windows (I using
> > gtkmm-win32-devel-2.14.3-2.exe) and Linux cross-compilation.
> > Each one appears to be compiled in different ways.
> >
> > The following compiles on native Windows, but not on Linux
> > cross-compilation:
> > Glib::ustring::format(std::setfill('0'), std::setw(2), 30);
>
> Yes, that's a bug if the platform does have std::wostream, which I think
> it does.  It's exactly the same problem which prevented you from using
> ustring::format() for converting std::wstring to Glib::ustring.

When using native MinGW, wide streams don't seem to be supported, though
I didn't check exactly why.

> > The following compiles on Linux cross-compilation, but not on native
> > Windows:
> > Glib::ustring::format(std::setfill(L'0'), std::setw(2), 30);
>
> I am glad to hear that it works when cross-compiling, because that means
> the configure script is correctly doing its autoconf magic.
>
> Armin, perhaps the config.h file that is generated when cross-compiling
> could be used as a starting point for the Visual Studio build?

Yeah, that seems reasonable. Fabrício, can you maybe publish the
config.h which was created during cross-compilation somewhere, so that I
don't have to set up all the cross-compiling stuff myself?

> --Daniel

Armin


/* config.h.  Generated from config.h.in by configure.  */
/* config.h.in.  Generated from configure.ac by autoheader.  */

/* always defined to indicate that i18n is enabled */
#define ENABLE_NLS 1

/* the gettext translation domain */
#define GETTEXT_PACKAGE "network-logger"

/* Define to 1 if you have the `bind_textdomain_codeset' function. */
#define HAVE_BIND_TEXTDOMAIN_CODESET 1

/* Define to 1 if you have the `dcgettext' function. */
#define HAVE_DCGETTEXT 1

/* Define if the GNU gettext() function is already present or preinstalled. */
#define HAVE_GETTEXT 1

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Define if your <locale.h> file defines LC_MESSAGES. */
/* #undef HAVE_LC_MESSAGES */

/* Define to 1 if you have the <locale.h> header file. */
#define HAVE_LOCALE_H 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Define the location where the catalogs will be installed */
#define NETWORK_LOGGER_LOCALEDIR "/usr/local/share/locale"

/* Name of package */
#define PACKAGE "network-logger"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "http://code.google.com/p/network-logger/issues";

/* Define to the full name of this package. */
#define PACKAGE_NAME "Network Logger"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "Network Logger 0.1.0"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "network-logger"

/* Define to the version of this package. */
#define PACKAGE_VERSION "0.1.0"

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Version number of package */
#define VERSION "0.1.0"

/* Define minimum Windows version */
/* #undef WINVER */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]