<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running C++ code in Sas Analytics Pro - Sas 4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/905201#M357538</link>
    <description>Hello&lt;BR /&gt;I agree it is neither a SAS nor a container problem.&lt;BR /&gt;It is the case of missing libraries.&lt;BR /&gt;My earlier replies list possible solutions.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 29 Nov 2023 16:28:05 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2023-11-29T16:28:05Z</dc:date>
    <item>
      <title>Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/903610#M357040</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed Sas Analytics pro in a Linux virtual machine and I am trying to run a C++ code using call system function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I updated the file C++ from docker desktop because I don't know how to mount the local C disk to the container docker.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running this code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data _null_;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;call system("pwd");&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I find my directory:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Current working directory is '/tmp/SAS_work188200000688_sas-analytics-pro/SAS_work26F300000688_sas-analytics-pro'.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;And to run my C++ code I am using this command that works in the linux shell but not from the docker shell and in Sas Studio.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;filename oscmd pipe "/tmp/C/bld/Gross_test_01";&lt;BR /&gt;data _null_;&lt;BR /&gt;infile oscmd;&lt;BR /&gt;input;&lt;BR /&gt;put _infile_;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;EM&gt;Pipe command="/tmp/C/bld/Gross_test_01 "&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;/tmp/C/bld/Gross_test_01: error while loading shared libraries: &lt;STRONG&gt;libgross.so&lt;/STRONG&gt;: cannot open shared object file: No such file or directory&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;It seems that can't be possible navigate in the directories because the file libgross.so is present. My directory is&lt;/DIV&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_0-1700211246645.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89958i18AA894B7081D242/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_0-1700211246645.png" alt="fabiopuddu_0-1700211246645.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Anyone knows how to mount a C: local drive or what is the kind of problem that I can't run that file from the directory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 08:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/903610#M357040</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-17T08:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/903611#M357041</link>
      <description>&lt;P&gt;Issue the command &lt;FONT face="courier new,courier"&gt;set&lt;/FONT&gt; in the Linux shell to get the current settings of all environment variables, then run &lt;FONT face="courier new,courier"&gt;set&lt;/FONT&gt; from SAS with the PIPE method and look at the differences.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 09:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/903611#M357041</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-17T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904189#M357241</link>
      <description>&lt;P&gt;I run the set command, which environment variables should I check?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 08:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904189#M357241</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-22T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904190#M357242</link>
      <description>&lt;P&gt;What I said. Look at the&amp;nbsp;&lt;EM&gt;differences&lt;/EM&gt; between the environments.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 08:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904190#M357242</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-22T08:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904197#M357246</link>
      <description>&lt;P&gt;Hello, here I put some variable but I don't know which differences are part of my issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_2-1700645086755.png" style="width: 980px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90091i09DE3CA2FBB31FB3/image-dimensions/980x464?v=v2" width="980" height="464" role="button" title="fabiopuddu_2-1700645086755.png" alt="fabiopuddu_2-1700645086755.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 09:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904197#M357246</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-22T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904201#M357250</link>
      <description>&lt;P&gt;What catches my attention is your massive PATH in the Linux commandline. I suspect the problem is there.&lt;/P&gt;
&lt;P&gt;Also check if the current working directory (PWD) has an effect; issue a cd command before you run your C++ program.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 09:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904201#M357250</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-22T09:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904262#M357280</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449771"&gt;@harmonic&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Your error message indicates that the library libgross.so is not accessible. Either it is missing OR is not reachable.&lt;BR /&gt;Make sure you are able to run the C++ code from the command line in the same folder that the code is running using X Commands.&lt;BR /&gt;Make sure the user id is the same as that runs the SAS code.&lt;BR /&gt;If you are not able to run from the command line please post the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 17:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904262#M357280</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-22T17:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904339#M357310</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*test1*/
filename oscmd pipe "pwd &amp;amp;&amp;amp;  ./Gross_test_01 0.95419 0.00674 0.00367 0.02649 0.00645 0.00097 0.00096 0.00019 0.00015 0.00018 0 0 0 0 0 0.00001 0 0 0 0.00002 0 288.15 5701.325";

data _null_;
infile oscmd;
input;
put _infile_;
run;
&lt;BR /&gt;/*&lt;BR /&gt;NOTE: The infile OSCMD is:&lt;BR /&gt;Pipe command="pwd &amp;amp; ./Gross_test_01 0.95419 0.00674 0.00367 0.02649 0.00645 0.00097 0.00096 0.00019 0.00015 0.00018 0 0 0 0 &lt;BR /&gt;0 0.00001 0 0 0 0.00002 0 288.15 5701.325"&lt;BR /&gt;/tmp/C/bld&lt;BR /&gt;./Gross_test_01: error while loading shared libraries: libgross.so: cannot open shared object file: No such file or directory&lt;BR /&gt;NOTE: 2 records were read from the infile OSCMD.&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;
/* test2*/
data _null_;
	call system('./Gross_test_01 0.95419 0.00674 0.00367 0.02649 0.00645 0.00097 0.00096 0.00019 0.00015 0.00018 0 0 0 0 0 0.00001 0 0 0 0.00002 0 288.15 5701.325');
	call system("pwd");
	call system("cd ..");
	call system("cd ..");
	call system("pwd");
	call system("cd C/bld/");
	call system("pwd");
	call system('./Gross_test_01 0.95419 0.00674 0.00367 0.02649 0.00645 0.00097 0.00096 0.00019 0.00015 0.00018 0 0 0 0 0 0.00001 0 0 0 0.00002 0 288.15 5701.325');
