- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- unicode wchar problem on hp-ux pa risc
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
тАО02-12-2009 10:56 AM
тАО02-12-2009 10:56 AM
uname -a
HP-UX B.11.11 U 9000/800
I have code which uses wchar methods, one of them being wcsstr which is available in wchar.h but when i compile the program, i get this error
Error 328: "../src/util/Misc.cpp", line 124 # Function 'wcsstr' has not been defined yet; cannot call.
What could be problem with this, i am compiling using -AA flag like this
aCC -DHAVE_CONFIG_H -I. -I. -I.. -AA -D_REENTRANT -g -c ../src/util/Misc.cpp -DPIC -o .libs/Misc.o
Best regards,
uiqbal
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 11:04 AM
тАО02-12-2009 11:04 AM
Re: unicode wchar problem on hp-ux pa risc
Warning: Possible meaningful unix error message.
Error 328: "../src/util/Misc.cpp", line 124 # Function 'wcsstr' has not been defined yet; cannot call.
Bad code. Function is called but not defined.
Looks like the code being compiled.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2009 08:35 PM
тАО02-12-2009 08:35 PM
SolutionDid you read wcschr(3) carefully? It says you must use: -D_INCLUDE__STDC_A1_SOURCE
>I am compiling using -AA flag
aCC -DHAVE_CONFIG_H -I. -I. -I.. -AA -D_REENTRANT -g -c Misc.cpp -DPIC
Newer versions set that -D if -AA is used.
Also I would suggest you put options like -AA -g -c before any -D/-I. And replace -D_REENTRANT by -mt if using libpthread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2009 08:52 AM
тАО02-13-2009 08:52 AM
Re: unicode wchar problem on hp-ux pa risc
HP-UX B.11.23 U ia64 4119213449
and the compiler is aCC
HP C/aC++ Version A.06.15
The problem is that i am using the -D_INCLUDE__STDC_A1_SOURCE flag but have the following error:
source='../src/document/DateField.cpp' object='DateField.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ../config/depcomp \
/bin/sh ../libtool --tag=CXX --mode=compile aCC -DHAVE_CONFIG_H -I. -I. -I.. +Z -AA -mt -D_INCLUDE__STDC_A1_SOURCE -D_REENTRANT -g -c -o DateField.lo `test -f '../src/document/DateField.cpp' || echo './'`../src/document/DateField.cpp
aCC -DHAVE_CONFIG_H -I. -I. -I.. +Z -AA -mt -D_INCLUDE__STDC_A1_SOURCE -D_REENTRANT -g -c ../src/document/DateField.cpp -DPIC -o .libs/DateField.o
"../src/document/DateField.cpp", line 57: error #2020: identifier
"wcstoll" is undefined
return _tcstoi64(time, &end, 36);
^
1 error detected in the compilation of "../src/document/DateField.cpp".
I have seen wcstoll man as well as ./configure reported yes for wcstoll?
Best regards,
uiqbal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2009 12:42 PM
тАО02-13-2009 12:42 PM
Re: unicode wchar problem on hp-ux pa risc
You don't need that with A.06.15.
>error #2020: identifier "wcstoll" is undefined
You are going to have to look at the #if in
If you compile with "-E -.i", you'll see what the compiler sees.