Solved

Solaris CC - could not open file "ir.out"

Posted on 2004-09-17
1
501 Views
Last Modified: 2008-02-26
I am trying to build an C++ program (Tuxedo server) which I have inherited.

I get the following error:

Could not open file "ir.out"
SunWS_cache: Error: Error occurred in invoked compiler, exit status = 1(2).  Aborting....
CMDTUX_CAT:1832: ERROR: can't execute CC -w -w  -D_REENTRANT -mt -R/usr/lib/lwp   -I$TUXDIR/include -o

The compiler is /app/SUNWspro/WS6U1/bin/cc

There was an old ir.out of 0 blocks. I get the same error if I remove this.

I would appreciate any pointers as to whether e.g. this is an environmental problem.
0
Comment
Question by:tonyhoss
1 Comment
 
LVL 15

Accepted Solution

by:
efn earned 500 total points
ID: 12089657
I don't know what the real problem is, but I have encountered the same problem and I can give you a workaround that worked for me.

Rig it so the link will fail with an unresolved reference.  In my case, I delete a source file from the list in the makefile and rebuild.  The method may be different in your case.

Then restore whatever was missing and build again.  This makes the ir.out error magically disappear.  At least, it does for me.

--efn
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question