<?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: How use an struct variable in app project and library project in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602006#M9769</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how the debug fails? Is there some error message?&amp;nbsp; Did you build your library with debug info?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 12:55:22 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2023-02-20T12:55:22Z</dc:date>
    <item>
      <title>How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1601447#M9758</link>
      <description>&lt;P&gt;I created a library project and app project.I want to use the sturct variable which declared in library project,but I can't do that.Why?The code shown as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="企业微信截图_20230219151221.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211454i412463E0548F4CFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="企业微信截图_20230219151221.png" alt="企业微信截图_20230219151221.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="企业微信截图_20230219151419.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211459i010E739AED54885D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="企业微信截图_20230219151419.png" alt="企业微信截图_20230219151419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="企业微信截图_20230219151241.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211458iE152FEA662E025BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="企业微信截图_20230219151241.png" alt="企业微信截图_20230219151241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Please help me.Thanks!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Feb 2023 07:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1601447#M9758</guid>
      <dc:creator>Mr_Chen</dc:creator>
      <dc:date>2023-02-19T07:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1601939#M9763</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what is your library/project structure. But basically - you need to implement functions in your library code. Structure definition can be done in library header file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For using your library in your project, you need to tell linker where the library is. Right click on project name -&amp;gt; Properties:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1676892753230.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/211565iCFA2551265B48EEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1676892753230.png" alt="jiri_kral_0-1676892753230.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you specify function/variable as a extern - it tells linker to search such function in other obj files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 11:34:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1601939#M9763</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2023-02-20T11:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1601993#M9766</link>
      <description>&lt;P&gt;Yes,the library path have been set.But it failed when building the project.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 12:44:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1601993#M9766</guid>
      <dc:creator>Mr_Chen</dc:creator>
      <dc:date>2023-02-20T12:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602006#M9769</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how the debug fails? Is there some error message?&amp;nbsp; Did you build your library with debug info?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 12:55:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602006#M9769</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2023-02-20T12:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602013#M9770</link>
      <description>&lt;P&gt;Um, sorry - the error is during build, right? Can you please share the output from build console and share screenshot from Linker settings (the window which I shared).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 13:05:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602013#M9770</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2023-02-20T13:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602030#M9773</link>
      <description>&lt;P&gt;The library project can be built successfully.Firstly,I declared a structure in library header file and also defined a extern structure variable. Secondly,I defined a function which used this structure variable in library source file. And then I export from library header file and the variable also used in library source file.Then I defined a same structure variable and call that function&amp;nbsp;in app project.But it reported some errors while building.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 13:30:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602030#M9773</guid>
      <dc:creator>Mr_Chen</dc:creator>
      <dc:date>2023-02-20T13:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602055#M9775</link>
      <description>&lt;P&gt;I see. But which kind of error? It is possible share output from build console? Or even better - your library and app project?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 14:07:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602055#M9775</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2023-02-20T14:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How use an struct variable in app project and library project</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602058#M9776</link>
      <description>&lt;P&gt;You've declared &lt;STRONG&gt;ss&lt;/STRONG&gt; as an external, but define it as a local variable on the stack in main(). Make it a global variable in your C-file (outside of the function) and it should work.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 14:18:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-use-an-struct-variable-in-app-project-and-library-project/m-p/1602058#M9776</guid>
      <dc:creator>Joey_van_Hummel</dc:creator>
      <dc:date>2023-02-20T14:18:29Z</dc:date>
    </item>
  </channel>
</rss>

