Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Boost Libraries
Index -> Programming, C++ -> C++ Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Valheru




PostPosted: Tue Sep 26, 2006 5:16 am   Post subject: Boost Libraries

Hi

I am wondering whether or not anyone here has had any experience using the boost libraries. I'm using VS 2003 as a complier and complied the boost libraries for it. At this point i am wondering how i like the actual library files to VS, do i just use include statements or what.

Thanks in advance.
Sponsor
Sponsor
Sponsor
sponsor
r.3volved




PostPosted: Tue Sep 26, 2006 6:43 am   Post subject: (No subject)

I use the boost library in VS2005
To link the libraries to your compiler, go to:

Tools >> Options

In the projects and solutions menu, go to:

VC++ Directories and select the drop down menu to the right labeled "Executable Files" and change it to "Include Files" (Platform==win32)

Add a new Include directory to "C:\Boost\include\boost-1_33_1" (or wherever you have that folder unpacked)

then in your application you: #include <boost/whatever_module>
Valheru




PostPosted: Tue Sep 26, 2006 5:21 pm   Post subject: (No subject)

still a problem, i did what you told me and under the boost folder, i put the libs folder, however when i try to compile the following program:

Quote:

#include "stdafx.h"
#include "boost/filesystem/operations.hpp" // includes boost/filesystem/path.hpp
#include "boost/filesystem/fstream.hpp" // ditto



int main()
{

return 0;
}

I get this error
Quote:
Rename fatal error LNK1104: cannot open file 'libboost_filesystem-vc71-mt-sgd-1_33_1.lib'


Anyone know where this file is to be located?
i added it to the boost, directory as well as the /boost/filesystem directory with no success.

Thank you in advance for your help[/quote]
Andy




PostPosted: Wed Sep 27, 2006 6:25 pm   Post subject: (No subject)

you need to include the lib directives too. do the samething you did for the includes, but select library this time, and direct it to the lib folder
Display posts from previous:   
   Index -> Programming, C++ -> C++ Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: