Installation issue: cannot pass the last test in tutorial,

Hi, I'm a novice here. Sorry if this issue has been posted already. I've searched the archived in the mailing list, and did some searches by google, but couldn't find anything relevant. I've just tried to install boost library to use with Visual Studio 2005. I followed all the steps indicated in the tutorial "getting started on Windows". Everything seems to work fine until the last step, section 6 "link your program to boost library". I did copy/paste the example in this section, and follow the instructions for the configuration. Then I built it with success. However, when I tested the program with the command line like suggested in section 6.4, but it failed. It keep saying that "the system cannot execute the specific program". The command line I used is: "C:\Documents and Settings\A_M\My documents\Visual Studio 2005\Projects\example\debug\example.exe" < "C:\jayne.txt" is this right? Btw, in doubt of a wrong step somewhere, I tried another tutorial that I found on internet at step 1, http://www.quantnet.org/forum/showthread.php?t=2221&page=2 (it's supposed to install boost for VS2008, but I thinks it should be not much different). However it didn't fix the problem. Moreover, it made the boost folder increase from around 900Mb to 8.9Gb???? Something must be wrong? Help me please, Sorry for the long post and many thanks in advance, AM. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

AMDG Minh Anh wrote:
I'm a novice here. Sorry if this issue has been posted already. I've searched the archived in the mailing list, and did some searches by google, but couldn't find anything relevant.
I've just tried to install boost library to use with Visual Studio 2005. I followed all the steps indicated in the tutorial "getting started on Windows". Everything seems to work fine until the last step, section 6 "link your program to boost library".
I did copy/paste the example in this section, and follow the instructions for the configuration. Then I built it with success. However, when I tested the program with the command line like suggested in section 6.4, but it failed. It keep saying that "the system cannot execute the specific program".
The command line I used is:
"C:\Documents and Settings\A_M\My documents\Visual Studio 2005\Projects\example\debug\example.exe" < "C:\jayne.txt"
is this right?
I don't see anything obviously wrong, assuming that both files exist. Do you get the same error if you try to run it from the IDE? In Christ, Steven Watanabe

Hi Steven,
Thanks for your reply,
Indeed, both files exist and in the correct path as indicated in the command line.
but what did you mean by running from IDE? Because we need an argument in the command line, so from the VS2005, I launch tools/VS2005 Command Prompt, and then type the same command line as before? And it'll yield the same resultat.
What could I do?
Many thanks,
A.M
Steven Watanabe
I'm a novice here. Sorry if this issue has been posted already. I've searched the archived in the mailing list, and did some searches by google, but couldn't find anything relevant.
I've just tried to install boost library to use with Visual Studio 2005. I followed all the steps indicated in the tutorial "getting started on Windows". Everything seems to work fine until the last step, section 6 "link your program to boost library".
I did copy/paste the example in this section, and follow the instructions for the configuration. Then I built it with success. However, when I tested the program with the command line like suggested in section 6.4, but it failed. It keep saying that "the system cannot execute the specific program".
The command line I used is:
"C:\Documents and Settings\A_M\My documents\Visual Studio 2005\Projects\example\debug\example.exe" < "C:\jayne.txt"
is this right?
I don't see anything obviously wrong, assuming that both files exist. Do you get the same error if you try to run it from the IDE? In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

AMDG Minh Anh wrote:
but what did you mean by running from IDE? Because we need an argument in the command line, so from the VS2005, I launch tools/VS2005 Command Prompt, and then type the same command line as before? And it'll yield the same resultat.
You don't actually need to an argument to start the program. It reads from the standard input. I have no idea what is wrong so: 1) Are you linking to the static regex library or the dll? (compile with -DBOOST_LIB_DIAGNOSTIC) 2) Are any project settings different from the default? 3) Can you run hello world? In Christ, Steven Watanabe

Steven,
1. I'm really sorry for my ignorance, but could you please give me some instruction to do these tests? How do I compile with additional option with visual studio?
2. I don't think any project is setting different from default. I just created a new project "example" like as told in the tutorial. And change the configuration for this project. It is compiled normally, but the file .exe generated cannot be launched by the system.The "example.cpp" is as follow:
#include "stdafx.h"
#include

