if cc is in /usr/ucb
Put the above export statement in your .bashrc file (linux) or your .profile file. These are in your login directory. The next time you login it will take effect.
Hi All,
I tried to compile a C program but i am getting error while Linking . it says Undefined reference to ' ' (here it gives a method name which is defined Globally ).
Can any body tell the resaon and remedy for the same . Iam stuck up here .
Thanks (3 Replies)
Hello. I am trying to run a c program on a unix shell (ssh). I have searched this forum but have not come accross the soultion to my problem, so I am posting my question here :cool:
I wrote the following simple code:
#include <iostream.h>
using namespace std;
int main()
{
... (7 Replies)
Help
I know nothing about c programming. :confused:
I want to compile the below c program. It extracts data from an oracle database into csv files.
I have oracle 9206 installed with ProC. I dont have gcc
My question is. How the hell do I make this into an file I can run? I am pulling... (3 Replies)
here is the very simple bob.c:
main()
{
printf("hello");
}
i use tiger and i use the command:
gcc bob.c
and the end result:
bob.c: In function ‘main':
bob.c:3: warning: incompatible implicit declaration of built-in function /‘printf'
any help appreciated, i'm just starting... (4 Replies)
Hello Guys,
I am using Solaris Developer Express Edition 9/07, I am a beginner. Please tell me how to compile and execute a C program. Please give me your answers clearly, for the compilers cc,c89,c99. please....... reply to me.
I not getting the answer anywhere..
Advance... (2 Replies)
if somebody can help me pls.
i need the source code for a shell which compiles C or java programs in unix
i need a very short and simple one, just the compiling part
Respect (2 Replies)
Hello,
I am writing to ask for support about compiling an very old but famous C-progam for genetics study called MapMaker/QTL, and the source code is available from MIT:
http://www.broadinstitute.org/ftp/distribution/software/mapmaker3/The program was originally designed for systems like SunOS... (1 Reply)
I'm trying to compile a 3rd party program used for solid-state chemistry that calculates pore characteristics of an input material. The program was written between 2000 and 2006, so I believe the problem is that the headers used are outdated, but I'm not terribly computer savvy (and a complete... (1 Reply)
Hi Everyone,
I can ask what is the option to compile a 64 bits program using gcc. I have looked everywhere but can't find it. Before I used to use cc and the -q64 flag was the option to generate the 64 bits binary. Can anyone tell me what is the flags when using gcc. Thanks...... (3 Replies)
good morning,
I have 64-bit DB2 V9.7 AIX 7.1.0.0
I am compiling a C program, when running cc-I / rutadb2/include-c programa.c this error.
ksh: cc: not found.
how I can check if I have installed the C compiler?
Any help will be greatly appreciated.
Thank you very much and best regards. (2 Replies)
Discussion started by: systemoper
2 Replies
LEARN ABOUT SUNOS
cc
cc(1B) SunOS/BSD Compatibility Package Commands cc(1B)NAME
cc - C compiler
SYNOPSIS
/usr/ucb/cc [options]
DESCRIPTION
/usr/ucb/cc is the interface to the BSD Compatibility Package C compiler. It is a script that looks for the link /usr/ccs/bin/ucbcc to the
C compiler. The /usr/ccs/bin/ucbcc link is available only with the SPROcc package, whose default location is /opt/SUNWspro. The /usr/ucb/cc
interface is identical to /usr/ccs/bin/ucbcc, except that BSD headers are used and BSD libraries are linked before base libraries. The
/opt/SUNWspro/man/man1/acc.1 man page is available only with the SPROcc package.
OPTIONS
The /usr/ucb/cc interface accepts the same options as /usr/ccs/bin/ucbcc, with the following exceptions:
-Idir Search dir for included files whose names do not begin with a slash (/) prior to searching the usual directories. The
directories for multiple -I options are searched in the order specified. The preprocessor first searches for #include files
in the directory containing sourcefile, and then in directories named with -I options (if any), then /usr/ucbinclude, and
finally, in /usr/include.
-Ldir Add dir to the list of directories searched for libraries by /usr/ccs/bin/ucbcc. This option is passed to /usr/ccs/bin/ld
and /usr/lib. Directories specified with this option are searched before /usr/ucblib and /usr/lib.
-Y P, dir Change the default directory used for finding libraries.
EXIT STATUS
The following exit values are returned:
0 Successful compilation or link edit.
>0 An error occurred.
FILES
/usr/ccs/bin/ld link editor
/usr/lib/libc C library
/usr/ucbinclude BSD Compatibility directory for header files
/usr/ucblib BSD Compatibility directory for libraries
/usr/ucblib/libucb BSD Compatibility C library
/usr/lib/libsocket library containing socket routines
/usr/lib/libnsl library containing network functions
/usr/lib/libelf library containing routines to process ELF object files
/usr/lib/libaio library containing asynchronous I/O routines
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO ld(1), a.out(4), attributes(5)NOTES
The -Y P, dir option may have unexpected results and should not be used.
SunOS 5.10 24 Feb 1998 cc(1B)