Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22042

Unable to link shared libraries in Visual Studio Cross Platform project

$
0
0

Wanted to take advantage of Visual Studio Cross Platform programming capabilities to ease a bit of development work.

I have a project in C++ which uses Boost libraries, it compiles and runs fine on Linux. Boost libraries are present in /usr/local/boost_1_73_0/lib and are specified in ld.so.conf.d.

I set up my cross platform environment, it works fine for simple projects not requiring any linking. However, this project fails to build as it is presumably unable to find the shared libraries, as I get a number of Linker errors.

As I understand, the build happens with gcc on the target machine, and I am not sure why the project is unable to find the libraries using Visual Studio cross platform when g++ on the target platform works just fine without having to specify the -I or -L flags, since the paths are system wide. There isn't a problem with the headers, compile went fine, only the linking fails.

What else should I be doing?

Am using Visual Studio 2017 and RHEL.


Viewing all articles
Browse latest Browse all 22042

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>