Compile problems with AIX 4.3.2


Subject: Compile problems with AIX 4.3.2
From: Patrick Berge (pberge@stny.rr.com)
Date: Mon Nov 06 2000 - 19:10:31 CST


Hi,

I am trying to compile Abiword word for my AIX 4.3.2 box. I am sick of
ftping .doc files back and forth between my AIX and Citirix NT box.

I get the following error during the compile:
ut_mbtowc.cpp:
In file included from ut_mbtowc.cpp:23:
ut_mbtowc.h:15: syntax error before `;'
ut_mbtowc.h:20: warning: all member functions in class `UT_Mbtowc' are
private
ut_mbtowc.cpp: In method `void UT_Mbtowc::initialize()':
ut_mbtowc.cpp:32: `m_state' undeclared (first use this function)
ut_mbtowc.cpp:32: (Each undeclared identifier is reported only once
ut_mbtowc.cpp:32: for each function it appears in.)
ut_mbtowc.cpp: In method `int UT_Mbtowc::mbtowc(__wchar_t &, char)':
ut_mbtowc.cpp:57: `mbrtowc' undeclared (first use this function)
gnumake[4]: ***
[/home/GNU/abi-0.7.11/src/AIX_3_001353394C00_OBJ/obj/ut_mbtowc.o
] Error 1

I think the mbtowc.h (shown below) has some typos.

#ifndef UT_MBTOWC_H
#define UT_MBTOWC_H

#include <wchar.h>
#include <limits.h>

#if defined(__BEOS__)
typedef int mbstate_t;
#endif

class UT_Mbtowc
{
  char m_buf[MB_LEN_MAX];
  int m_bufLen;
  mbstate_t m_state;
public:
  void initialize();
  UT_Mbtowc();
  int mbtowc(wchar_t &wc,char mb);
};

#endif // UT_MBTOWC_H



This archive was generated by hypermail 2b25 : Mon Nov 06 2000 - 19:05:11 CST