none
Using a Boost library with windows form applications? RRS feed

  • Question

  • Right, 

    So Boost expects a /clr switch when compiling, and windows forms use /clr:pure, which creates about 30+ link errors when trying to compile an application with boost.

     

    Now, obviously you can't just compile it with /clr, but is there any other way to get a boost library in a windows form?

     

    Thanks in advanced for any help!

    • Moved by Neddy Ren Tuesday, January 3, 2012 6:15 AM C++ issue (From:Windows Forms General)
    Sunday, January 1, 2012 4:19 PM

Answers

  • Hello,

     

    /clr:pure, this setting is for managed codes only. The Boost should be complier under the native codes.

     

    Therefore, you need to change this settings to /clr

     

    On other hand, I would suggest you to separate the managed codes and un-managed codes into different CPP files, you can wrap them into different functions and call them through the head file.

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Tuesday, January 3, 2012 6:20 AM
    Moderator