<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QT c++ problems]]></title><description><![CDATA[<p dir="auto">I have a small c++ qt program using this code :```</p>
<pre><code>//your code here
```static uint32_t  * gpioReg = MAP_FAILED;

uint32_t gpioRead_Bits_0_31(void)
{
   return (*(gpioReg + GPLEV0));
}

the compiler say error which is 

 error: invalid conversion from 'void*' to 'uint32_t* {aka unsigned int*}' [-fpermissive]

Can someone help me solved this problems??</code></pre>
]]></description><link>https://forum.qt.io/topic/62958/qt-c-problems</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 21:03:12 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/62958.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Jan 2016 13:57:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QT c++ problems on Tue, 19 Jan 2016 14:08:48 GMT]]></title><description><![CDATA[<p dir="auto">You should also tell from which line the compiler error message comes from...</p>
<p dir="auto">It seems that MAP_FAILED is a void pointer, so you should cast it:<br />
static uint32_t  * gpioReg = (uint32_t  *)MAP_FAILED;</p>
]]></description><link>https://forum.qt.io/post/308195</link><guid isPermaLink="true">https://forum.qt.io/post/308195</guid><dc:creator><![CDATA[mvuori]]></dc:creator><pubDate>Tue, 19 Jan 2016 14:08:48 GMT</pubDate></item></channel></rss>