<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>SOLVED!</p>
<p>I download and try KDevelop 5.3 as AppImage and now support
language work well!</p>
<p>I'll work with this version waiting for fedora package update<br>
</p>
<p>Thanks Kevin for the help</p>
<p>Best Regards<br>
</p>
<p>Luca<br>
</p>
<div class="moz-cite-prefix">Il 21/11/18 20:08, Luca Provenzani ha
scritto:<br>
</div>
<blockquote type="cite"
cite="mid:115e1279-d748-0054-0f7e-de94b0bc4e71@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<p>KDevelop 5.2.4 on Fedora 29 installed by dnf command.</p>
<p>When file SDL_surface.h is open in the view "problem" there is
only one warning row :</p>
<p style=" margin-top:0px; margin-bottom:0px;
margin-left:0px;
 margin-right:0px; -qt-block-indent:0;
text-indent:0px;">"Problem in <span style=" font-style:italic;">Preprocessor</span><br>
Header is not guarded against multiple inclusions</p>
<p><span style=" font-style:italic;">The given header is not
guarded against multiple inclusions, either with the
conventional #ifndef/#define/#endif macro guards or with
#pragma once.</span>"</p>
<p>No problem on file SDL.h<br>
</p>
<p>Do you think it could be a kdevelop version problem? in this
case I have to work on a virtual machine (tomorrow I'll try this
solution) or wait for next update..<br>
</p>
<p>Luca<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Il 21/11/18 16:55, Kevin Funk ha
scritto:<br>
</div>
<blockquote type="cite" cite="mid:10224236.T4tBVI88tI@kerberos">
<pre class="moz-quote-pre" wrap="">On Wednesday, 21 November 2018 15:15:21 CET Luca Provenzani wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi Kevin,
my answers below
thank you
Luca
Il 21/11/18 11:56, Kevin Funk ha scritto:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Wednesday, 21 November 2018 11:55:17 CET Kevin Funk wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Wednesday, 21 November 2018 08:37:58 CET Luca Provenzani wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi all,
first of all it is right to say that I'm newbie on kdevelop, C++ and
SDL. Than the question:
I begin to setting up a new project with SDL2 and all is ok, I can
compile, execute and so on. But there is an annoying thing: the language
support doesn't work well. It highlights a lot of error and doesn't
suggest properly, not recognising some SDL function or struct.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Hey Luca,
so as I take it the SDL2 headers are properly found and you can "jump
into"
(i.e. Ctrl+Click on "#include <SDL2/SDL.h>") them, right?
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">Yes, I confirm that
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">The strange thing is that some function like
"SDL_CreateTextureFromSurface" is recognized other not, like
"SDL_LoadBMP" or struct like "SDL_Texture".
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">In your case it looks like none of the function mentioned could be found
(they're not colored in blue, like e.g. "SDL_GetError()").
In case only some functions are not detected, then the problems is likely
that their declaration is could not be parsed properly. Could you jump
into
SDL.h or SDL_surface.h and check whether SDL_LoadBMP/SDL_LoadBMP_RW could
not be parsed properly?
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">Here the definition of the function/macro SDL_LoadBMP in SDL_surface.h:
/extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src,/
/ int freesrc);/
//**/
/ * Load a surface from a file./
/ */
/ * Convenience macro./
/ *//
/#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)/
.. but, I don't see nothing really strange..
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">To me it looks like all the structs like SDL_Texture/SDL_Surface cannot
be
parsed and thus cause follow up errors everywhere.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Btw: If you could share the project (i.e. by zipping it up and sending it
here), that'd help a lot!
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Yes, no problem, I attached the tar.gz file of the project
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Thanks, works fine here, though (see attached screenshot). KDevelop 5.3 on
Ubuntu 18.10.
Can you maybe open the Problems tool view while SDL.h or SDL_surface.h are
open? What errors are listed there? (You can copy-paste them.)
What kind of KDevelop version is this? Where did you get it from?
Regards,
Kevin
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Regards,
Kevin
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Regards,
Kevin
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">I attach a screenshot showing that.
In the included file SDL_Renderer.h I see:/
/
//**/
/ * \brief An efficient driver-specific representation of pixel data/
/ *//
/struct SDL_Texture;/
/typedef struct SDL_Texture SDL_Texture;/
without an explicit definition of the struct..
Do some one know how to fix this behaviour?
Thanks
Best Regards
Luca
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</body>
</html>