Maybe you can have a look at this:
http://msdn.microsoft.com/en-us/library/3y1sfaz2.aspx
CPPCMS_API Macro supports several platforms,VC++ need __declspec(dllexport)
or __declspec(dllimport),and Linux doesn't need this.
陈抒
Best regards
http://blog.csdn.net/sheismylife
2011/12/25 44073786 <440...@qq...>
>
> **
> I know the file, I want to know .what is problem it can solved?
>
> ------------------ 原始邮件 ------------------
> *发件人:* "csfreebird"<csf...@gm...>;
> *发送时间:* 2011年12月25日(星期天) 上午10:38
> *收件人:* "cppcms-users"<cpp...@li...>; **
> *主题:* Re: [Cppcms-users] what is mean of the CPPCMS_API ?
>
> Do you want to know where the definition of CPPCMS_API?
> You can find it in defs.h file.
>
> #if defined(__WIN32) || defined(_WIN32) || defined(WIN32) ||
> defined(__CYGWIN__)
> # if defined(DLL_EXPORT)
> # if defined(CPPCMS_SOURCE) || defined(CPPCMS_LOCALE_SOURCE)
> # define CPPCMS_API __declspec(dllexport)
> # else
> # define CPPCMS_API __declspec(dllimport)
> # endif
> # else
> # define CPPCMS_API
> # endif
> #else // ELF BINARIES
> # define CPPCMS_API
> #endif
>
> 陈抒
> Best regards
> http://blog.csdn.net/sheismylife
>
>
> On Sun, Dec 25, 2011 at 10:35 AM, 陈抒 <csf...@gm...> wrote:
>
>> What problem should be solved?
>>
>>
>> 陈抒
>> Best regards
>> http://blog.csdn.net/sheismylife
>>
>>
>> On Sun, Dec 25, 2011 at 10:11 AM, 44073786 <440...@qq...> wrote:
>>
>>>
>>> When i read the source code ,I find the CPPCMS_API in service.h file at
>>> 70 line (class CPPCMS_API service).I have never seen this use . what
>>> problem did it can solved ? who can tell me it. thank you very much.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Write once. Port to many.
>>> Get the SDK and tools to simplify cross-platform app development. Create
>>> new or port existing apps to sell to consumers worldwide. Explore the
>>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>>> http://p.sf.net/sfu/intel-appdev
>>> _______________________________________________
>>> Cppcms-users mailing list
>>> Cpp...@li...
>>> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>>>
>>>
>>
> **
>
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
|