Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6845333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:29:17+00:00 2026-05-27T00:29:17+00:00

Using Visual Studio 2008 and Boost Libraries 1.46.1 I want to compile and link

  • 0

Using Visual Studio 2008 and Boost Libraries 1.46.1 I want to compile and link the following with the /CLR flag:

#include <boost/thread/thread.hpp>
void run() {}
int main(int argc, char *argv[])
{
    boost::thread t(run);   
}

The first error is about a forward-declared dummy-struct in boost::thread. This post
works around this by declaring:

namespace boost {
    struct thread::dummy {};
}

Sure, I now can compile, but then I get the linker warning

Warning 1 warning LNK4248: unresolved typeref token (0100001F) for ‘boost.detail.win32._SECURITY_ATTRIBUTES’; image may not run

Running the application results in

The application was unable to start correctly (0xc000007b).

None of the suggestions in the previously mentioned forum thread works for me. I have built a static version of the Boost Threads lib, and it runs fine without the /CLR flag. Debug/Release makes no difference. I’m running under Win7 32-bit.

Any hints?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:29:18+00:00Added an answer on May 27, 2026 at 12:29 am

    I’ve already run into this problem, i don’t remember where i got this but one workaround is declare “boost.detail.win32._SECURITY_ATTRIBUTES” after including all the boost headers like so.

    namespace boost { 
        namespace detail { 
            namespace win32 { 
                struct _SECURITY_ATTRIBUTES: public ::_SECURITY_ATTRIBUTES {}; 
            };
        };
    }; 
    

    Remove the namespaces if you want everyone to see it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Boost with Visual Studio 2008 and I have put the path
Im using Visual Studio 2008, on an ASP.NET C# website. Overall what I want
Using Visual Studio 6.0 I want to use Visual Studio 2008 also. I Already
i am using visual studio 2008 and sql server 2008 i want to print
Using visual studio 2008 SP1, This line: LINK : debug\XXXXX.exe not found or not
I'm using Visual Studio 2008, and I want to implement string formatting function without
I am trying to compile Boost 1.47 for x86 Windows CE using Visual Studio
Using Visual Studio 2008 Team Edition, is it possible to assign a shortcut key
Using Visual Studio 2008 / C# / VS Unit Testing. I have a very
Using Visual Studio 2008, I created a C++ Win32 project. To release the program,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.