开发者

how do you release code like a static library in windows

开发者 https://www.devze.com 2022-12-28 11:28 出处:网络
I had a question with regards doing an official release of code. Its my first time using VS2008 so bear with me.

I had a question with regards doing an official release of code. Its my first time using VS2008 so bear with me.

I have my header file that has the api's which grant them access to the lib. now there is a debug and a releas开发者_运维问答e version that is talked about.

how do i give these to my client? do i need to give them both folders or just the lib file along with the header file for that lib. The lib is ready for use directly. but i am a little confused between debug vs release.

thanks


You need to give them the headers and the release version of your lib.


You should provide one .h file and at least 4 versions of the .lib. The important choice is C/C++, Code Generation, Runtime Library. You can't predict whether the client will use the static or the DLL version of the CRT.

You'll also want to #define _CRT_NOFORCE_MANIFEST so you don't inject the CRT version number you use in the client's manifest.


Yes, all you need to provide are the .h and libs

Some companies only provide the release lib.

(You may need to provide more configurations - for example single vs multi-threaded libraries, etc. You will probably want to figure out how your users are using the lib and make sure that there are no conflicts with other libraries.)


To clear up your doubts in your own mind, write a mini test app that relies on a release version of your library. You can be your own customer and see what it is like.

You could even find another machine to write the app on and then copy over the headers and lib file and see if you can do a release build of the test app.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号