Operating System - Linux
1752337 Members
5700 Online
108787 Solutions
New Discussion юеВ

Re: Expected file name error: #include _RWSTD_CWCHAR

 
SOLVED
Go to solution
John Dorak
Advisor

Expected file name error: #include _RWSTD_CWCHAR

Getting this error on my build, much of our components are building on HP-UX Itanium now but this one has me stumped. I've tried to include stddef.h but that doesn't help. Any ideas?

Thanks
JJD

aCC -c +DD64 -AA -mt -z -w -DHPUX -DUNIX -DNO_WIN32 -Dhpux -Dunix -I/opt/aCC/include -I/opt/aCC/include/iostream -O -I../include -I/builds/Prebuilt/HPia64/icu/3.2/include -I/builds/Prebuilt/HPia64/xml4c5_5_2-hp/include -I/builds/PXEngine.install/PXEngine/include -c CC_AccessorFactory.cpp
"/opt/aCC/include_std/iosfwd", line 39: catastrophic error #2013: expected a file name
#include _RWSTD_CWCHAR
^

1 catastrophic error detected in the compilation of "CC_AccessorFactory.cpp".
Compilation terminated.
*** Error exit code 4
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: Expected file name error: #include _RWSTD_CWCHAR

> [...] expected a file name

Yeah, I'd've expected one there, too.

Knowing nothing, it looks to me as if
_RWSTD_CWCHAR needs to be defined as
something somewhere, possibly using a "-D"
option. Getting something like
-D_RWSTD_CWCHAR= (or whatever) past
the shell will probably require a bit of
quotation.

> [...] building on HP-UX Itanium now [...]

Where was it getting built before? How was
_RWSTD_CWCHAR defined there?
John Dorak
Advisor

Re: Expected file name error: #include _RWSTD_CWCHAR

Thanks Steve,

This is the first port of this code to HP-UX Itanium. It was previously ported to HP-UX PA.

There are a group of definitions for RWSTD_CWCHAR in stddef.h but you've given me an idea to try out.

Regards,
JJD
Dennis Handly
Acclaimed Contributor

Re: Expected file name error: #include _RWSTD_CWCHAR

You have illegally specified the default include paths (for -AP), remove them. Let the driver do this for you. (What version of the compiler are you using?)

You also should never use -w. Instead specify the particular warnings you want to suppress, +W####.

>Steven: Where was it getting built before?

Obviously on PA with the -AP default.
John Dorak
Advisor

Re: Expected file name error: #include _RWSTD_CWCHAR

Thanks, yes I will clean up the -w once I get this going. When I do remove the include lines and let the compiler do it I get the following:

aCC -c +DD64 -AA -mt -z -w -DHPUX -DUNIX -DNO_WIN32 -Dhpux -Dunix -O -I../include -I/builds/Prebuilt/HPia64/ic
u/3.2/include -I/builds/Prebuilt/HPia64/xml4c5_5_2-hp/include -I/builds/PXEngine.install/PXEngine/include -c CC_Access
or.cpp
"../include/fcl/daapi/metadata/CC_RepProperty.h", line 91: error #2864: basic_string is not a template
::basic_string m_name;
^
CC_RepProperty.h does have #include

Thanks a million for the help.
JJD
Dennis Handly
Acclaimed Contributor
Solution

Re: Expected file name error: #include _RWSTD_CWCHAR

error #2864: basic_string is not a template
::basic_string m_name;

The correct declaration is std::basic_string.
Or remove the "::" and use:
namespace std {} using namespace std;
John Dorak
Advisor

Re: Expected file name error: #include _RWSTD_CWCHAR

On my way, thanks to all.

Regards,
JJD