- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Warning #3665-D: concatenation with "xy" in macro ...
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
тАО09-14-2011 12:19 AM
тАО09-14-2011 12:19 AM
We are porting from PA-RISC -> Itanium / HPUX11.11 -> HPUX11.31. During the compilation of dvav.c I get a couple of warnings #3665, which I don't know how to solve:
"dvav.c", line 986: warning #3665-D: concatenation with "TimeRef" in macro "INSTALL_AV" does not create a valid token INSTALL_AV (TimeRef);
^
If I substitute "&av.##x" with "&av.TimeRef" no warnings are reported, so I guess there is some problem with the precompiler.
----------------------------------------------------------------------------------------------------------------------
cc +Olit=const -Aa -c +e +O3 -z +w2 +DD32 -D _XOPEN_SOURCE_EXTENDED -D _HPUX_SOURCE -D HOST_WKS
-D ENV_HPUX -D VERSION='"akt"' -I/usr1/xfm/v3.3/include -I/usr/include/Motif2.1 -I/usr/include/X11
-I/usr/include/X11R6 -D NeedFunctionPrototypes=1 -c dvav.c
----------------------------------------------------------------------------------------------------------------------
#define STR_LEN 30
....
....
#define INSTALL_AV(x) \
\
FmAttachAv (#x, &av.##x); \
....
....
{
/* Visualisierungsfenster */
/* ---------------------- */
char TimeRef [STR_LEN];
char TimeStamp [STR_LEN];
char VisStatus [STR_LEN];
char VisStatusColor [STR_LEN];
char AnzStatus [STR_LEN];
char AnzStatusColor [STR_LEN];
char TrigStatus [STR_LEN];
char TrigStatusColor [STR_LEN];
char ErrorStatus [STR_LEN];
char ErrorStatusColor [STR_LEN];
char CfgName [STR_LEN];
char CfgNameColor [STR_LEN];
char CfgVersion [STR_LEN];
char CfgVersionColor [STR_LEN];
char SnapFile [STR_LEN];
char SnapFileColor [STR_LEN];
char EnvColor [STR_LEN];
} av;
....
....
INSTALL_AV (TimeRef);
Thanks
Karl
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2011 09:20 AM
тАО09-14-2011 09:20 AM
Solution>I get a couple of warnings #3665, which I don't know how to solve:
>warning #3665-D: concatenation with "TimeRef" in macro "INSTALL_AV" does not create a valid token INSTALL_AV (TimeRef);
The warning means what it says. You have an illegal use of the ## operator. You are trying to glue two tokens that can't be glued.
>If I substitute "&av.##x" with "&av.TimeRef" no warnings are reported
The correct solution is to use: &av.x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2011 11:21 PM
тАО09-14-2011 11:21 PM
Re: Warning #3665-D: concatenation with "xy" in macro "yz" does not create a val
Hej Dennis
Thanks for your help. In this case i'll just fix the affected lines.
Karl