سؤال

Out of intellectual curiosity, I was wondering why the boost::filesystem library had a compiled component, while in other cases no compiled components are necessary. What is in the compiled portion that can not be in a hpp?

What really confuses me is that on my computer I compile this portion anyway (before using the library), and I would thus expect it to be possible or even preferred to perform the same compilation I did in BJam every time I build my application.

Why is there the additional .so/.a file?

هل كانت مفيدة؟

المحلول

بعض المكتبات دفعة هي رأس فقط وبعضها تحتاج إلى أن تكون مبنية (النظام، نظام الملفات، الرسم البياني، MPI، التسلسل، إلخ)؛يمكن تكوين العديد من المكتبات التعزيز ليكون إما رأس أو بنيت فقط.

مزايا Libs المبنية بشكل منفصل واضح جدا: يتجمع مشروعك الخاص بشكل أسرع ويعتمد على رمز خارجي أقل.

بالمناسبة، نلقي نظرة على الموضوع التالي: http:// دفعة.2283326.n4.nabble.com / Lighweight-header-files-post-filesystem- tt3749876.html # لا شيء

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top