Differences gcc <-> aCC


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Differences gcc <-> aCC
# 1  
Old 01-20-2004
Differences gcc <-> aCC

Hi all!

I'm working on a HP UX 11 machine. I have an executable build with gcc and a shared library (sl) build with aCC. If i start the executable, i have many errors about unresolved symbols. Is the binary output of aCC and gcc compatible?

Greetings!
# 2  
Old 01-20-2004
I have never tried that. But I would be astonished if it worked. gcc is not even source level compatible with aCC. There is a lot of code out there marked "gcc only".

Why would you build a library with one compiler and an executable with another? Why not try a single compiler?
# 3  
Old 01-20-2004
I have tried that! I need to get AXIS C++ to run.

AXIS uses the xercesc library which cannot be compiled with g++ on my machine. The makefile contains an error with the compiler flags, it seems that the 'configure' script think i'm using the aCC compiler.

AXIS itself cannot be compiled with aCC, only with g++.

Im getting nuts with that....
# 4  
Old 01-20-2004
I don't know what AXIS is. If it needs g++, it's not written in C++. A C++ program can be compiled by any C++ compiler including aCC (which is actually my favorite compiler). The gcc folks have invented their own language.

Since you must use g++ to compile AXIS, you need to go with that. You lost me with this makefile/configure script stuff. But you should be able to control configure to use gcc. Or you should be able to edit the makefile to do so. If nothing else, rename aCC while configure is running.
# 5  
Old 01-21-2004
You cannot use a shared library build with aCC with an
executable built with gcc.

xercesc compiles fine on HP-UX with gcc. You just need to
configure the build correctly. Make use that you have a
version of gcc that builds HP-UX shared libraries correctly.

- Finnbarr
# 6  
Old 01-22-2004
I've update the following develop tools:

automake 1.7.4
flex 2.5.4a
gcc 3.3.2
libtool 1.5
m4 1.4
make 3.80
latest linker 'ld' patch for hpux

i've configured the build with:
runConfigure -php-11 -cgcc -xg++

and this is the error i would get:

g++ -D_HP_UX -DXERCES_TMPLSINC -DHPUX11 +DAportable +eh +Z -Z +a1 +d -ptr/obj/HPUX/ptrepository -c -I/include -g -O2 -o /obj/HPUX/GCCDefs.o GCCDefs.cpp
g++: cannot specify -o with -c or -S and multiple compilations

config.log:

configure:529: checking for gcc
configure:642: checking whether the C compiler (gcc ) works
configure:658: gcc -o conftest conftest.c 1>&5
configure:684: checking whether the C compiler (gcc ) is a cross-compiler
configure:689: checking whether we are using GNU C
configure:698: gcc -E conftest.c
configure:717: checking whether gcc accepts -g
configure:753: checking for c++
configure:785: checking whether the C++ compiler (g++ ) works
configure:801: g++ -o conftest conftest.C 1>&5
configure:827: checking whether the C++ compiler (g++ ) is a cross-compiler
configure:832: checking whether we are using GNU C++
configure:841: g++ -E conftest.C
configure:860: checking whether g++ accepts -g
configure:922: checking for a BSD compatible install
configure:977: checking for autoconf
configure:1007: checking how to run the C preprocessor
configure:1028: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1087: checking for ANSI C header files
configure:1100: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1167: gcc -o conftest -g -O2 conftest.c 1>&5
configure:1191: checking for XMLByte
configure:1231: checking host system type


I dont think i have making something wrong... Smilie


Thank you!
Greeting
# 7  
Old 01-22-2004
Well somebody did something wrong.

What is -ptr/obj/HPUX/ptrepository supposed to mean?

I don't have -Z or +Z on my gcc man page, but it's hard to believe that you might want them both.

Sometimes freeware crashes and burns.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

aCC exit error

Hi guys I would just like to know if aCC supports the command exit(0); in c++? I am always getting the error below: Error 328: "ac5.C", line 37 # Function 'exit' has not been defined yet; cannot call. exit(0); ^^^^ Anyone had this problem? Thanks! (2 Replies)
Discussion started by: khestoi
2 Replies

2. Shell Programming and Scripting

Differences between 2 Flat Files and process the differences

Hi Hope you are having a great weeknd !! I had a question and need your expertise for this : I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
Discussion started by: newbie_8398
5 Replies

3. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

4. HP-UX

Where to find the aCC 6.0.5

All, I'm filling in for the HPUX guy here (I'm AIX), and a client needs the 6.0.5 aCC compiler loaded up on an IA64 system. Where can I find the installs? Are they someplace on the system cd's? Thanks in advance for your help. Shawn (1 Reply)
Discussion started by: ZekesGarage
1 Replies

5. HP-UX

Impacts on upgrading the aCC compiler in HP-UX

Hi, We are currently using the aCC 3.13 compiler in HP-UX 11.0 but we need to upgrade the aCC compiler version from aCC 3.13 to aCC3.31. 1. Is there any major impact of update the compiler? 2. What are the major things we need to make sure before updating the compiler? Can any one guide... (2 Replies)
Discussion started by: gyanusoni
2 Replies

6. HP-UX

aCC compiler help

hello, i'm now working on a traduction of a makefile from HP_UX environnement to IBM_AIX environnement, so , first of all i need help about aCC compiler and the meaning of each option of compilation, and if possible its equivalent in AIX it's urgent, any help will be highly appreciated (0 Replies)
Discussion started by: kingmastersimo
0 Replies

7. HP-UX

ACC Compiler

Hi, Can anybody guide as to whether the aCC compiler for RISC (9000/785) be used with ia64 processor? (2 Replies)
Discussion started by: slash_blog
2 Replies

8. HP-UX

fstream - detach in aCC

How to use detach function for aCC. Error 187: "/cc/smc3/root/development/auto_activation/AARS/src/ResultServer.cpp", line 623 # Referenced object 'detach' is not a member of class basic_ofstream<char,std::char_traits<char> > . READ_TOKEN(tmp) (0 Replies)
Discussion started by: onlyforforum
0 Replies

9. HP-UX

Installing aCC++

- I ran the command: swinstall -p -v -s /home/garybowd/aCC-11.11-3.55ws.depot - I selected the S800 Package (I also tried this with the S700, but i'm pretty sure our server is S800) - I selected install, and these are the errors i got: ERROR: Exclude ... (1 Reply)
Discussion started by: gbowdridge
1 Replies
Login or Register to Ask a Question