Re: [cpp] 关于c++最近遇到的几个不得不提的问题

analyst qiaojie at gmail.com
Fri Mar 3 13:34:02 CST 2006


为什么不能解决?使用抽象接口的话就不需要再导出C++函数了,你可以只导出C函数,这样就保证了2进制兼容了。


在06-3-3,Leo Liang <leoliang at gmail.com> 写道:
>
> 还是解决不了二进制兼容性问题啊
> 我遇到的问题是在solaris上使用oracle library,oracle只提供SunStudio编译的lib,我用gcc连接就会出错。
>
> btw,好像这个maillist的都是做windows平台的多,unix的少?
>
>
>
> -----------------------------------------------------------------------------------------
> Leo Liang
> E-mail:                                     leo.liang at gmail.com
> Blog (tech & learning):               http://aleung.blogbus.com
> Blog (photography & outdoor):    http://sunnyday.cn2k.net
> Delicious bookmark:                  http://del.icio.us/aleung
>
> -----------------------------------------------------------------------------------------
>
>
>
> On 3/2/06, analyst <qiaojie at gmail.com> wrote:
> >
> >
> 根据多年来C++做大型工程总结下来的经验,对于C++模块应该坚持两个原则,复杂对象使用抽象接口暴露功能,简单对象使用模板或内联函数暴露功能,即可避免这两个问题,根据这种原则实现的C++模块的成功典型有COM,ATL,STL等等。
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codingnow.com/pipermail/cpp/attachments/20060303/2d8f663c/attachment.html


More information about the Cpp mailing list