Boost 1.70 unordered_set problem with Sun Solaris Studio 12.3

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Boost 1.70 unordered_set problem with Sun Solaris Studio 12.3

Boost - Users mailing list
Hi again,

this time I've a problem to compile a simple program using an unordered_set. The program is the following:

---
//main.cpp
#include <boost/config.hpp>
#include <boost/unordered_set.hpp>
#include <boost/functional/hash.hpp>

int main()
{
   boost::unordered::unordered_set<std::string> set;

   return 0;
}
---

I compile it with the command below:

CC main.cpp -o test -library=stlport4 -I/.../boost_1_70_0/

and I got the error:

ir_build_type(): unexpected type

Please help me!!

Thank you,
    Mirko



_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: Boost 1.70 unordered_set problem with Sun Solaris Studio 12.3

Boost - Users mailing list
If those options are really what you are doing then I guess include path to boost is not set correctly.
/.../boost_1_70_0/ will llook for a directory called ... and for boost_1_70_0 as a subdirectory. You may need to change ... to .. and remove leading / which makes the compiler to look from the root directory
I would suggest using -I../boost_1_70_0 rather than what you have shown

śr., 11 gru 2019 o 17:36 mik via Boost-users <[hidden email]> napisał(a):
Hi again,

this time I've a problem to compile a simple program using an unordered_set. The program is the following:

---
//main.cpp
#include <boost/config.hpp>
#include <boost/unordered_set.hpp>
#include <boost/functional/hash.hpp>

int main()
{
   boost::unordered::unordered_set<std::string> set;

   return 0;
}
---

I compile it with the command below:

CC main.cpp -o test -library=stlport4 -I/.../boost_1_70_0/

and I got the error:

ir_build_type(): unexpected type

Please help me!!

Thank you,
    Mirko


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: Boost 1.70 unordered_set problem with Sun Solaris Studio 12.3

Boost - Users mailing list
No it's just a shortcut to avoid to print the complete path.
Maybe it was better if I wrote:

CC main.cpp -o test -library=stlport4 -I/[...]/boost_1_70_0/

Thanks,
    Mirko




On Wed, Dec 11, 2019 at 5:44 PM Piotr Kowalski <[hidden email]> wrote:
If those options are really what you are doing then I guess include path to boost is not set correctly.
/.../boost_1_70_0/ will llook for a directory called ... and for boost_1_70_0 as a subdirectory. You may need to change ... to .. and remove leading / which makes the compiler to look from the root directory
I would suggest using -I../boost_1_70_0 rather than what you have shown

śr., 11 gru 2019 o 17:36 mik via Boost-users <[hidden email]> napisał(a):
Hi again,

this time I've a problem to compile a simple program using an unordered_set. The program is the following:

---
//main.cpp
#include <boost/config.hpp>
#include <boost/unordered_set.hpp>
#include <boost/functional/hash.hpp>

int main()
{
   boost::unordered::unordered_set<std::string> set;

   return 0;
}
---

I compile it with the command below:

CC main.cpp -o test -library=stlport4 -I/.../boost_1_70_0/

and I got the error:

ir_build_type(): unexpected type

Please help me!!

Thank you,
    Mirko


_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users