AMDG Minh Anh wrote:
1. I'm really sorry for my ignorance, but could you please give me some instruction to do these tests? How do I compile with additional option with visual studio?
You can set compiler options in Project->/project name/ properties->Configuration properties->C/C++.
4. Ah, yes. When I checked the file "example.exe" with Dependency Walker, I got 03 .dll missing: msvcp80d.dll, msvcr80d.dll, and dwmapi.dll. I really don't know what does that means, and how to fix this. But maybe you could tell me something from this?
This is the problem. I remember having problems with msvcp80d.dll and friends in the past. Do these files exist on your computer? In Christ, Steven Watanabe

The files msvcp/r80d.dll are both found in the folder
C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.DebugCRT
but "dwmapi.dll" cannot be found nowhere.
What's about the difference between release version (which works fine although still missing of dwmapi.dll), and debug version (which is not work, and indicates that 3 files are not found)?
A.M
Steven Watanabe
1. I'm really sorry for my ignorance, but could you please give me some instruction to do these tests? How do I compile with additional option with visual studio?
You can set compiler options in Project->/project name/ properties->Configuration properties->C/C++.
4. Ah, yes. When I checked the file "example.exe" with Dependency Walker, I got 03 .dll missing: msvcp80d.dll, msvcr80d.dll, and dwmapi.dll. I really don't know what does that means, and how to fix this. But maybe you could tell me something from this?
This is the problem. I remember having problems with msvcp80d.dll and friends in the past. Do these files exist on your computer? In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

AMDG Minh Anh wrote:
The files msvcp/r80d.dll are both found in the folder
C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.DebugCRT
but "dwmapi.dll" cannot be found nowhere.
What's about the difference between release version (which works fine although still missing of dwmapi.dll), and debug version (which is not work, and indicates that 3 files are not found)?
I'm sorry that I can't help more, but I really have no idea how to fix this. It seems like it's more of a compiler/linker problem than a Boost problem. In Christ, Steven Watanabe

Minh Anh wrote:
The files msvcp/r80d.dll are both found in the folder
C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.DebugCRT
but "dwmapi.dll" cannot be found nowhere.
What's about the difference between release version (which works fine although still missing of dwmapi.dll), and debug version (which is not work, and indicates that 3 files are not found)?
I found a Microsoft forum that seems to have an answer about dwmapi.dll: http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/bc7a7414-656... In short, dwmapi.dll comes with Windows Vista and will never be available for earlier versions of Windows, and something (probably Internet Explorer 7) is forcing the program to depend on it.

Anyway, many thanks to Steven and Andrew for your concerns to my problem.
A.M
Steven Watanabe
The files msvcp/r80d.dll are both found in the folder
C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.DebugCRT
but "dwmapi.dll" cannot be found nowhere.
What's about the difference between release version (which works fine although still missing of dwmapi.dll), and debug version (which is not work, and indicates that 3 files are not found)?
I'm sorry that I can't help more, but I really have no idea how to fix this. It seems like it's more of a compiler/linker problem than a Boost problem. In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

<continue>
5. One more thing that might be useful. If I build in release, then the test is passed like it is supposed to do (read and return the subject of email).
And even in this case, checking with Dependency Walker also has a warning of missing "dwmapi.dll".
Thanks Steven,
A.M
Steven Watanabe
but what did you mean by running from IDE? Because we need an argument in the command line, so from the VS2005, I launch tools/VS2005 Command Prompt, and then type the same command line as before? And it'll yield the same resultat.
You don't actually need to an argument to start the program. It reads from the standard input. I have no idea what is wrong so: 1) Are you linking to the static regex library or the dll? (compile with -DBOOST_LIB_DIAGNOSTIC) 2) Are any project settings different from the default? 3) Can you run hello world? In Christ, Steven Watanabe _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Andrew Holden
-
Minh Anh
-
Steven Watanabe