Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

914 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

15 Experts available now in Live!

Get 1:1 Help Now