<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Trouble using the GSM PPP Driver in C++ Project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80026/trouble-using-the-gsm-ppp-driver-in-c-project</link><description>I am trying to convert the Zephyr gsm_modem sample project to C++. If I include `gsm.c` without using `extern &amp;quot;C&amp;quot;{}` I get this error: ` undefined reference to gsm_ppp_start(device const*)`. When I include `gsm.c` inside of `extern &amp;quot;C&amp;quot;{}` as the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Oct 2021 23:15:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80026/trouble-using-the-gsm-ppp-driver-in-c-project" /><item><title>RE: Trouble using the GSM PPP Driver in C++ Project</title><link>https://devzone.nordicsemi.com/thread/335550?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 23:15:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ae3e6b-f65c-4efe-93ec-538ee8e3b3ce</guid><dc:creator>code-magic</dc:creator><description>&lt;p&gt;This is perfect, thank you. Can you check out my latest post? I&amp;#39;m trying to use the GSM modem sample on a nRF 5340 app and I cannot get `device_get_binding()` to not return null no matter the configuration options I set.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/80987/gsm-modem-sample-project-on-nrf-5340-app"&gt;devzone.nordicsemi.com/.../gsm-modem-sample-project-on-nrf-5340-app&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble using the GSM PPP Driver in C++ Project</title><link>https://devzone.nordicsemi.com/thread/331352?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 14:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d3c8bff-f522-44c8-8a44-87f5b1e4e508</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You shouldn&amp;#39;t include .c files. That will (as in this case) often lead to having a function defined multiple plcaces, because #include will simply copy-paste the content of the included file into the including one.&lt;/p&gt;
[quote user=""]Zephyr Version: 2.6.99,&amp;nbsp;build: v2.6.99-ncs1-rc2-5-ga64e96d17cc7[/quote]
&lt;p&gt;It is much more usefull for us if you say what version of the nRF Connect SDK you are using, i.e. the tag you are on in the nrf repo.&lt;/p&gt;
&lt;p&gt;Also, it looks like Zephyr&amp;#39;s shell module isn&amp;#39;t very fond of C++, which causes gsm_ppp_start and *_stop to not be linked in if the SHELL_STATIC_SUBCMD_SET_CREATE macro is in a C++ file.&lt;/p&gt;
&lt;p&gt;After modifying the sample some, I was able to build it, but I don&amp;#39;t have a board I can test it on at the moment.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/gsm_5F00_modem.zip"&gt;devzone.nordicsemi.com/.../gsm_5F00_modem.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>