How to combine c11 and c99 compilers?


Login or Register to Reply

 
Thread Tools Search this Thread
# 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
Code:
  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; 1 Week Ago at 05: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.

Thanks
# 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
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
C Compilers Available on AIX
ysrikanth
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:)... AIX
1
AIX
Phases of Compilers
aditya08
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...... Homework & Coursework Questions
1
Homework & Coursework Questions
Help with C compilers
omega666
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...... Programming
5
Programming