wcscpy command

Hi,

I’m doing #include <wchar.h> in order to use the wcscpy() command.
In this file there are no other includes.
I’m getting errors on the content of this wchar.h file. such as unknown
structure and more.

  • Which other #include should I add before it?
  • You should add this info to the help.

Thanks


Benzy Gabay

Benzy Gabay <bgabay@everbee.com> wrote:

I’m doing #include <wchar.h> in order to use the wcscpy() command.
In this file there are no other includes.

Having a look, there is a conditional include of <platform.h>. If you
don’t have any includes, perhaps you have an overwritten the file by accident?

I’m getting errors on the content of this wchar.h file. such as unknown
structure and more.

You could try adding the #include <platform.h> before hand, but as I mentioned
it’s already done in the header. Are you using QNX 6.1?

-Adam

I’m using qnx 6.1 which is ap-graded from qnx 6.0 on x86 machine.
The <wchar.h> is the only include.
doing include platform.h does not help. tough it reduces the number of
errors.

any more ideas?

Benz
“Operating System for Tech Supp” <os@qnx.com> wrote in message
news:9nt81h$shi$1@nntp.qnx.com

Benzy Gabay <> bgabay@everbee.com> > wrote:

I’m doing #include <wchar.h> in order to use the wcscpy() command.
In this file there are no other includes.

Having a look, there is a conditional include of <platform.h>. If you
don’t have any includes, perhaps you have an overwritten the file by
accident?

I’m getting errors on the content of this wchar.h file. such as unknown
structure and more.

You could try adding the #include <platform.h> before hand, but as I
mentioned
it’s already done in the header. Are you using QNX 6.1?

-Adam

Benzy Gabay <bgabay@everbee.com> wrote:

I’m using qnx 6.1 which is ap-graded from qnx 6.0 on x86 machine.
The <wchar.h> is the only include.
doing include platform.h does not help. tough it reduces the number of
errors.

No what I meant was that the header file <wchar.h> has inside it, an
include for <sys/platform.h>. Check your header file, if it does not
have this include inside of wchar.h, then perhaps the file has been
overwritten. Code using wchar.h , seems to compile fine on 6.1 →
Perhaps you should post you wchar.h file so we can look at it.
(please don’t use attachments).

-Adam

After including <sys/platform.h>. inside the <wchar.h> , everthing starts
to work.
I dodnt know that there is a meaning of where to put the include file.
before <wchar.h> in my file agienst putting it inside the <wchar.h>
itself.
The second choice made it work.

Benz
“Operating System for Tech Supp” <os@qnx.com> wrote in message
news:9o56mi$qfr$1@nntp.qnx.com

Benzy Gabay <> bgabay@everbee.com> > wrote:
I’m using qnx 6.1 which is ap-graded from qnx 6.0 on x86 machine.
The <wchar.h> is the only include.
doing include platform.h does not help. tough it reduces the number of
errors.

No what I meant was that the header file <wchar.h> has inside it, an
include for <sys/platform.h>. Check your header file, if it does not
have this include inside of wchar.h, then perhaps the file has been
overwritten. Code using wchar.h , seems to compile fine on 6.1 -
Perhaps you should post you wchar.h file so we can look at it.
(please don’t use attachments).

-Adam