Fwd: Help needed with include path

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

Fwd: Help needed with include path

Boost - Users mailing list
Hi
I am using Boost on Ubuntu 18.04 LTS, which has boost 1.65.1 installed.  I want to use boost 1.69, which I have installed on another server.  I specify that remote boost path in my makefile and make compiles my source file with:

g++ -c -Wall -m64 -I/net/simdata/OpenSourceLibs/Boost/rel-1.69.0/ -fpic -O3 SINRCalculation.cpp -o _gnuRelease/SINRCalculation.o

Now that source file uses boost/multi_array.hpp. The above compiler command gives error:

In file included from /usr/include/boost/multi_array.hpp:30:0,
                 from SINRCalculation.cpp:25:
/net/simdata/Hudson_OpenSourceLibs/Boost/rel-1.69.0/boost/type_traits.hpp:118:10: fatal error: boost/type_traits/is_nothrow_swappable.hpp: No such file or directory
 #include <boost/type_traits/is_nothrow_swappable.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Now my copy of boost 1.69 does contain is_nothrow_swappable.hpp so, at first sight, that error is surprising.

I think what is happening is the is_nothrow_swappable.hpp is being searched for on the system library path (boost 1.65 does not have that file), not the one I specified using -I.

Am I correct?  If so, how can I force the compiler to use the boost 1.69 path consistently for all paths?

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

Re: Fwd: Help needed with include path

Boost - Users mailing list
On Thu, 24 Jan 2019 at 20:51, David Aldrich via Boost-users <[hidden email]> wrote:
Am I correct?  If so, how can I force the compiler to use the boost 1.69 path consistently for all paths?

Probably, but his is not a Boost issue, maybe give some Ubuntu-forum or -mailing-list a spin.

degski
--
If something cannot go on forever, it will stop" - Herbert Stein

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

Re: Fwd: Help needed with include path

Boost - Users mailing list
In reply to this post by Boost - Users mailing list
> g++ -c -Wall -m64 -I/net/simdata/OpenSourceLibs/Boost/rel-1.69.0/ -fpic -O3 SINRCalculation.cpp -o _gnuRelease/SINRCalculation.o

shouldn't it be -I/net/simdata/OpenSourceLibs/Boost/rel-1.69.0/include?

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