- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- aCC: Unable to find stdanderd header files.
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
Forums
Discussions
Discussions
Discussions
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
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
11-29-2010 04:11 AM
11-29-2010 04:11 AM
I am trying to build cpp source files using aCC but it is unable to find the standered c header files as well as my header files, even though /usr/include and other include directory are present in inclusion list.
+ /opt/softbench/bin/aCC -O -z -mt +inst_implicit_include -DHPUX_aCC -Dhpux -DHPUX_11 -t p,/opt/softbench/lib/cpp -I-D/usr/att/ATTnmake/arch/hp.pa/lib/probe/C/pp/266F18C1binaCC -I- -Ibsrc -I/usr/include -I/opt/aCC/include/SC -c bsrc/tmp_expmain.c
Error 112: "bsrc/tmp_expmain.c", line 2 # Include file
#include
^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 3 # Include file
#include
^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 4 # Include file
#include
^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 5 # Include file
#include
^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 6 # Include file
#include
^^^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 7 # Include file
#include
^^^^^^^^^^^
Error 112: "bsrc/tmp_expmain.c", line 8 # Include file
#include
^^^^^^^^^^^^^^^^^
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2010 05:09 AM
11-29-2010 05:09 AM
Re: aCC: Unable to find stdanderd header files.
Do the directory permissions allow searching (i.e the directory read and executable bits are set) and/or are the files beneath readable by the world?
Regards!
..JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2010 05:31 AM
11-29-2010 05:31 AM
Re: aCC: Unable to find stdanderd header files.
Yes, Permissions are ok, even when I compile using "cc" in place of "aCC" it give me error for only fstream.h and all other header file it is able to find.
I verified manually as well, all the required files have the read priviledge.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2010 05:45 AM
11-29-2010 05:45 AM
Re: aCC: Unable to find stdanderd header files.
When I run just a file in home directory without usig any options it works perfectly. ex:
#include
#include
int main(){
printf("Test masage.\n");
cout<<"C++ test massage."<
}
HOME> aCC check.c
HOME> ./a.out
Test masage.
C++ test massage.
HOME>
But when I am using the above options with aCC, I am getting the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2010 06:09 AM - edited 07-09-2011 03:57 PM
11-29-2010 06:09 AM - edited 07-09-2011 03:57 PM
Solution>/opt/softbench/bin/aCC
Why are you using this instead of /opt/aCC/bin/aCC?
>even though /usr/include is present in inclusion list.
You must NOT do this.
>+inst_implicit_include
This is obsolete, remove it.
>-I-D/usr/att/ATTnmake/arch/hp.pa/lib/probe/C/pp/266F18C1binaCC
This looks like a make macro is missing, following the -I?
>-I/usr/include
You must NOT include the default include paths.
>-I/opt/aCC/include/SC
Are you really still using USL Standard Components? That's not there for Integrity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2010 04:56 AM
11-30-2010 04:56 AM
Re: aCC: Unable to find stdanderd header files.
I updated everything you said except the following:
">-I-D/usr/att/ATTnmake/arch/hp.pa/lib/probe/C/pp/266F18C1binaCC
This looks like a make macro is missing, following the -I?"
It is unable to find string.h that is present in /usr/include.
Eroor is as below:
make: don't know how to make .ALL : tmpl_expander : /SM3/09.3UNOFFICIAL/util/gentools/tmp_expmain.o : bsrc/tmp_expmain.c : bsrc/tmpl_expander.h : String.h
I am unable to find in where to modify
HOME-> probe -l C make aCC
# ;VERSION;--version;aCC: HP ANSI C++ B3910B A.03.77;PATH;/opt/softbench/bin/aCC
CC.CC = /opt/softbench/bin/aCC
CC.NATIVE = /opt/softbench/bin/aCC
CC.EXECTYPE = hp.pa
CC.HOSTTYPE = hp.pa
CC.ALTPP.FLAGS = -t p,$(CPP)
CC.ALTPP.ENV =
CC.AR = /usr/ccs/bin/ar
CC.AR.ARFLAGS =
CC.ARFLAGS =
CC.DEBUG = -g
CC.DIALECT = C++ DOTI DYNAMIC TOUCHO -I- -L
CC.DLLBIG = -D_BLD_DLL +Z
CC.DLLSMALL = -D_BLD_DLL +z
CC.DLL = -D_BLD_DLL +Z
CC.DLL.DEF = -D_BLD_DLL
CC.DLL.DIR = $(LIBDIR)
CC.DLL.LIBRARIES = -lm -lc
CC.DLL.VARIANTS =
CC.DYNAMIC = -Wl,-ashared -Wl,+s
CC.EXPORT.DYNAMIC = -Wl,-E
CC.INCLUDE.LOCAL = -I-
if LDSHARED
CC.LD = /usr/ccs/bin/ld
else
CC.LD = /opt/softbench/bin/aCC
end
CC.LD.DYNAMIC =
CC.LD.LAZY =
CC.LD.NOLAZY =
CC.LD.ORIGIN =
CC.LD.RECORD =
CC.LD.NORECORD =
CC.LD.RUNPATH =
CC.LD.STATIC =
CC.LD.STRIP = -s -mr
CC.LIB.DLL = symbol
CC.LIB.ALL =
CC.LIB.UNDEF =
CC.MAKE.OPTIONS =
CC.NM = /usr/ccs/bin/nm
CC.NMEDIT = -e '/[ ]T[ ][ ]*[_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]/!d' -e 's/.*[ ]T[ ][ ]*//'
CC.NMFLAGS = -p
CC.NOPROTECT =
CC.OPTIMIZE = -O
CC.PICBIG = +Z
CC.PICSMALL = +z
CC.PIC = +Z
CC.READONLY =
CC.REPOSITORY =
CC.RUNPATH =
CC.SHARED = -b
CC.SHARED.LD = /opt/softbench/bin/aCC
CC.SHARED.NAME = -h
CC.SHARED.REGISTRY =
CC.SHARED.REGISTRY.PATH = $(LIBDIR)/registry.ld
CC.SHELLMAGIC =
CC.SIZE = /usr/ccs/bin/size
CC.STATIC = -Wl,-aarchive
CC.STDINCLUDE = /opt/aCC/include /opt/aCC/include/iostream /usr/include /usr
CC.STDLIB = /opt/aCC/lib /usr/lib /usr/ccs/lib
CC.STRICT = -ansi -pedantic
CC.STRIP = /usr/ccs/bin/strip
CC.STRIP.FLAGS =
CC.PREFIX.ARCHIVE = lib
CC.PREFIX.DYNAMIC =
CC.PREFIX.SHARED = lib
CC.PREFIX.SYMBOL =
CC.SUFFIX.ARCHIVE = .a
CC.SUFFIX.COMMAND =
CC.SUFFIX.DEBUG =
CC.SUFFIX.DYNAMIC =
CC.SUFFIX.LD = .ld
CC.SUFFIX.OBJECT = .o
CC.SUFFIX.SHARED = .sl
CC.SUFFIX.SOURCE = .c
CC.SUFFIX.STATIC =
CC.VERSION = --version
CC.VERSION.STRING = aCC: HP ANSI C++ B3910B A.03.77
CC.WARN = -fullwarn
CC.PREROOT =
CC.UNIVERSE = att
HOME->
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2010 05:43 AM - edited 07-09-2011 03:58 PM
11-30-2010 05:43 AM - edited 07-09-2011 03:58 PM
Re: aCC: Unable to find standard header files.
>It is unable to find string.h that is present in /usr/include.
>src/tmp_expmain.c : bsrc/tmpl_expander.h : String.h
These aren't the same. It appears you are using the obsolete Standard Components after all. And you can't remove that one -I.
(I would suggest you start porting away from USL SC.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2010 09:02 PM
11-30-2010 09:02 PM
Re: aCC: Unable to find stdanderd header files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2010 09:35 PM
11-30-2010 09:35 PM
Re: aCC: Unable to find stdanderd header files.
I am using
CCFLAGS += -w -mt -DRWSTD_NO_NAMESPACE -DHPUX_aCC -Dhpux -DHPUX_11
and
.SOURCE: bsrc
.SOURCE.C: bsrc
.SOURCE.c: bsrc
.SOURCE.g: . $(VROOT)/abstract_g2/bsrc $(VROOT)/libsrc/sa/bsrc $(VROOT)/gen_g2 \
$(EHOME)/include
.SOURCE.h: bsrc $(VROOT)/hdr $(VROOT)/hdr/bsrc $(EHOME)/include \
/opt/aCC/include/CC \
/opt/aCC/include \
/opt/aCC/include_std \
/opt/aCC/include/iostream \
/opt/acc/include \
/opt/acc/include/sys \
$(VHome)/include \
$(ORACLE_HOME)/rdbms/demo \
$(ORACLE_HOME)/rdbms/public \
/opt/dce/include
.SOURCE.a: $(VROOT)/lib $(EHOME)/lib \
/opt/aCC/lib \
/usr/lib \
/usr/local/lib \
$(VHome)/lib \
$(ORACLE_HOME)/rdbms/lib32 \
$(ORACLE_HOME)/rdbms/lib \
$(ORACLE_HOME)/lib32 \
$(ORACLE_HOME)/lib \
/opt/acc/lib
where bsrc is a directory where some of my .c and .h files are present(just to reduce confusio, I gave this point).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2010 03:38 AM - edited 07-09-2011 03:58 PM
12-01-2010 03:38 AM - edited 07-09-2011 03:58 PM
Re: aCC: Unable to find standard header files.
>I already removed "/opt/aCC/include/SC" but it is not working.
I didn't tell you to remove it. I asked if you were using the obsolete USL SC headers and if you get that error, you were.
(And you may need +inst_implicit_include with them.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2010 04:51 AM
12-01-2010 04:51 AM
Re: aCC: Unable to find stdanderd header files.
I am not using "/opt/aCC/include/SC". Since nothing was working I tried to compile includig "/opt/aCC/include/SC".
As you said some macro may be missing in including probe file, I am uable to find that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2010 11:15 AM - edited 07-09-2011 03:59 PM
12-01-2010 11:15 AM - edited 07-09-2011 03:59 PM
Re: aCC: Unable to find standard header files.
>I am not using "/opt/aCC/include/SC". Since nothing was working I tried to compile including "/opt/aCC/include/SC".
Then you need to remove this dependency for String.h:
/util/gentools/tmp_expmain.o : bsrc/tmp_expmain.c : bsrc/tmpl_expander.h : String.h