Operating System - OpenVMS
1748180 Members
4297 Online
108759 Solutions
New Discussion юеВ

Re: CXXLINK options file error

 
SOLVED
Go to solution
William Bigelow
New Member

CXXLINK options file error

I get the following CXXLINK error whenever I attempt to add a library to my link command:

unable to write the linker options file
SYS$DISK:[]ALPHA020255DA.OPT, bad file number

The CXXLINK command will get past this error if I remove the reference to the library.

TNX beforehand
7 REPLIES 7
Robert Gezelter
Honored Contributor

Re: CXXLINK options file error

William,

Please supply the exact command line that you are using.

- Bob Gezelter, http://www.rlgsc.com
Travis Craig
Frequent Advisor

Re: CXXLINK options file error

This is way out there because I can't find solid info on how we fixed a similar problem, but it looks like we fixed it one time by including the device and directory name before each library or options file that we mentioned in the cxxlink command.

Actually, we used logical names to specify the device-and-directory combinations.

I'll post more if I did up a better record of what we fixed and how.

--Travis Craig
My head is cold.
Peter Quodling
Trusted Contributor

Re: CXXLINK options file error

Sounds to me almost like inability to open enough files. Try bumping authorize parameter fillm for that account, and, from memory, that relates to sysgen parameter channelcnt.

q


Leave the Money on the Fridge.
Willem Grooters
Honored Contributor

Re: CXXLINK options file error

I don't know CXXLINK nor do I have access to a machine that has it, but I guess you specified a number of libraries in a row, delimited by ";", casuing VMS to _think_ that "SYS$DISK:[]ALPHA020255DA.OPT" is a version number.
Remove the ";", or specify ";0"
Willem Grooters
OpenVMS Developer & System Manager
William Bigelow
New Member

Re: CXXLINK options file error

The exact command line is:

cxxlink/debug/exe=disk1:[user1.work]test_cpp my_cpp, -
my_other_cpp, -
disk2:[libs]alib/lib/include=my_incs

Thanks
Robert Gezelter
Honored Contributor
Solution

Re: CXXLINK options file error

William,

In your example:
$ cxxlink/debug/exe=disk1:[user1.work]test_cpp my_cpp, -
my_other_cpp, -
disk2:[libs]alib/lib/include=my_incs

Please try using an options file and specifying the library in the options file.

I am running between two meetings at this instant, so I have not had the time to verify it beyond checking against my use of cxxlink in a few client projects.

- Bob Gezelter, http://www.rlgsc.com
William Bigelow
New Member

Re: CXXLINK options file error

Thanks Robert Gezelter, this linker does require an "options" file for libs, etc.