Computing.Net > Forums > Programming > Help with Boost in dev-c++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Help with Boost in dev-c++

Reply to Message Icon

Name: theritz
Date: September 16, 2006 at 23:54:07 Pacific
OS: Win XP & freeBSD
CPU/Ram: i
Product: d
Comment:

Alright i have a simple problem getting dev-cpp ide compiler to configure to run boost filesystem. I get the following error in this code.

#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <iostream>

int main(int argc, char* argv[])
{
boost::filesystem::path myPath(argv[0]);
boost::filesystem::ofstream file(myPath);
}

Here are the errors i get.

[Linker error] undefined reference to `boost::filesystem::path::path(char const*)'
[Linker error] undefined reference to
`boost::filesystem::path::native_file_string() const'

Any help would be great!

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: tonysathre
Date: September 17, 2006 at 00:52:04 Pacific
Reply:

I'm not a programmer, but are you sure that .hpp is the correct file extension for a C header file? I've done some programming in C, and all the header files were .h.

"Computer security." — Oxymoron


0

Response Number 2
Name: tonysathre
Date: September 17, 2006 at 03:31:26 Pacific
Reply:

Google turns up some links on this problem also.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Please review for me (bat... opening a folder



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Help with Boost in dev-c++

Compiling Errors in Dev C++ www.computing.net/answers/programming/compiling-errors-in-dev-c-/9484.html

Dev C++ help www.computing.net/answers/programming/dev-c-help/12264.html

Help with a C Program / Newbie www.computing.net/answers/programming/help-with-a-c-program-newbie/8071.html