By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,898 Members | 2,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,898 IT Pros & Developers. It's quick & easy.

Strange error while compiling a C++ file

P: n/a
We are using the Sun Workshop 6 C++ compiler to compile some CPP files.

The command line looks like follows: -

CC -g -xsb -c -o output/x.o x.cpp

We get the following error: -

CC: language sb not recognized
CC: x.cpp: linker input file unused because linking not done

Any reason why this should occur? Is this related to the SunWS_cache in anyway?

Thanks,
Arnab
Jul 22 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Arnab Nandi wrote:
CC -g -xsb -c -o output/x.o x.cpp
CC: language sb not recognized
CC: x.cpp: linker input file unused because linking not done


Are you sure CC is Sun's compiler and not a symlink to g++?
Jul 22 '05 #2

P: n/a
Arnab Nandi wrote:
We are using the Sun Workshop 6 C++ compiler to compile some CPP
files.

The command line looks like follows: -

CC -g -xsb -c -o output/x.o x.cpp

We get the following error: -

CC: language sb not recognized
CC: x.cpp: linker input file unused because linking not done

Any reason why this should occur? Is this related to the SunWS_cache
in anyway?


I have no idea about the Sun compiler, and it's actually off-topic here,
but is it possible that -x is (just like in g++) the command line
argument for explicitly specifying the programming language of the
input file? And your compiler doesn't seem to know a programming
language called "sb".

Jul 22 '05 #3

P: n/a
Marc <Ma***********@Loria.Fr> wrote in message news:<cg***********@nef.ens.fr>...
Arnab Nandi wrote:
CC -g -xsb -c -o output/x.o x.cpp
CC: language sb not recognized
CC: x.cpp: linker input file unused because linking not done


Are you sure CC is Sun's compiler and not a symlink to g++?


Yes, its Sun's CC. I truncated the line when I posted. Here's the
original command line:-

cd /export/home/krkicmp/SpreadAPO;
/opt/SUNWspro/bin/../WS6U2/bin/dmake -f Makefile.krkicmp.SpreadAPO -m
serial project

/opt/SUNWspro/bin/../WS6U2/bin/CC -g -xsb -c -o output/APOBS.o
APOBS.cpp
CC: language sb not recognized
CC: APOBS.cpp: linker input file unused because linking not done
/opt/SUNWspro/bin/../WS6U2/bin/CC -g -xsb -c -o
output/AbstractFunction.o AbstractFunction.cpp
CC: language sb not recognized
CC: AbstractFunction.cpp: linker input file unused because linking not
done
/opt/SUNWspro/bin/../WS6U2/bin/CC -g -xsb -c -o
output/MargrabeBS.o MargrabeBS.cpp
CC: language sb not recognized
CC: MargrabeBS.cpp: linker input file unused because linking not done
/opt/SUNWspro/bin/../WS6U2/bin/CC -g -xsb -c -o
output/RootSearch.o RootSearch.cpp
CC: language sb not recognized
Jul 22 '05 #4

P: n/a
Arnab Nandi wrote:
CC -g -xsb -c -o output/x.o x.cpp
CC: language sb not recognized
CC: x.cpp: linker input file unused because linking not done

Are you sure CC is Sun's compiler and not a symlink to g++?

Yes, its Sun's CC. I truncated the line when I posted. Here's the
original command line:-

/opt/SUNWspro/bin/../WS6U2/bin/CC -g -xsb -c -o output/APOBS.o
APOBS.cpp
CC: language sb not recognized
CC: APOBS.cpp: linker input file unused because linking not done


These really are gcc messages... I can't see how you can get them
here...

Could you try /opt/SUNWspro/bin/../WS6U2/bin/CC -V or the same thing
with --version instead of -V? Then you should try comp.sys.solaris.
Jul 22 '05 #5

P: n/a
Marc wrote:
Then you should try comp.sys.solaris.


comp.unix.solaris, sorry.
Jul 22 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.