Sponsored Content
Operating Systems Solaris command 'cc' failed even though gcc is installed Post 302333561 by jim mcnamara on Monday 13th of July 2009 11:24:34 AM
Old 07-13-2009
Solaris has its own cc compiler. It looks like your makefile does not expect gcc.
Warning:
This means if you use gcc it may not succeed. Or work correctly if it does compile.

Try this for starters:
Code:
alias cc="/usr/sfw/bin/gcc"

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Emacs & GCC not installed by default?

I just installed SUSE Linux 10.0 on my computer but when I typed " emacs & " and " gcc -c main.c" in the terminal, those programs couldn't be found. So the Linux install package does not install those programs by default? (2 Replies)
Discussion started by: whutes
2 Replies

2. Programming

g++ is OK while gcc is failed

#include <iostream> using namespace std; int main(void) { cout << "hello" << endl; return 0; } I tried this: 1) g++ test.cpp -o test // It's OK 2) gcc test.cpp -o test // Failed /tmp/ccriZviL.o(.text+0x14): In function `main': : undefined reference to... (3 Replies)
Discussion started by: princelinux
3 Replies

3. UNIX for Dummies Questions & Answers

bash command to get the name of OS installed

hi I want a bash command that can give me the name of the operating system installed on the local machine. Basically I will be using that for getting the name of the operating system installed on the target machine. Please reply me soon as possible Thanks Satish (3 Replies)
Discussion started by: sateeshgauns
3 Replies

4. Linux

RPM used to installed to get a partcular command

Hi, I have a query in linux and please find the details of it I have a command in linux and i want to know which rpm has provided that command. ie: if we take ifconfig command ,i want to know what is the rpm package used to get that command. Regards Arun.Kakarla (3 Replies)
Discussion started by: Arun.Kakarla
3 Replies

5. UNIX for Advanced & Expert Users

command to find when Linux OS is installed?

hey , Anyone knows command to find when Linux OS is installed? Date and time? (2 Replies)
Discussion started by: crackthehit007
2 Replies

6. Solaris

Help on gcc command

Hi All, I have added a gcc 3.4.6 package into Solaris 10 recently and I didnot receive any error on that. I have set the path of this gcc to /usr/local/bin I tried executing a simple Hello World 'C' program but I get the following error "bash: /usr/local/bin/gcc: invalid argument". ... (7 Replies)
Discussion started by: EmbedUX
7 Replies

7. AIX

command to list all installed patches

hi all i need an command to list all installed patches in aix 5.3 (5 Replies)
Discussion started by: maxim42
5 Replies

8. Red Hat

Trouble with installed / not installed rpm unixODBC/libodbc.so.1

Hey there, i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies

9. Solaris

No cc/gcc installed on SunOS 5.10

Hi All: this work machine has no gcc installed, the only cc is located at: /usr/ucb/cc but this does not do a make, I get error: "/usr/ucb/cc: language optional software package not installed". Meaning cc is not fully installed, correct? I do not want to get root/sysadmin involved on... (17 Replies)
Discussion started by: steve701
17 Replies

10. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
klcc(1) 							  H. Peter Anvin							   klcc(1)

NAME
klcc - compile a program against klibc SYNOPSIS
klcc [gcc options] [-o outfile] infile... DESCRIPTION
klcc is a wrapper around gcc(1) and ld(1) which compiles and links a program against the klibc tiny C library. It supports most gcc options. Unlike gcc, klcc compiles with optimization on by default. Furthermore, the optimization level used depends on whether or not -g is speci- fied, since klcc frequently uses options in the normal case which makes debugging impossible. Therefore, compile without -g, -O, -f or -m option to use the default optimization level; this will generally result in the smallest binaries. You may want to use -s when linking, however. Use -O0 to compile without any optimization whatsoever; this may not work depending on the version of gcc used. -nostdinc allows to turn off klibc include files. Use the -shared or -static option to compile for and link against shared or static klibc. Note that shared klibc only supports running against the exact same klibc binary as the binary was linked with. In addition to standard gcc options, klcc supports options of the form -print-klibc-option, which prints the corresponding klibc configura- tion option. AUTHOR
Written by H. Peter Anvin <hpa@zytor.com>. COPYRIGHT
Copyright (C) 2005 H. Peter Anvin - All Rights Reserved Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MER- CHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. SEE ALSO
gcc(1) klibc 1 March 2005 klcc(1)
All times are GMT -4. The time now is 12:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy