Sponsored Content
Top Forums Programming how to find if C compiler in Solaris Post 302435705 by gaurav1086 on Thursday 8th of July 2010 04:29:14 AM
Old 07-08-2010
Hello Sameer,

I am sure solaris supports gcc compiler/toolchain. So you can install it via

Code:
pkg-get install gcc

Most of the operating systems do not come with gcc installed. So there you go. Hope this solves your problem.

Regards,
Gaurav.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to find our working compiler

Hi, I am using Turbo Linux and needs to install Samba on it. But it said that could not find gcc. My question is how to find out which compiler is working on my system. I tried echo $CC but it gave me nothing. How can I set environmental compiler to c. Thanks in advance. (8 Replies)
Discussion started by: s_aamir
8 Replies

2. Programming

C Compiler for Solaris 8 (Intel)

hi I'm looking for a C Compiler that will run on a Solaris 8 (Intel) platform and that doesn't need to be complied. I've tried gcc binaries but they don't seem to work. Thanx. (5 Replies)
Discussion started by: ianf
5 Replies

3. UNIX for Dummies Questions & Answers

C++ compiler for Solaris 10

Does anyone know off-hand if Solaris 10 comes with a C++ compiler, or will I have to install one (GNU, etc)? I have looked through the directories and files, but can't seem to locate anything to indicate that there is one. Thanks in advance. (1 Reply)
Discussion started by: trmn8r
1 Replies

4. Programming

Solaris C compiler option -Xc

Anyone know what the -Xc option does? Is there an equivalent option for the Gnu compiler? :confused: (3 Replies)
Discussion started by: BCarlson
3 Replies

5. Programming

C compiler for Solaris 10

First off, I am all new to Unix, so when I require for help, could people please response in plain english and step by step. I am enrol in a university course to do c programming in unix environment. Thus I have downloaded the Solaris 10 Unix OS. Being Solaris, I believe it has Java... (2 Replies)
Discussion started by: Xannen
2 Replies

6. Solaris

how to find which c/c++ compiler is used in solaris10

Dear Frnz Could you tell how to determine the c/c++ compiler version installed in the solaris 10/solaris 8. IT could be very helpful if you can tell me the pkg name also. Thanks (2 Replies)
Discussion started by: sriram.s
2 Replies

7. Programming

compiler can't find pstatus_t even procfs.h inlcuded

Hi, I am trying to get a the process cpu usage from the /proc file recently, on the Solaris 5.10. But met some rookie issue which i need some help. for below program, compiler complains that pstatus_t is undefined, although both type are defined in the procfs.h. #include <sys/procfs.h>... (4 Replies)
Discussion started by: sleepy_11
4 Replies

8. Solaris

C Set++ compiler on Solaris

Can we use C Set++ compiler on Solaris for converting 32-bit application to 64-bit? I wants to use it with lint tools for finding out the erros while porting a code. Any pointers will be helpful. (1 Reply)
Discussion started by: amit_27
1 Replies

9. AIX

how to find out the compiler version and OS from binary file

Command to get the Compiler version(xlc/gcc) from the binary on AIX platform. I m searching for the Command, to get the Compiler(xlc/gcc) used to build the binary on AIX. I got two commands used on Linux Platform: - readelf -a <lib> | grep comment - hexdump -C -s 0x49e7b -n 1812 <lib> ... (1 Reply)
Discussion started by: Prajakta
1 Replies
SC-CONFIG(1)						      General Commands Manual						      SC-CONFIG(1)

NAME
sc-config - script to get information about the installed version of SC SYNOPSIS
sc-config [--prefix[=DIR] ] [--exec-prefix[=DIR] ] [--version] [--libs] [--cppflags] [--cc] [--cflags] [--cxx] [--cxxflags] [--f77] [--f77flags] DESCRIPTION
The sc-config program can be used to obtain the compilers, compiler options and libraries needed to use the SC (Scientific Computing) tool- kit from your program. OPTIONS
The sc-config program returns information about how SC was compiled and installed. The following information is available: --prefix The directory where SC is installed. --version The version of SC. --libdir The directory were the libraries are found. --libs The libraries and library paths needed to link. --cppflags The include directories needed to build. --cc The C compiler. --cflags The C compiler flags. --cxx The C++ compiler. --cxxflags The C++ compiler flags. --f77 The FORTRAN 77 compiler. --f77flags The FORTRAN 77 compiler flags. EXAMPLES
To use the sc-config program to link your executable to SC, use a Makefile for GNU make similar to the following: SCCONFIG = /usr/bin/sc-config CXX := $(shell $(SCCONFIG) --cxx) CXXFLAGS := $(shell $(SCCONFIG) --cxxflags) CPPFLAGS := $(shell $(SCCONFIG) --cppflags) LIBS := $(shell $(SCCONFIG) --libs) myprog: myprog.o $(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS) Version 2 15 Feb 2001 SC-CONFIG(1)
All times are GMT -4. The time now is 02:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy