Visit The New, Modern Unix Linux Community

How to combine c11 and c99 compilers?

Thread Tools Search this Thread
Operating Systems Solaris How to combine c11 and c99 compilers?
# 1  
How to combine c11 and c99 compilers?

I have a SPARC server with Solaris SPARC 10 OS installed
I am trying to compile source code from VLC media player and PHP 7 tarballs
However the stumbling block I encounter is that when I type in ./configure into my PUTTY terminal the GCC compiler tells me halfway through configuration that it needs C99 compiler.
I know that this statement enables the c99 compiler
  BUILDCC="/usr/bin/gcc -std=gnu99" ./configure

but by doing this I switch off the c11 compiler and so I cannot still complete a full configuration.
How do I switch on both C11 and C99 compilers and/or can I type in a command that will switch from one compiler to another whilst in the configuration process, as and when the gcc compiler needs to?
I thankyou for any feedback given
regards Smilie

Last edited by Neo; 05-11-2019 at 06:26 AM.. Reason: Added a code and icode tag as an example
# 2  
HI alphatron150,

Welcome to the forums.

Please use code tags and icode tags when posting code, commands, input and output text, etc.

# 3  
Couple points - Solaris 10 first came out before the C11 standards -- in January 2005. You may be getting the error not from the compiler, but from the package configure information, which expects C11 or whatever. Also most Solaris 10 boxes had /usr/bin/gcc as a symlink.

So please post the output of: gcc --version
# 4  
alphatron150 is posting in stack exchange and then cutting and pasting the same posts, but unformatted, here at

I am issuing an infraction for this behavior.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #373
Difficulty: Medium
JInterpreter is Java bytecode designed to be executed by the Java virtual machine.
True or False?

7 More Discussions You Might Find Interesting

1. Programming

Makefile for two compilers

I have g++-4.6 and g++-4.8.2 installed on my system and want to build a suite of programs using each one. I am thinking putting the option on what to build by having a different target, one for g++-4.6 and another target for g++-4.8.2. What do you think? (1 Reply)
Discussion started by: kristinu
1 Replies

2. AIX

C Compilers Available on AIX

Hi Guys, I want to know what are the different C compilers are available on AIX like cc, gcc etc. Appreciate your help. Regards, Srikanth:) (1 Reply)
Discussion started by: ysrikanth
1 Replies

3. Homework & Coursework Questions

Phases of Compilers

Hello I have a questions and m stuck on it. Theoritcally the phases of compiler. 1. Lexical analyis -- genrates tokes NOW MY QUESTION IS: where i can see these token if i make a simple C program. Please guys tell me step to see it. and other phases too. your help will be appreciated... (1 Reply)
Discussion started by: aditya08
1 Replies

4. Programming

Help with C compilers

i have windows 7 64bit, and i want to program C in it, i have the eclipse for C, but it wont work because i have no C compilers , where do i get a C compiler, so eclipse will work? I usually transfer to a unix server and use a command gcc -Wall -g -o ___ ___ where can i get the gcc C... (5 Replies)
Discussion started by: omega666
5 Replies

5. Programming

Need more info on internals of c compilers

Hello Gurus, i am ok with the concepts of c language but i would like to know more about the internals of c with respect to the compilers what happens when we say gcc filename.c the a.out will get created(what actaully compiler does to the code inaddition to generating object code) ... (5 Replies)
Discussion started by: MrUser
5 Replies

6. AIX

Error: could not find any of these C compilers

Hi, While trying to configure Apache Web Server on P630 Server i am getting the below message "Creating Makefile in src + configured for AIX 5.2 platform Error: could not find any of these C compilers anywhere in your PATH: gcc cc acc c89 Configure terminated" when i did a "lslpp -l... (2 Replies)
Discussion started by: cherryven
2 Replies

7. UNIX for Dummies Questions & Answers

Finding out available C++ compilers on my system

How can I find out what C++ compilers are available on my system? Thanks in advance (7 Replies)
Discussion started by: HelpMeIAmLost
7 Replies

Featured Tech Videos