How to Link
The recommended method of linking when some or all of the object files have
references to OCL function calls is to use ICC, and not LINK386, ILINK, etc.
To link an object file (.OBJ) which makes use of OCL, the following should be
used:
- if you are using the project templates and WorkFrame that come with
VisualAge C++, then
- click on
Tools
- make certain that
View
is set to Actions
- right-mouse-click on
Link
- click on
Add
- make certain that:
- general.class ==
Link
- general.name ==
Link (OCL)
- general.program ==
ICC.EXE
- general.session ==
MONITOR
- general.action applies to
FILE
, not PROJECT
- types.source ==
LinkerIn
- types.target ==
LinkerOut
- support.name ==
CPPICL30
- support.entrypoint ==
LINK
- click on
OK
- close the tools setup
- regenerate the makefile to use the new link method, recompile and link
- if you are linking from the command-line, or using your own makefiles, then
- use the command
icc.exe <other optional compiler flags> /B" /pmtype:pm" myfile.obj
- Note:
- See also
How to Compile,
Static Linking and
Dynamic Linking
Page generated by Stéphane Charette on 1997 November 02
Open Class Library (OCL) FAQ © Stéphane Charette, 1997