2012-01-20 13 views
18

मैं जाम फाइलों में देख रहा था, पुस्तकालय का नाम कैसे बनाया गया है। उदाहरण: libboost_log-mgw46-mt-1_48.dllबूस्ट: कैसे bjam लाइब्रेरी नाम बनाता है?

मैं अंतिम भाग को अनदेखा करना चाहता हूं, मेरे निर्मित नाम के साथ लिंकर को -o पैरामीटर कैसे पास करना है। मेरे पास कुछ संस्करण हैं और एक बड़ी परियोजना में लिंक करने से मुझे प्रोजेक्ट फ़ाइल में बदलाव करने के लिए मजबूर किया जाता है और यह बहुत सारे स्थान हैं।

मेरी इच्छा libboost_log.dll प्राप्त करना है। मैंने अभी नाम बदल दिया है, लेकिन जब कोई प्रोग्राम निष्पादित करता है तो यह कहता है कि यह libboost_log-mgw46-mt-1_48.dll फ़ाइल नहीं ढूंढ सकता है।

उत्तर

23

बूस्ट बज़म नामकरण परिभाषित के 3 अलग-अलग लेआउट हैं। मदद Jamroot फ़ाइल में रखा के शब्दों में (मैं किसी भी बेहतर ऑनलाइन प्रलेखन के बारे में पता नहीं कर रहा हूँ):

# --layout=<layout>  Determines whether to choose library names 
#       and header locations such that multiple 
#       versions of Boost or multiple compilers can 
#       be used on the same system. 
# 
#        versioned - Names of boost binaries 
#        include the Boost version number, name and 
#        version of the compiler and encoded build 
#        properties. Boost headers are installed in a 
#        subdirectory of <HDRDIR> whose name contains 
#        the Boost version number. 
# 
#        tagged -- Names of boost binaries include the 
#        encoded build properties such as variant and 
#        threading, but do not including compiler name 
#        and version, or Boost version. This option is 
#        useful if you build several variants of Boost, 
#        using the same compiler. 
# 
#        system - Binaries names do not include the 
#        Boost version number or the name and version 
#        number of the compiler. Boost headers are 
#        installed directly into <HDRDIR>. This option 
#        is intended for system integrators who are 
#        building distribution packages. 
# 
#       The default value is 'versioned' on Windows, and 
#       'system' on Unix. 

system लेआउट नामकरण योजना आप चाहते हैं देता है - किसी भी अन्य जानकारी के बिना सादे basename।

इन लेआउट के अनुसार बूस्ट आउटपुट फ़ाइलों के नाम tag नियम का उपयोग करके उत्पन्न होते हैं, boostcpp.jam फ़ाइल में परिभाषित किया गया है।

+4

यह मुझे परेशान करता है कि बूस्ट प्रलेखन में खोजने के लिए यहां पर यह खोजना आसान है। – iAdjunct

संबंधित मुद्दे