Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c++ compiler options

Status
Not open for further replies.

revit

Programmer
Oct 27, 2001
36
IL
i know it is possible to compile a program with -64 option with the CC compiler:
CC -o p p.cpp -64 -O
this option makes the pointers to be 64 bits long,
not 32 bit long.
i have the c++ compiler under unix and as far as i tried the c++ compiler didnt recognized this option. (i get - -c++: unrecognized option `-64')
does someone knows of a way to make the option valid under the c++ compiler?
thanks!
 
To compile your program with 64 bit, try the following:

CC -op -q64 p.cpp Spinik
Senior consultant
 
I tried : c++ -o -op -q64 p.cpp and i recieved:
c++: unrecognized option `-q64'
i got the same result when i used the g++ compiler.
unfortunatly i do'nt have the CC compiler in my computer.
what can i do?
thanks,
revit
 
DO you have xlC? I am not sure what you are using. You can use the "man" pages to see which compiler you can use and how to use it. I would try replacing the CC by xlC.
If not, what Unix are you using? Spinik
Senior consultant
 
Hi again!
i did'nt find xlC, i know i have the c++ and g++ compilers.
how can i find out what unix i am using?

thanks again!
 
When you first log into your system, you should have a header that says it. for example, after logging in, I get the following header

Welcome to AIX Version 4.3! Spinik
Senior consultant
 
Hi again, sorry it took me some time... i have apeche 1.3.19

bye,
revital
 
if i use #include "stubs/CosNaming_c.hh" in my client file, and I want to execute this command g++ -c Client.cpp, I always get the error Client.cpp: stubs/CosNaming_c.hh: No such file or directory.

can someone suggest a solution to fix this error?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top