run;&lt;BR /&gt;&lt;BR /&gt;/*NOTE: Current working directory is '/tmp/SAS_work2E8D0000128D_sas-analytics-pro/SAS_work1CCF0000128D_sas-analytics-pro'.&lt;BR /&gt;NOTE: Current working directory is '/tmp'.&lt;BR /&gt;NOTE: Current working directory is '/tmp/C/bld'.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried different ways, in the first test I tried to go to the path and run the script but I got the error.&lt;BR /&gt;&lt;BR /&gt;In the second test I don't get any error but it doesn't make any sense because in the first command I am not in the path where the c++ is located when I run the program but I don't see any error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;&amp;nbsp;user id is sasdemo by default but I tried from root as well:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_0-1700741335174.png" style="width: 656px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90123i61B6044374D1919B/image-dimensions/656x109?v=v2" width="656" height="109" role="button" title="fabiopuddu_0-1700741335174.png" alt="fabiopuddu_0-1700741335174.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 12:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904339#M357310</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-23T12:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904350#M357312</link>
      <description>&lt;P&gt;Expand the PATH with the entries in the commandline PATH.&lt;/P&gt;
&lt;P&gt;Add this to your command:&lt;/P&gt;
&lt;PRE&gt;export PATH=$PATH:&amp;lt;insert the additional entries here&amp;gt;;cd /tmp/C/bld;./Gross_test_01 0.95419 0.00674 0.00367 0.02649 &amp;lt;and so on&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Nov 2023 13:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904350#M357312</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-23T13:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904396#M357320</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449771"&gt;@harmonic&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;To give a feasible solution one needs an understanding of the environment you are in.&lt;BR /&gt;As I understand it,you have SAS Analytics proc on installed on Linux operating system in a virtual machine.&lt;BR /&gt;C++ is expected to be installed here.&lt;BR /&gt;I would recommend the following steps to start with.&lt;BR /&gt;Login to the VM (either directly or using SSH) as sasdemo (the account you are using to run the sas code).&lt;BR /&gt;From the commandline run the following commands to see if the library is available.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Check if libgross.so is available&lt;/STRONG&gt;.&lt;BR /&gt;ldconfig -p | grep libgross.so&lt;BR /&gt;If there is no output then you have missing libgross.so&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Check if you have gcc is installed&lt;/STRONG&gt;&lt;BR /&gt;ls /usr/bin | grep c++&lt;BR /&gt;if there is no output c++ is not installed.&lt;/P&gt;
&lt;P&gt;Install C++. Follow you distributions instructions.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In case you have everything available&lt;/STRONG&gt; (libgross.so , c++) go to the folder wherever Gross_test_01 exists and try running it.&lt;BR /&gt;Needless to say C++ works as smoothly as SAS if everything is correct.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 15:57:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904396#M357320</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-23T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904402#M357321</link>
      <description>&lt;P&gt;In the linux shell I can run the code.&amp;nbsp; This is my output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_0-1700755790629.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90150i2B429D149BBB1535/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_0-1700755790629.png" alt="fabiopuddu_0-1700755790629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My problem is that in the shell in the Docker and in sas studio I can't run this program. I have to say that I uploaded all the directories c++ from docker desktop in the virtual path because I can't find it in my local machine.&lt;BR /&gt;&lt;BR /&gt;From the docker shell (white one) I can see sasdemo user, but from my linux shell (black one) not.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_1-1700756254412.png" style="width: 318px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90151i506E0E9DDA7BA3E5/image-dimensions/318x151?v=v2" width="318" height="151" role="button" title="fabiopuddu_1-1700756254412.png" alt="fabiopuddu_1-1700756254412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_2-1700756283267.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90152iCF0FAFA56095B065/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_2-1700756283267.png" alt="fabiopuddu_2-1700756283267.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_4-1700756527975.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90154iEF35B75793EBCB2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_4-1700756527975.png" alt="fabiopuddu_4-1700756527975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_3-1700756502624.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90153iAFC5B68E2CA4998A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_3-1700756502624.png" alt="fabiopuddu_3-1700756502624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 16:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904402#M357321</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-23T16:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904403#M357322</link>
      <description>Should I use this command from the docker shell, in the container where sas pro is installed?</description>
      <pubDate>Thu, 23 Nov 2023 16:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904403#M357322</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-23T16:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904409#M357327</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449771"&gt;@harmonic&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the quick response.&lt;BR /&gt;In addition to the binaries and libraries, the configuration&amp;nbsp; and environment variables would also be needed. That gets done when one installs the c++ natively in the docker. I don't know if that is feasible in the docker container at your end.&lt;/P&gt;
&lt;P&gt;If this is SAS provided docker find out from them if c++/ development&amp;nbsp; can be installed in the docker container.&lt;/P&gt;
&lt;P&gt;For the present I have the following suggestions.&lt;BR /&gt;Please run the command &lt;STRONG&gt;ldconfig&lt;/STRONG&gt; in docker container. It creates the necessary links.&lt;BR /&gt;Then please try running your code.&lt;/P&gt;
&lt;P&gt;If that does not work, create the executable for&amp;nbsp; &lt;STRONG&gt;Gross_test_01&lt;/STRONG&gt; with &lt;STRONG&gt;static linking&lt;/STRONG&gt; of all the libraries. That includes the libraries in the executable and it should be execute in the container.&lt;/P&gt;
&lt;P&gt;Necessary requirement for static linking is that the version of the OS should be identical in the container .and where the executable is&amp;nbsp; generated.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 17:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904409#M357327</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-23T17:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904443#M357338</link>
      <description>&lt;P&gt;Did you mean that the main problem is the c++ doesn't work in the container?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Linux shell&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_0-1700818542322.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90165i471B6C5DC3F9F60C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_0-1700818542322.png" alt="fabiopuddu_0-1700818542322.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Container shell&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_0-1700818652289.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90168i59E0AD696AFA2FBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_0-1700818652289.png" alt="fabiopuddu_0-1700818652289.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 09:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904443#M357338</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-24T09:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904470#M357345</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449771"&gt;@harmonic&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;"Did you mean that the main problem is the c++ doesn't work in the container? "&lt;STRONG&gt; No. I don't mean that.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;In fact the executable Gross_test_01 is executing. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Your executable program &lt;STRONG&gt;Gross_test_01&lt;/STRONG&gt; needs to find the library &lt;STRONG&gt;libgross.so&lt;/STRONG&gt; for dynamic linking at run time, but cannot find it.&lt;/P&gt;
&lt;P&gt;This is happening because apparently&amp;nbsp; c++ has not been installed in the container.Even though you have copied c++ folders, the links and relevant path/env variable information has not been updated.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;(This is what you said&lt;/STRONG&gt; " I updated the file C++ from docker desktop because I don't know how to mount the local C disk to the container docker".&lt;/P&gt;
&lt;P&gt;"I uploaded all the directories c++ from docker desktop in the virtual path because I can't find it in my local machine".&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did you get a chance to read my past two posts?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;One last things try everything only on a dev system. &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 14:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904470#M357345</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-24T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904471#M357346</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449771"&gt;@harmonic&lt;/a&gt; &lt;BR /&gt;As an after thought to what I said earlier try running this in the container before executing the &lt;STRONG&gt;Gross_test_01&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/full_path_of_libgross.so&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Nov 2023 15:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904471#M357346</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-24T15:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904472#M357347</link>
      <description>Yes I am trying to install c++ in the container also compile the code in static mode.&lt;BR /&gt;Should I put the local path like this?&lt;BR /&gt;C:/C/bld/libgross.so</description>
      <pubDate>Fri, 24 Nov 2023 15:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904472#M357347</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-24T15:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904481#M357352</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/449771"&gt;@harmonic&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I said earlier run this statement before running your code.&lt;BR /&gt;I have made a correction only folder path needs to be included not the filename.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/full_path_of_folder_containing_libgross.so&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please run this immediately before running &lt;STRONG&gt;Gross_test_01&lt;/STRONG&gt;. It should work. Then you would not need C++ in the container at all.&lt;BR /&gt;If your libraries are statically bound into &lt;STRONG&gt;Gross_test_01&lt;/STRONG&gt; and the OS in the host and docker is the same, I don't expect that C++ is needed in the container.&lt;BR /&gt;The basic principle is that C++ compiles a program to machine language. If all libraries are statically bound, then nothing should be needed as long as OS is the same.&lt;BR /&gt;The size of the executable would however&amp;nbsp; be large.&lt;BR /&gt;However if the libraries are dynamically linked then libraries are needed. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 16:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/904481#M357352</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-24T16:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/905178#M357530</link>
      <description>&lt;P&gt;I think this is not a Sas problem anymore, I don't know maybe is the virtual container the problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fabiopuddu_0-1701269771732.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90440iB4735E934B9130B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fabiopuddu_0-1701269771732.png" alt="fabiopuddu_0-1701269771732.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 14:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/905178#M357530</guid>
      <dc:creator>harmonic</dc:creator>
      <dc:date>2023-11-29T14:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Running C++ code in Sas Analytics Pro - Sas 4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/905201#M357538</link>
      <description>Hello&lt;BR /&gt;I agree it is neither a SAS nor a container problem.&lt;BR /&gt;It is the case of missing libraries.&lt;BR /&gt;My earlier replies list possible solutions.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Nov 2023 16:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-C-code-in-Sas-Analytics-Pro-Sas-4/m-p/905201#M357538</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-11-29T16:28:05Z</dc:date>
    </item>
  </channel>
</rss>

