VS2005 threads with clr option not working
hello,
I am trying to compile a simple proragm with the thread headers included and the clr option in VS2005
When i include the thread headers and set the to compile with the /clr option the app will not execute and give the error below:
"The application failed to initialize properly (0xc000007b). Click on OK to terminate the application."
this sample program works fine without the clr option, however I am writing a managed c++ app that needs this option on.
also I have used the lib installer from http://www.boost-consulting.com/products/free
the 1.34.1 installer for vs8.0, I have selected all options and still does not work.
I have tried defining BOOST_THREAD_USE_DLL and BOOST_THREAD_USE_LIB, still fails.
BOOST_THREAD_USE_LIB error message is the same as if I did not have this define.
BOOST_THREAD_USE_DLL error message: "This application has failed to start because boost_threads-vc80-mt-gd-1_34_1.dll was not found. Re-Installing the application may fix this problem."
my project prefs have the following settings:
c/c++ - additional include directories= "C:\Program Files\Boost\boost_1_34_1\"
linker - additional include directories= "C:\Program Files\Boost\boost_1_34_1\lib"
[code]
#include "stdafx.h"
#include <iostream>
#include
Wednesday, December 19, 2007, Jason McGuidwin wrote: JM> I am trying to compile a simple proragm with the thread headers JM> included and the clr option in VS2005 JM> When i include the thread headers and set the to compile with the JM> /clr option the app will not execute and give the error below: JM> "The application failed to initialize properly (0xc000007b). Click JM> on OK to terminate the application." You probably encountered one of the VS2005 SP1 peculiarities. Change /entry:main to /entry:?mainCRTStartupStrArray@@$$FYMHP$01AP$AAVString@System@@@Z See http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedbac... for more details. -- www.svprogramming.net
Sergey Vlasov:
Wednesday, December 19, 2007, Jason McGuidwin wrote:
JM> I am trying to compile a simple proragm with the thread headers JM> included and the clr option in VS2005
JM> When i include the thread headers and set the to compile with the JM> /clr option the app will not execute and give the error below: JM> "The application failed to initialize properly (0xc000007b). Click JM> on OK to terminate the application."
You probably encountered one of the VS2005 SP1 peculiarities.
Change /entry:main to /entry:?mainCRTStartupStrArray@@$$FYMHP$01AP$AAVString@System@@@Z
See http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedbac... for more details.
I'd bet on https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedba...
participants (3)
-
Jason McGuidwin
-
Peter Dimov
-
Sergey Vlasov