* build error on OSF : must specify a type --- (badparsedecl ! (Can build on Solaris and HP)
@ 2001-11-28 9:20 Chen, HuoPing (Danny)
2001-11-28 14:04 ` ed.vogel
0 siblings, 1 reply; 4+ messages in thread
From: Chen, HuoPing (Danny) @ 2001-11-28 9:20 UTC (permalink / raw)
Hi, I experienced the following errors when I build my files with Rosette
function calls on DEC machine.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc: Error: api_charset.c, line 119: In this declaration,
"InternalEncodingConverter" must specify a type. (badparsedecl)
InternalEncodingConverter fromCP874(cp874Source,
ExternalEncoding::CP874(), InternalEncoding::Unicode20());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My DEC environment is:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OSF1 V5.1 732 alpha
C++ compiler is:
Compaq C++ V6.3-008 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-008 (cxx) cxx Driver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I can build it successfully on SUN Solaris 5.8 and HP11.
Your help is greatly appreciated!
Danny Chen.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: build error on OSF : must specify a type --- (badparsedecl ! (Can build on Solaris and HP)
2001-11-28 9:20 build error on OSF : must specify a type --- (badparsedecl ! (Can build on Solaris and HP) Chen, HuoPing (Danny)
@ 2001-11-28 14:04 ` ed.vogel
2001-11-29 1:12 ` Chen, HuoPing (Danny)
0 siblings, 1 reply; 4+ messages in thread
From: ed.vogel @ 2001-11-28 14:04 UTC (permalink / raw)
This message is from the C (not the C++) compiler.
Can you post a small program that demonstrates
the problem?
Ed Vogel
Compaq C Engineering
"Chen, HuoPing (Danny)" <hpchen@homail.ho.lucent.com> wrote in message
news:9u2a71$epr@nntpb.cb.lucent.com...
| Hi, I experienced the following errors when I build my files with Rosette
| function calls on DEC machine.
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| cc: Error: api_charset.c, line 119: In this declaration,
| "InternalEncodingConverter" must specify a type. (badparsedecl)
| InternalEncodingConverter fromCP874(cp874Source,
| ExternalEncoding::CP874(), InternalEncoding::Unicode20());
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| My DEC environment is:
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| OSF1 V5.1 732 alpha
| C++ compiler is:
| Compaq C++ V6.3-008 for Compaq Tru64 UNIX V5.1 (Rev. 732)
| Compiler Driver V6.3-008 (cxx) cxx Driver
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
| I can build it successfully on SUN Solaris 5.8 and HP11.
|
|
| Your help is greatly appreciated!
|
| Danny Chen.
|
|
|
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: build error on OSF : must specify a type --- (badparsedecl ! (Can build on Solaris and HP)
2001-11-28 14:04 ` ed.vogel
@ 2001-11-29 1:12 ` Chen, HuoPing (Danny)
2001-11-29 15:10 ` ed.vogel
0 siblings, 1 reply; 4+ messages in thread
From: Chen, HuoPing (Danny) @ 2001-11-29 1:12 UTC (permalink / raw)
Ed,
My program is really a c file, and we just use C++ compiler bacause our
3rd party library we used in this file are C++ lib.
My program like the following:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <BasisTech/unicode.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <string.h>
#include ....
....
static void convert_in_cp874(char* out, int out_len, char* in)
{
BufferCharSource cp874Source(in); // Error is here!!!
InternalEncodingConverter fromCP874(cp874Source,
ExternalEncoding::CP874(), InternalEncoding::Unicode20()); // Error here
BufferCharSink outSink(out, out_len); // Error here
InternalEncodingConverterSink sinkToUTF8(InternalEncoding::Unicode20(),
ExternalEncoding::Unicode20UTF8(), outSink); // Error here
sinkToUTF8.Put(fromCP874);
}
EXPORT int abp_set_localcharset(int page_number) {
switch (page_number) {
case ARB_CP874:
convert_in = convert_in_cp874;
convert_out = convert_out_cp874;
break;
case ...
...
}
#ifdef __cplusplus
}
#endif
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Regards,
Danny.
<ed.vogel@compaq.com> wrote in message
news:0a6N7.2038$RL6.62621@news.cpqcorp.net...
> This message is from the C (not the C++) compiler.
>
> Can you post a small program that demonstrates
> the problem?
>
> Ed Vogel
> Compaq C Engineering
>
>
>
> "Chen, HuoPing (Danny)" <hpchen@homail.ho.lucent.com> wrote in message
> news:9u2a71$epr@nntpb.cb.lucent.com...
> | Hi, I experienced the following errors when I build my files with
Rosette
> | function calls on DEC machine.
> |
> |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | cc: Error: api_charset.c, line 119: In this declaration,
> | "InternalEncodingConverter" must specify a type. (badparsedecl)
> | InternalEncodingConverter fromCP874(cp874Source,
> | ExternalEncoding::CP874(), InternalEncoding::Unicode20());
> |
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | My DEC environment is:
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | OSF1 V5.1 732 alpha
> | C++ compiler is:
> | Compaq C++ V6.3-008 for Compaq Tru64 UNIX V5.1 (Rev. 732)
> | Compiler Driver V6.3-008 (cxx) cxx Driver
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> |
> |
> | I can build it successfully on SUN Solaris 5.8 and HP11.
> |
> |
> | Your help is greatly appreciated!
> |
> | Danny Chen.
> |
> |
> |
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: build error on OSF : must specify a type --- (badparsedecl ! (Can build on Solaris and HP)
2001-11-29 1:12 ` Chen, HuoPing (Danny)
@ 2001-11-29 15:10 ` ed.vogel
0 siblings, 0 replies; 4+ messages in thread
From: ed.vogel @ 2001-11-29 15:10 UTC (permalink / raw)
Danny and I have exchanged mail. It seems that the source was a C++
source
but the file extension was .c. Because of the .c extension, the C
compiler
was invoked to process the file.
Danny resolved the problem by changing the extension to .cpp. An
alternate suggestion would be to involke the C++ compiler with the
-x cxx option.
Ed
"Chen, HuoPing (Danny)" <hpchen@homail.ho.lucent.com> wrote in message
news:9u41vp$jse@nntpb.cb.lucent.com...
| Ed,
|
| My program is really a c file, and we just use C++ compiler bacause
our
| 3rd party library we used in this file are C++ lib.
| My program like the following:
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| #include <BasisTech/unicode.h>
| #ifdef __cplusplus
| extern "C" {
| #endif
|
| #include <string.h>
| #include ....
|
| ....
| static void convert_in_cp874(char* out, int out_len, char* in)
| {
| BufferCharSource cp874Source(in); // Error is here!!!
| InternalEncodingConverter fromCP874(cp874Source,
| ExternalEncoding::CP874(), InternalEncoding::Unicode20()); // Error here
| BufferCharSink outSink(out, out_len); // Error here
| InternalEncodingConverterSink sinkToUTF8(InternalEncoding::Unicode20(),
| ExternalEncoding::Unicode20UTF8(), outSink); // Error here
| sinkToUTF8.Put(fromCP874);
| }
|
| EXPORT int abp_set_localcharset(int page_number) {
| switch (page_number) {
| case ARB_CP874:
| convert_in = convert_in_cp874;
| convert_out = convert_out_cp874;
| break;
| case ...
| ...
| }
|
| #ifdef __cplusplus
| }
| #endif
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
| Regards,
| Danny.
|
|
|
| <ed.vogel@compaq.com> wrote in message
| news:0a6N7.2038$RL6.62621@news.cpqcorp.net...
| > This message is from the C (not the C++) compiler.
| >
| > Can you post a small program that demonstrates
| > the problem?
| >
| > Ed Vogel
| > Compaq C Engineering
| >
| >
| >
| > "Chen, HuoPing (Danny)" <hpchen@homail.ho.lucent.com> wrote in message
| > news:9u2a71$epr@nntpb.cb.lucent.com...
| > | Hi, I experienced the following errors when I build my files with
| Rosette
| > | function calls on DEC machine.
| > |
| > |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| > | cc: Error: api_charset.c, line 119: In this declaration,
| > | "InternalEncodingConverter" must specify a type. (badparsedecl)
| > | InternalEncodingConverter fromCP874(cp874Source,
| > | ExternalEncoding::CP874(), InternalEncoding::Unicode20());
| > |
| >
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| > | My DEC environment is:
| > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| > | OSF1 V5.1 732 alpha
| > | C++ compiler is:
| > | Compaq C++ V6.3-008 for Compaq Tru64 UNIX V5.1 (Rev. 732)
| > | Compiler Driver V6.3-008 (cxx) cxx Driver
| > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| > |
| > |
| > | I can build it successfully on SUN Solaris 5.8 and HP11.
| > |
| > |
| > | Your help is greatly appreciated!
| > |
| > | Danny Chen.
| > |
| > |
| > |
| >
| >
|
|
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-11-29 15:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-28 9:20 build error on OSF : must specify a type --- (badparsedecl ! (Can build on Solaris and HP) Chen, HuoPing (Danny)
2001-11-28 14:04 ` ed.vogel
2001-11-29 1:12 ` Chen, HuoPing (Danny)
2001-11-29 15:10 ` ed.vogel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox