How to Compile
If you wish to correctly compile your OCL application, then the following
should be used:
- if you are using the project templates and WorkFrame that come with Visual Age, then
- click on
Tools
- make certain that
View
is set to Actions
- expand the
Compile
subtree
- right-mouse-click on
C++ Compiler
- select
File Options
- select the
Object
tab
- select the
Multithread
option for Library selection
(this sets the /Gm+ flag)
- click on
OK
- close the tools setup
- regenerate the makefile and recompile
- if you are compiling from the command-line, or using your own makefiles, then
- use the command
icc.exe /Gm+ /C <other optional compiler flags> myfile.cpp
- Note:
- See also
/Gm+,
How to Link,
Static Linking and
Dynamic Linking
Page generated by Stéphane Charette on 1997 June 30
Open Class Library (OCL) FAQ © Stéphane Charette, 1997