注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

信息 灵感 创新

I? =Information,Inspiration,Innovation

 
 
 

日志

 
 
关于我

we are 5. Mathematics, Computation, Programming, Engineering, and Making fun of life.

网易考拉推荐

Open C++ Programmer's Guide(10)  

2014-06-18 12:47:27|  分类: UG NX |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Building Open C++ Applications

This section addresses the various system issues involved in building and executing Open C++ applications.

Platforms

Open C++ applications are only supported on the following platforms:

Platform: Hewlett-Packard (HP)

Silicon Graphics (SGI)

Sun

Windows/NT

Open C Development Tools

The basic Open C development tools (i.e., ufcomp, uflink, ufmenu, and Microsoft Visual C++) successfully compile and link Open C++ applications. The following guidelines are presented in compiling and linking Open C++ applications

ufcomp, uflink, and ufmenu Development Guidelines
  • An extension of .C, .cc, .cpp, or .cxx may be used with the ufcomp compile engine or with ufmenu. If you choose to use tools other than the provided Open C development tools, the compile switches used in the tools need to be replicated in the tools that you use.

  • Unlike basic Open C API applications, the libraries containing the Open C++ functionality are not linked into NX. As a result, when either an internal or an external Open C++ application is linked, the location for the libraries as well as the library name must be specified on the link line.
  • On UNIX systems, you should specify this as:

    ${UGII_BASE_DIR}/ugii/uglibs openpp vmathpp.

  • If you use a location other than the location shown above, you will have to adjust your LD_LIBRARY_PATH or SHLIB_PATH variable to successfully run your Open C++ application.

  • On Windows/NT systems, you should add the following import libraries to the uflink.mak file:

    libopenpp.lib libvmathpp.lib

  • The basic Open C compilation tools will automatically look in the correct directories to find the necessary header files for Open C++ applications.

  • If you have an existing header file that matches the name of a Open C++ header file, you may experience a collision on the file name. However, since Open C++ header files use a .hxx extension this is unlikely to occur.
  • Since Open C++ uses templates in its interface, you need to be careful to compile and link in the same location. Many of the vendor compilers create an intermediate directory for storing object files or other files providing guidance to the linker in terms of expanding the templates. The directories that store these files must be available at both compile and link time.
Visual C++ Development Guidelines
  • You should make sure that your project links with the following libraries:

    libopenpp.lib libvmathpp.lib

    The Open C AppWizard will automatically add these libraries.

  • For your convenience, the import libraries referenced above are in the Open C directory and the DLLs they reference are in the standard location for all NX DLLs so you will not need to alter your PATH variable.

  评论这张
 
阅读(630)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016