Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7548731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T09:46:23+00:00 2026-05-30T09:46:23+00:00

I have a makefile. When I run it on Unix I get this error:

  • 0

I have a makefile. When I run it on Unix I get this error:

cc -I/opt/oracle/product/9.2.0/rdbms/demo -I/opt/oracle/product/9.2.0/rdbms/public \
   -I/opt/oracle/product/9.2.0/plsql/public \
   -I/opt/oracle/product/9.2.0/network/public -I../common -I../include -I. \
   -L/opt/oracle/product/9.2.0/lib -L/opt/oracle/product/9.2.0/rdbms/lib -L../../lib \
   -g -errwarn=%all -Xt  -lclntsh -ldl -Bstatic -lclient9 -lvsn9 -lcommon9 -lgeneric9 \
   -lmm -lcore9 -lnls9  -lwssmbx -ldes -lnsl -lsocket -lgen -lm -o bessToWss

usage: cc [ options] files.  Use 'cc -flags' for details  
*** Error code 1

What does “usage: cc [ options] files. Use 'cc -flags' for details” mean?

I’m not sure why I get the error because I do use cc -flags:

$(TARGET_DIR)/bessToWss: $(INTFOBJS)  
    cc $(CFLAGS) $(INTFOBJS) $(OCISHAREDLIBS) -o $@

EDIT: Adding my entire makefile

ORACLE_HOME=/opt/oracle/product/9.2.0

COMMON_SRC=../common
BNS_INCLUDE=../include
LIBHOME=$(ORACLE_HOME)/lib/
RDBMSLIB=$(ORACLE_HOME)/rdbms/lib/

WSSLIBS     =-lwssmbx -ldes
LLIBRDBMS_CLT   =-lclient9 -lvsn9 -lcommon9 -lgeneric9 -lmm
LLIBCLNTSH      =-lclntsh -ldl
CORELIBS        =-lcore9 -lnls9 
LDLIBS          =-lnsl -lsocket -lgen -lm
EXSYSLIBS       =-R $(ORACLE_HOME)/lib

STATICTTLIBS    =$(LLIBRDBMS_CLT) $(CORELIBS) $(WSSLIBS) $(LDLIBS)
OCISHAREDLIBS   =$(LLIBCLNTSH) -Bstatic $(STATICTTLIBS)


LDFLAGS     =-L$(ORACLE_HOME)/lib -L$(ORACLE_HOME)/rdbms/lib -L../../lib

INCLUDE     =-I$(ORACLE_HOME)/rdbms/demo -I$(ORACLE_HOME)/rdbms/public -I$(ORACLE_HOME)/plsql/public -I$(ORACLE_HOME)/network/public -I$(COMMON_SRC) -I$(BNS_INCLUDE) -I. 

CFLAGS      =$(INCLUDE) $(LDFLAGS) -g -errwarn=%all -Xt

BESSOBJS=bessToWss.o


COMMONLIST=$(COMMON_SRC)/oracle.c \
    $(COMMON_SRC)/logger.c

INTFOBJS=$(BESSOBJS) $(COMMONLIST)


$(TARGET_DIR)/bessToWss: $(INTFOBJS)
    cc $(CFLAGS) $(INTFOBJS) $(OCISHAREDLIBS) -o $@
clean:
    $(RM) *.o
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T09:46:24+00:00Added an answer on May 30, 2026 at 9:46 am

    It means you have an invalid compiler option on the command line. It might be that you are using the ‘wrong’ compiler (maybe GCC instead of Sun’s compiler, for example). The probable problem options I see are:

    • -Xt
    • -errwarn=%all

    and maybe (but probably not)

    • -Bstatic

    The others would not lead to usage errors like that.

    (NB: It would help to identify the machine and the compiler you are using, and the compiler Oracle expects you to use.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this in my Makefile: run: for x in *.bin ; do ./$$x
I have this in my Makefile: BINS = $(shell echo *.bin) .PHONY: $(BINS) run:
I have this Makefile and each line run OK separately, but when I do
I have a Makefile that looks like this CXX = g++ -O2 -Wall all:
Hello I have a problem while trying to run a makefile. I change the
I have a Makefile so that when I type make the following commands run:
I have this in my Makefile: %.x: %.c $(CC) $(CFLAGS) -o $@ $^ So
I have a certain problem with my Makefile. With this command, I can compile
I would like to have a makefile like this: cudaLib : # Create shared
In a larger project, I have set up ./tests/Makefile.am to run a number of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.