Boost in Eclipse CDT..
Hi All,
I saw an earlier post that talked about this similar problem,
but the only reply did not solve my problem.
I have eclipse 3.2.2, cdt 3.1.1.1
I have to use these versions because I am also using the
cell SDK 2.1.
I am getting the error:
expected primary-expression before ')' token
expected primary-expression before '>' token
The line of code looks like:
#include
On Dec 14, 2007 3:01 PM, Filip Balas
Hi All,
I saw an earlier post that talked about this similar problem, but the only reply did not solve my problem.
I have eclipse 3.2.2, cdt 3.1.1.1
I have to use these versions because I am also using the cell SDK 2.1.
I am getting the error: expected primary-expression before ')' token expected primary-expression before '>' token
The line of code looks like: #include
#include namespace fs = boost::filesystem;
fs::path configPath(fs::initial_pathfs::path());
I have 'boost_filesystem' in my libraries (-l) section in my Linker tab.
I have '/usr/include/boost' in my include paths section (-l) in my compiler & debug options. (this is the right path)
I am wondering if this may be a problem with the version of eclipse/cdt that I'm using, or if someone else has had this problem and knows of a solution?
That's really odd, because the same thing (save for the masking of the namespace) worked for me on MinGW. http://www.dev.fsdev.net/KW/KingdomWars/src/AppLayer/DirectoryTree.cpp Fifth line down. -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! If Microsoft is the Wal*Mart of the Software World, then Linux is the Home Depot
Hi Chris,
So you are compiling this in Eclipse using
the same versions of everything as me, except
you're on windows with mingw?
Filip
On Dec 14, 2007 4:30 PM, Chris Miller
On Dec 14, 2007 3:01 PM, Filip Balas
wrote: Hi All,
I saw an earlier post that talked about this similar problem, but the only reply did not solve my problem.
I have eclipse 3.2.2, cdt 3.1.1.1
I have to use these versions because I am also using the cell SDK 2.1.
I am getting the error: expected primary-expression before ')' token expected primary-expression before '>' token
The line of code looks like: #include
#include namespace fs = boost::filesystem;
fs::path configPath(fs::initial_pathfs::path());
I have 'boost_filesystem' in my libraries (-l) section in my Linker tab.
I have '/usr/include/boost' in my include paths section (-l) in my compiler & debug options. (this is the right path)
I am wondering if this may be a problem with the version of eclipse/cdt that I'm using, or if someone else has had this problem and knows of a solution?
That's really odd, because the same thing (save for the masking of the namespace) worked for me on MinGW.
http://www.dev.fsdev.net/KW/KingdomWars/src/AppLayer/DirectoryTree.cpp
Fifth line down.
-- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! If Microsoft is the Wal*Mart of the Software World, then Linux is the Home Depot _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Dec 16, 2007 5:48 PM, Filip Balas
Hi Chris,
So you are compiling this in Eclipse using the same versions of everything as me, except you're on windows with mingw?
Yes, that is correct. I don't know why boost wouldn't work on Linux. I haven't tested my code yet for Linux, but I think it should work. Man, Boost sure is a pain to get working, even though it is nice once it's working. -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! If Microsoft is the Wal*Mart of the Software World, then Linux is the Home Depot
Yah, that's what I'm finding.
I think I will enjoy it a lot if I can ever get it to work :-P
Filip
On Dec 17, 2007 3:15 PM, Chris Miller
On Dec 16, 2007 5:48 PM, Filip Balas
wrote: Hi Chris,
So you are compiling this in Eclipse using the same versions of everything as me, except you're on windows with mingw?
Yes, that is correct. I don't know why boost wouldn't work on Linux. I haven't tested my code yet for Linux, but I think it should work.
Man, Boost sure is a pain to get working, even though it is nice once it's working.
--
Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! If Microsoft is the Wal*Mart of the Software World, then Linux is the Home Depot _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
For those who might run into the same error, the only thing that
would work for me is to change my code to the following:
#include
Yah, that's what I'm finding. I think I will enjoy it a lot if I can ever get it to work :-P
Filip
On Dec 17, 2007 3:15 PM, Chris Miller
wrote: On Dec 16, 2007 5:48 PM, Filip Balas
wrote: Hi Chris,
So you are compiling this in Eclipse using the same versions of everything as me, except you're on windows with mingw?
Yes, that is correct. I don't know why boost wouldn't work on Linux. I haven't tested my code yet for Linux, but I think it should work.
Man, Boost sure is a pain to get working, even though it is nice once it's working.
--
Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman John 3:16! If Microsoft is the Wal*Mart of the Software World, then Linux is the Home Depot _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Dec 18, 2007 4:59 PM, Filip Balas
For those who might run into the same error, the only thing that would work for me is to change my code to the following: #include
#include using namespace boost::filesystem;
//fs::path configPath(fs::initial_pathfs::path()); path configPath = system_complete(path("./appSettings.cfg", native));
Don't know why the boost samples don't work, but this does.
Are you sure this isn't a case of C++'s Most Vexing Parse? // This is a function declaration! fs::path configPath(fs::initial_pathfs::path()); --Michael Fawcett
If that's the case, then why is it an example on the Boost docs ;-)
Filip
On Dec 19, 2007 10:11 AM, Michael Fawcett
On Dec 18, 2007 4:59 PM, Filip Balas
wrote: For those who might run into the same error, the only thing that would work for me is to change my code to the following: #include
#include using namespace boost::filesystem;
//fs::path configPath(fs::initial_pathfs::path()); path configPath = system_complete(path("./appSettings.cfg", native));
Don't know why the boost samples don't work, but this does.
Are you sure this isn't a case of C++'s Most Vexing Parse?
// This is a function declaration! fs::path configPath(fs::initial_pathfs::path());
--Michael Fawcett
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On Dec 20, 2007 1:31 PM, Filip Balas
On Dec 19, 2007 10:11 AM, Michael Fawcett
wrote: On Dec 18, 2007 4:59 PM, Filip Balas
wrote: For those who might run into the same error, the only thing that would work for me is to change my code to the following: #include
#include using namespace boost::filesystem;
//fs::path configPath(fs::initial_pathfs::path()); path configPath = system_complete(path("./appSettings.cfg", native));
Don't know why the boost samples don't work, but this does.
Are you sure this isn't a case of C++'s Most Vexing Parse?
// This is a function declaration! fs::path configPath(fs::initial_pathfs::path());
If that's the case, then why is it an example on the Boost docs ;-)
Good question. I'm not the author, nor am I the maintainer. Try your code again like so: fs::path configPath((fs::initial_pathfs::path())); --Michael Fawcett
My question stemmed from the code available here:
http://www.boost.org/libs/filesystem/example/simple_ls.cpp
Filip
On Dec 19, 2007 10:11 AM, Michael Fawcett
On Dec 18, 2007 4:59 PM, Filip Balas
wrote: For those who might run into the same error, the only thing that would work for me is to change my code to the following: #include
#include using namespace boost::filesystem;
//fs::path configPath(fs::initial_pathfs::path()); path configPath = system_complete(path("./appSettings.cfg", native));
Don't know why the boost samples don't work, but this does.
Are you sure this isn't a case of C++'s Most Vexing Parse?
// This is a function declaration! fs::path configPath(fs::initial_pathfs::path());
--Michael Fawcett
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Chris Miller
-
Filip Balas
-
Michael Fawcett