Solved

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

Posted on 2004-09-17
1
461 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now