- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: compilation error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 07:01 AM
тАО10-15-2008 07:01 AM
compilation error
I come across the following compilation when compiling string.cpp, which is enclosed. My guess is that I miss defining a macro so that I will not use multiple byte string. Could you give your opinion?
Thanks,
YE LIU
CXX /DEFINE=(USE_MULTINET,_DECC_V4_SOURCE,__DECC)/show=include/list /USING_STD /UNDEF=(_MBSTATE_T) string.cpp
typedef mbstate_t state_type;
............^
%CXX-E-UNDECLARED, identifier "mbstate_t" is undefined
at line number 192 in module RW_INTERNAL_TRAITS.H of text library SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1
typedef mbstate_t state_type;
............^
%CXX-E-UNDECLARED, identifier "mbstate_t" is undefined
at line number 291 in module RW_INTERNAL_TRAITS.H of text library SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1
typedef mbstate_t state_type;
............^
%CXX-E-UNDECLARED, identifier "mbstate_t" is undefined
at line number 387 in module RW_INTERNAL_TRAITS.H of text library SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1
return wmemcmp (__s1, __s2, __n);
...............^
%CXX-E-UNDECLARED, identifier "wmemcmp" is undefined
at line number 409 in module RW_INTERNAL_TRAITS.H of text library SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1
return _RWSTD_STATIC_CAST (const char_type*,
...............^
%CXX-E-UNDECLARED, identifier "wmemchr" is undefined
at line number 437 in module RW_INTERNAL_TRAITS.H of text library SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1
wmemmove (__s1, __s2, __n);
........^
%CXX-E-UNDECLARED, identifier "wmemmove" is undefined
at line number 455 in module RW_INTERNAL_TRAITS.H of text library SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1
wmemset (__s, __a, __n);
........^
%CXX-E-UNDECLARED, identifier "wmemset" is undefined
at line number 472 in module RW_INTERNAL_TRAITS.H of text library SYS$COMMON:[SYSLIB]CXXL$ANSI_DEF.TLB;1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 08:10 AM
тАО10-15-2008 08:10 AM
Re: compilation error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 08:19 AM
тАО10-15-2008 08:19 AM
Re: compilation error
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 08:34 AM
тАО10-15-2008 08:34 AM
Re: compilation error
you're including cwchar, not cwchar.h
does that matter?
does the order you reference matter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 08:47 AM
тАО10-15-2008 08:47 AM
Re: compilation error
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 08:51 AM
тАО10-15-2008 08:51 AM
Re: compilation error
But having sorted that boo-boo out, the code gets the following build error:
$ cxx x
#include "SocketMisc.h"
.......................^
%CXX-E-SRCFILNOOPEN, could not open source file "SocketMisc.h"
at line number 39 in file ...X.CXX;20
That header file was missing from the test build, and the test box doesn't use Multinet. Either of these could send the compilation off the rails. (And I don't see the header file with the inclusion.)
The code wasn't compiled with V4 (that's very old), and the compilation didn't disable the _MBSTATE_T, and didn't select Multinet as none of those appeared (directly) in the source code. No Multinet here, too. Interestingly, the code itself doesn't actually check the Multinet settings before it loads a pile of Multinet includes; it's surprised the compilation pass didn't flag those, too.
It wouldn't surprise me that the wchar stuff isn't compatible with the V4-vintage C code, either.
What compiler version, and what platform?
Got a more complete example or that header file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 08:53 AM
тАО10-15-2008 08:53 AM
Re: compilation error
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 08:58 AM
тАО10-15-2008 08:58 AM
Re: compilation error
Here's the prolog code...
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifndef _RWSTD_HEADER_REQUIRES_HPP
#include
#else
#include
#endif
#ifdef __USE_STD_IOSTREAM
#include
#else
#include
#endif
#include
#include
#include
#include
int main ()
{
{remainder of code unchanged}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 09:04 AM
тАО10-15-2008 09:04 AM
Re: compilation error
CXX /DEFINE=(_DECC_V4_SOURCE,__DECC)/show=include/list /USING_STD string.cpp
when I removed _DECC_V4_SOURCE, it works.
YE LIU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-15-2008 09:16 AM
тАО10-15-2008 09:16 AM
Re: compilation error
Or in your more succinct description, that "doesn't work".
Is there a particular reason for the (sorry!) somewhat scatter-shot source code here (is this a cut-down example from something larger?) or for (in general) the use of the V4 compiler knob here?