<?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[expected class name before &#x27;{&#x27; token]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab ein Problem mit meinem Code, der Fehler ist wie folgt:</p>
<p>View_3d.h:45: error: expected class-name before ‘{’ token</p>
<p>hier ist View_3d.h:<br />
[Code/]<br />
#ifndef VIEW3DHFILE<br />
#define VIEW3DHFILE</p>
<p>#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/wx.h&quot;<br />
//#include &quot;wx/glcanvas.h&quot;<br />
#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/mac/classic/glcanvas.h&quot;<br />
#include &quot;Palette.h&quot;<br />
#include &quot;Multi_Grid_View.h&quot;<br />
#include &quot;Connect_Adjacent_Points.h&quot;<br />
#include &quot;Trackball.h&quot;<br />
#include &quot;Grid_Vertex_Selection.h&quot;<br />
#include &quot;Zoom.h&quot;</p>
<p>class View_3d;<br />
class Tissue;</p>
<p>// defines the callback interface for an owner of a 3d view<br />
class View_3d_Holder<br />
{<br />
public:<br />
virtual void view_3d_rotation(View_3d * view) { };<br />
};</p>
<p>class View_3d : public wxGLCanvas<br />
{<br />
DECLARE_EVENT_TABLE()<br />
public:<br />
View_3d(wxWindow * parent);<br />
virtual ~View_3d();</p>
<p>void create(const Tissue *, View_3d_Holder *);</p>
<p>virtual void render();</p>
<p>void update();<br />
void set_palette(const CancerSim::Palette&amp; p) { m_cell_view.set_palette(p); };<br />
const CancerSim::Palette &amp; palette() const { return m_cell_view.palette(); };<br />
void copy_view_angle(const View_3d &amp;);</p>
<p>void OnPaint(wxPaintEvent&amp;);<br />
void OnSize(wxSizeEvent&amp;);<br />
void OnEraseBackground(wxEraseEvent&amp;);<br />
void OnMouseEvent(wxMouseEvent &amp;);</p>
<p>protected:<br />
const Tissue * m_tissue;<br />
Multi_Grid_View m_cell_view;<br />
Connect_Adjacent_Points m_capillary_view;<br />
Trackball m_trackball;<br />
Grid_Vertex_Selection m_cell_selection;<br />
Zoom m_zoom;<br />
View_3d_Holder * m_holder;<br />
std::vector&lt;bool&gt; m_cell_visibility;<br />
int m_mouse_y_offset;<br />
int m_mouse_x;<br />
int m_mouse_y;<br />
int m_width;<br />
int m_height;</p>
<p>bool some_cells_are_visible() const;<br />
bool m_first_time;<br />
};</p>
<p>#endif<br />
[/Code]</p>
<p>und glcanvas.h:<br />
[Code/]<br />
#ifndef _WX_GLCANVAS_H_<br />
#define _WX_GLCANVAS_H_</p>
<p>#include &quot;wx/defs.h&quot;</p>
<p>#if wxUSE_GLCANVAS</p>
<p>#include &quot;wx/palette.h&quot;<br />
#include &quot;wx/scrolwin.h&quot;<br />
#include &quot;wx/app.h&quot;</p>
<p>#ifdef __DARWIN__<br />
# include &lt;OpenGL/gl.h&gt;<br />
# include &lt;AGL/agl.h&gt;<br />
#else<br />
# include &lt;gl.h&gt;<br />
# include &lt;agl.h&gt;<br />
#endif</p>
<p>class WXDLLEXPORT wxGLCanvas; /* forward reference */</p>
<p>class WXDLLEXPORT wxGLContext: public wxObject<br />
{<br />
public:<br />
wxGLContext(AGLPixelFormat fmt, wxGLCanvas *win,<br />
const wxPalette&amp; WXUNUSED(palette),<br />
const wxGLContext *other /* for sharing display lists */<br />
);<br />
virtual ~wxGLContext();</p>
<p>void SetCurrent();<br />
void Update(); // must be called after window drag/grows/zoom or clut change<br />
void SetColour(const wxChar *colour);<br />
void SwapBuffers();</p>
<p>inline wxWindow* GetWindow() const { return m_window; }<br />
inline HIViewRef aglGetHIViewRef() const { return m_drawable; }</p>
<p>public:<br />
AGLContext m_glContext;<br />
HIViewRef m_drawable;<br />
wxWindow* m_window;<br />
};</p>
<p>class WXDLLEXPORT wxGLCanvas: public wxWindow<br />
{<br />
DECLARE_CLASS(wxGLCanvas)<br />
public:<br />
wxGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint&amp; pos = wxDefaultPosition,<br />
const wxSize&amp; size = wxDefaultSize, long style = 0,<br />
const wxString&amp; name = wxT(&quot;GLCanvas&quot;) , int *attribList = 0, const wxPalette&amp; palette = wxNullPalette);<br />
wxGLCanvas( wxWindow *parent, const wxGLContext *shared,<br />
wxWindowID id = wxID_ANY, const wxPoint&amp; pos = wxDefaultPosition,<br />
const wxSize&amp; size = wxDefaultSize, long style = 0, const wxString&amp; name = wxT(&quot;GLCanvas&quot;),<br />
int *attribList = (int*) NULL, const wxPalette&amp; palette = wxNullPalette );</p>
<p>wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID id = wxID_ANY,<br />
const wxPoint&amp; pos = wxDefaultPosition, const wxSize&amp; size = wxDefaultSize, long style = 0,<br />
const wxString&amp; name = wxT(&quot;GLCanvas&quot;), int *attribList = 0, const wxPalette&amp; palette = wxNullPalette );</p>
<p>virtual ~wxGLCanvas();</p>
<p>bool Create(wxWindow *parent, const wxGLContext *shared, wxWindowID id,<br />
const wxPoint&amp; pos, const wxSize&amp; size, long style, const wxString&amp; name,<br />
int *attribList, const wxPalette&amp; palette);</p>
<p>void SetCurrent();<br />
void SetColour(const wxChar *colour);<br />
void SwapBuffers();<br />
void UpdateContext();<br />
void SetViewport();<br />
virtual bool Show(bool show = true) ;</p>
<p>// Unlike some other platforms, this must get called if you override it.<br />
// It sets the viewport correctly and update the context.<br />
// You shouldn't call glViewport yourself either (use SetViewport if you must reset it.)<br />
void OnSize(wxSizeEvent&amp; event);</p>
<p>virtual void MacSuperChangedPosition() ;<br />
virtual void MacTopLevelWindowChangedPosition() ;<br />
virtual void MacSuperShown( bool show ) ;</p>
<p>void MacUpdateView() ;</p>
<p>inline wxGLContext* GetContext() const { return m_glContext; }</p>
<p>protected:<br />
wxGLContext* m_glContext;<br />
bool m_macCanvasIsShown ;<br />
DECLARE_EVENT_TABLE()<br />
};</p>
<p>#endif // wxUSE_GLCANVAS<br />
#endif // _WX_GLCANVAS_H_<br />
[/Code]</p>
<p>Ich hab keine Ahnung, warum er die Klasse wxGLCanvas nicht erkennt.<br />
Es wäre sehr nett, wenn mir dabei jemand helfen könnte!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/250523/expected-class-name-before-token</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 01:31:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/250523.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Sep 2009 13:17:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 13:17:21 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich hab ein Problem mit meinem Code, der Fehler ist wie folgt:</p>
<p>View_3d.h:45: error: expected class-name before ‘{’ token</p>
<p>hier ist View_3d.h:<br />
[Code/]<br />
#ifndef VIEW3DHFILE<br />
#define VIEW3DHFILE</p>
<p>#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/wx.h&quot;<br />
//#include &quot;wx/glcanvas.h&quot;<br />
#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/mac/classic/glcanvas.h&quot;<br />
#include &quot;Palette.h&quot;<br />
#include &quot;Multi_Grid_View.h&quot;<br />
#include &quot;Connect_Adjacent_Points.h&quot;<br />
#include &quot;Trackball.h&quot;<br />
#include &quot;Grid_Vertex_Selection.h&quot;<br />
#include &quot;Zoom.h&quot;</p>
<p>class View_3d;<br />
class Tissue;</p>
<p>// defines the callback interface for an owner of a 3d view<br />
class View_3d_Holder<br />
{<br />
public:<br />
virtual void view_3d_rotation(View_3d * view) { };<br />
};</p>
<p>class View_3d : public wxGLCanvas<br />
{<br />
DECLARE_EVENT_TABLE()<br />
public:<br />
View_3d(wxWindow * parent);<br />
virtual ~View_3d();</p>
<p>void create(const Tissue *, View_3d_Holder *);</p>
<p>virtual void render();</p>
<p>void update();<br />
void set_palette(const CancerSim::Palette&amp; p) { m_cell_view.set_palette(p); };<br />
const CancerSim::Palette &amp; palette() const { return m_cell_view.palette(); };<br />
void copy_view_angle(const View_3d &amp;);</p>
<p>void OnPaint(wxPaintEvent&amp;);<br />
void OnSize(wxSizeEvent&amp;);<br />
void OnEraseBackground(wxEraseEvent&amp;);<br />
void OnMouseEvent(wxMouseEvent &amp;);</p>
<p>protected:<br />
const Tissue * m_tissue;<br />
Multi_Grid_View m_cell_view;<br />
Connect_Adjacent_Points m_capillary_view;<br />
Trackball m_trackball;<br />
Grid_Vertex_Selection m_cell_selection;<br />
Zoom m_zoom;<br />
View_3d_Holder * m_holder;<br />
std::vector&lt;bool&gt; m_cell_visibility;<br />
int m_mouse_y_offset;<br />
int m_mouse_x;<br />
int m_mouse_y;<br />
int m_width;<br />
int m_height;</p>
<p>bool some_cells_are_visible() const;<br />
bool m_first_time;<br />
};</p>
<p>#endif<br />
[/Code]</p>
<p>und glcanvas.h:<br />
[Code/]<br />
#ifndef _WX_GLCANVAS_H_<br />
#define _WX_GLCANVAS_H_</p>
<p>#include &quot;wx/defs.h&quot;</p>
<p>#if wxUSE_GLCANVAS</p>
<p>#include &quot;wx/palette.h&quot;<br />
#include &quot;wx/scrolwin.h&quot;<br />
#include &quot;wx/app.h&quot;</p>
<p>#ifdef __DARWIN__<br />
# include &lt;OpenGL/gl.h&gt;<br />
# include &lt;AGL/agl.h&gt;<br />
#else<br />
# include &lt;gl.h&gt;<br />
# include &lt;agl.h&gt;<br />
#endif</p>
<p>class WXDLLEXPORT wxGLCanvas; /* forward reference */</p>
<p>class WXDLLEXPORT wxGLContext: public wxObject<br />
{<br />
public:<br />
wxGLContext(AGLPixelFormat fmt, wxGLCanvas *win,<br />
const wxPalette&amp; WXUNUSED(palette),<br />
const wxGLContext *other /* for sharing display lists */<br />
);<br />
virtual ~wxGLContext();</p>
<p>void SetCurrent();<br />
void Update(); // must be called after window drag/grows/zoom or clut change<br />
void SetColour(const wxChar *colour);<br />
void SwapBuffers();</p>
<p>inline wxWindow* GetWindow() const { return m_window; }<br />
inline HIViewRef aglGetHIViewRef() const { return m_drawable; }</p>
<p>public:<br />
AGLContext m_glContext;<br />
HIViewRef m_drawable;<br />
wxWindow* m_window;<br />
};</p>
<p>class WXDLLEXPORT wxGLCanvas: public wxWindow<br />
{<br />
DECLARE_CLASS(wxGLCanvas)<br />
public:<br />
wxGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint&amp; pos = wxDefaultPosition,<br />
const wxSize&amp; size = wxDefaultSize, long style = 0,<br />
const wxString&amp; name = wxT(&quot;GLCanvas&quot;) , int *attribList = 0, const wxPalette&amp; palette = wxNullPalette);<br />
wxGLCanvas( wxWindow *parent, const wxGLContext *shared,<br />
wxWindowID id = wxID_ANY, const wxPoint&amp; pos = wxDefaultPosition,<br />
const wxSize&amp; size = wxDefaultSize, long style = 0, const wxString&amp; name = wxT(&quot;GLCanvas&quot;),<br />
int *attribList = (int*) NULL, const wxPalette&amp; palette = wxNullPalette );</p>
<p>wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID id = wxID_ANY,<br />
const wxPoint&amp; pos = wxDefaultPosition, const wxSize&amp; size = wxDefaultSize, long style = 0,<br />
const wxString&amp; name = wxT(&quot;GLCanvas&quot;), int *attribList = 0, const wxPalette&amp; palette = wxNullPalette );</p>
<p>virtual ~wxGLCanvas();</p>
<p>bool Create(wxWindow *parent, const wxGLContext *shared, wxWindowID id,<br />
const wxPoint&amp; pos, const wxSize&amp; size, long style, const wxString&amp; name,<br />
int *attribList, const wxPalette&amp; palette);</p>
<p>void SetCurrent();<br />
void SetColour(const wxChar *colour);<br />
void SwapBuffers();<br />
void UpdateContext();<br />
void SetViewport();<br />
virtual bool Show(bool show = true) ;</p>
<p>// Unlike some other platforms, this must get called if you override it.<br />
// It sets the viewport correctly and update the context.<br />
// You shouldn't call glViewport yourself either (use SetViewport if you must reset it.)<br />
void OnSize(wxSizeEvent&amp; event);</p>
<p>virtual void MacSuperChangedPosition() ;<br />
virtual void MacTopLevelWindowChangedPosition() ;<br />
virtual void MacSuperShown( bool show ) ;</p>
<p>void MacUpdateView() ;</p>
<p>inline wxGLContext* GetContext() const { return m_glContext; }</p>
<p>protected:<br />
wxGLContext* m_glContext;<br />
bool m_macCanvasIsShown ;<br />
DECLARE_EVENT_TABLE()<br />
};</p>
<p>#endif // wxUSE_GLCANVAS<br />
#endif // _WX_GLCANVAS_H_<br />
[/Code]</p>
<p>Ich hab keine Ahnung, warum er die Klasse wxGLCanvas nicht erkennt.<br />
Es wäre sehr nett, wenn mir dabei jemand helfen könnte!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1781413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781413</guid><dc:creator><![CDATA[New_c++_User]]></dc:creator><pubDate>Sat, 19 Sep 2009 13:17:21 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 13:32:18 GMT]]></title><description><![CDATA[<p>Benutze wenn möglich die [ cpp] [ /cpp] tags. Ich hab das jetzt mal für Dich gemacht.</p>
<pre><code class="language-cpp">#ifndef VIEW3DHFILE
#define VIEW3DHFILE

#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/wx.h&quot;
//#include &quot;wx/glcanvas.h&quot;
#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/mac/classic/glcanvas.h&quot;
#include &quot;Palette.h&quot;
#include &quot;Multi_Grid_View.h&quot;
#include &quot;Connect_Adjacent_Points.h&quot;
#include &quot;Trackball.h&quot;
#include &quot;Grid_Vertex_Selection.h&quot;
#include &quot;Zoom.h&quot;

class View_3d;
class Tissue;

// defines the callback interface for an owner of a 3d view
class View_3d_Holder
{
public:
virtual void view_3d_rotation(View_3d * view) { };
};

class View_3d : public wxGLCanvas
{
DECLARE_EVENT_TABLE()
public:
View_3d(wxWindow * parent);
virtual ~View_3d();

void create(const Tissue *, View_3d_Holder *);

virtual void render();

void update();
void set_palette(const CancerSim::Palette&amp; p) { m_cell_view.set_palette(p); };
const CancerSim::Palette &amp; palette() const { return m_cell_view.palette(); };
void copy_view_angle(const View_3d &amp;);

void OnPaint(wxPaintEvent&amp;);
void OnSize(wxSizeEvent&amp;);
void OnEraseBackground(wxEraseEvent&amp;);
void OnMouseEvent(wxMouseEvent &amp;);

protected:
const Tissue * m_tissue;
Multi_Grid_View m_cell_view;
Connect_Adjacent_Points m_capillary_view;
Trackball m_trackball;
Grid_Vertex_Selection m_cell_selection;
Zoom m_zoom;
View_3d_Holder * m_holder;
std::vector&lt;bool&gt; m_cell_visibility;
int m_mouse_y_offset;
int m_mouse_x;
int m_mouse_y;
int m_width;
int m_height;

bool some_cells_are_visible() const;
bool m_first_time;
};

#endif
</code></pre>
<p>und glcanvas.h:</p>
<pre><code class="language-cpp">#ifndef _WX_GLCANVAS_H_
#define _WX_GLCANVAS_H_

#include &quot;wx/defs.h&quot;

#if wxUSE_GLCANVAS

#include &quot;wx/palette.h&quot;
#include &quot;wx/scrolwin.h&quot;
#include &quot;wx/app.h&quot;

#ifdef __DARWIN__
# include &lt;OpenGL/gl.h&gt;
# include &lt;AGL/agl.h&gt;
#else
# include &lt;gl.h&gt;
# include &lt;agl.h&gt;
#endif

class WXDLLEXPORT wxGLCanvas; /* forward reference */

class WXDLLEXPORT wxGLContext: public wxObject
{
public:
wxGLContext(AGLPixelFormat fmt, wxGLCanvas *win,
const wxPalette&amp; WXUNUSED(palette),
const wxGLContext *other /* for sharing display lists */
);
virtual ~wxGLContext();

void SetCurrent();
void Update(); // must be called after window drag/grows/zoom or clut change
void SetColour(const wxChar *colour);
void SwapBuffers();

inline wxWindow* GetWindow() const { return m_window; }
inline HIViewRef aglGetHIViewRef() const { return m_drawable; }

public:
AGLContext m_glContext;
HIViewRef m_drawable;
wxWindow* m_window;
};

class WXDLLEXPORT wxGLCanvas: public wxWindow
{
DECLARE_CLASS(wxGLCanvas)
public:
wxGLCanvas(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint&amp; pos = wxDefaultPosition,
const wxSize&amp; size = wxDefaultSize, long style = 0,
const wxString&amp; name = wxT(&quot;GLCanvas&quot;) , int *attribList = 0, const wxPalette&amp; palette = wxNullPalette);
wxGLCanvas( wxWindow *parent, const wxGLContext *shared,
wxWindowID id = wxID_ANY, const wxPoint&amp; pos = wxDefaultPosition,
const wxSize&amp; size = wxDefaultSize, long style = 0, const wxString&amp; name = wxT(&quot;GLCanvas&quot;),
int *attribList = (int*) NULL, const wxPalette&amp; palette = wxNullPalette );

wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared, wxWindowID id = wxID_ANY,
const wxPoint&amp; pos = wxDefaultPosition, const wxSize&amp; size = wxDefaultSize, long style = 0,
const wxString&amp; name = wxT(&quot;GLCanvas&quot;), int *attribList = 0, const wxPalette&amp; palette = wxNullPalette );

virtual ~wxGLCanvas();

bool Create(wxWindow *parent, const wxGLContext *shared, wxWindowID id,
const wxPoint&amp; pos, const wxSize&amp; size, long style, const wxString&amp; name,
int *attribList, const wxPalette&amp; palette);

void SetCurrent();
void SetColour(const wxChar *colour);
void SwapBuffers();
void UpdateContext();
void SetViewport();
virtual bool Show(bool show = true) ;

// Unlike some other platforms, this must get called if you override it.
// It sets the viewport correctly and update the context.
// You shouldn't call glViewport yourself either (use SetViewport if you must reset it.)
void OnSize(wxSizeEvent&amp; event);

virtual void MacSuperChangedPosition() ;
virtual void MacTopLevelWindowChangedPosition() ;
virtual void MacSuperShown( bool show ) ;

void MacUpdateView() ;

inline wxGLContext* GetContext() const { return m_glContext; }

protected:
wxGLContext* m_glContext;
bool m_macCanvasIsShown ;
DECLARE_EVENT_TABLE()
};

#endif // wxUSE_GLCANVAS
#endif // _WX_GLCANVAS_H_
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1781420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781420</guid><dc:creator><![CDATA[DeepCopy]]></dc:creator><pubDate>Sat, 19 Sep 2009 13:32:18 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 14:28:16 GMT]]></title><description><![CDATA[<p>Ah sorry, hab ich nicht mitbekommen, danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1781437</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781437</guid><dc:creator><![CDATA[New_c++_User]]></dc:creator><pubDate>Sat, 19 Sep 2009 14:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 14:33:00 GMT]]></title><description><![CDATA[<p>New_c++_User schrieb:</p>
<blockquote>
<p>Ah sorry, hab ich nicht mitbekommen, danke!</p>
</blockquote>
<p>Außerdem hast du wohl den Preview-Button noch nicht entdeckt. Da hättest du sofort erkannt, dass deine code-Tags mistig sind.</p>
<p>Frage:<br />
Entspricht hier Zeile 45 auch der Zeile 45 im tatsächlichen Code?<br />
Poste mehr von der Fehlermeldung, am besten von der letzten ordentlich kompilierten Datei bis zum Ende der Fehlermeldung. Zeile 45 steht ein &quot;protected&quot;. Nix von &quot;{&quot; oder Deklaration eines Members.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1781438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781438</guid><dc:creator><![CDATA[ziegenpeter]]></dc:creator><pubDate>Sat, 19 Sep 2009 14:33:00 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 14:53:49 GMT]]></title><description><![CDATA[<p>also es geht um die folgende Zeile:</p>
<pre><code class="language-cpp">class View_3d : public wxGLCanvas
{					//&lt;-- hier
  DECLARE_EVENT_TABLE()
public:
  View_3d(wxWindow * parent);
  virtual ~View_3d();
</code></pre>
<p>und die Fehlermeldung ist diese hier:</p>
<pre><code class="language-cli">maggy:CancerSim praktikant$ make -f makefile2.txt 
g++  -c -O3  `/Users/praktikant/Desktop/wxMac-2.8.10/build-ansi/wx-config --cxxflags`  -c -o GUI.o GUI.cc
View_3d.h:45: error: expected class-name before ‘{’ token
History_View.h:33: error: expected class-name before ‘{’ token
wxGLCanvas2.h:31: error: expected class-name before ‘{’ token
make: *** [GUI.o] Error 1
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1781450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781450</guid><dc:creator><![CDATA[New_c++_User]]></dc:creator><pubDate>Sat, 19 Sep 2009 14:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 15:31:08 GMT]]></title><description><![CDATA[<p>Da scheint ja mehr nicht zu passen.<br />
Ich würde dir empfehlen, deine Umgebung ordentlich einzurichten.<br />
Sowas</p>
<pre><code class="language-cpp">#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/wx.h&quot;
//#include &quot;wx/glcanvas.h&quot;
#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/mac/classic/glcanvas.h&quot;
</code></pre>
<p>ist hässlich, nicht portierbar, und im Falle von glcanvas.h hab ich sogar meinen Zweifel, dass das wirklich korrekt ist.<br />
Und außerdem, woher bitte kommt auf einmal das <strong>wxGLCanvas2.h</strong>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1781469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781469</guid><dc:creator><![CDATA[ziegenpeter]]></dc:creator><pubDate>Sat, 19 Sep 2009 15:31:08 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 15:45:28 GMT]]></title><description><![CDATA[<p>okay, also erstmal hab ich das ganze Programm gar nicht selbst geschrieben, deswegen kenn ich mich nicht so gut damit aus. Zweitens ist dieser Teil</p>
<pre><code class="language-cpp">#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/wx.h&quot;
//#include &quot;wx/glcanvas.h&quot;
#include &quot;/Users/praktikant/Desktop/wxMac-2.8.10/include/wx/mac/classic/glcanvas.h&quot;
</code></pre>
<p>nicht ganz richtig, der war noch so, weil ich ja schon vorher selbst mal im Internet geguckt hatte, was das alles für eine Ursache haben könnte und da meinte einer, es könnte an nicht genauen Pfaden zu den headers liegen. Also eigentlich steht da:</p>
<pre><code class="language-cpp">#include &quot;wx/wx.h&quot;
#include &quot;wx/glcanvas.h&quot;
</code></pre>
<p>Die beiden Dateien wxGLCanvas2.h und History_View.h benutzen auch wxGLCanvas und includieren die selben header-dateien. Sonst noch Fragen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1781472</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781472</guid><dc:creator><![CDATA[New_c++_User]]></dc:creator><pubDate>Sat, 19 Sep 2009 15:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 16:14:03 GMT]]></title><description><![CDATA[<p>Die wx/glcanvas.h datei ist hier:</p>
<pre><code class="language-cpp">#ifndef _WX_GLCANVAS_H_BASE_
#define _WX_GLCANVAS_H_BASE_

#include &quot;wx/defs.h&quot;

#if wxUSE_GLCANVAS

//---------------------------------------------------------------------------
// Constants for attriblist
//---------------------------------------------------------------------------

// The generic GL implementation doesn't support most of these options,
// such as stereo, auxiliary buffers, alpha channel, and accum buffer.
// Other implementations may actually support them.

enum
{
    WX_GL_RGBA=1,          /* use true color palette */
    WX_GL_BUFFER_SIZE,     /* bits for buffer if not WX_GL_RGBA */
    WX_GL_LEVEL,           /* 0 for main buffer, &gt;0 for overlay, &lt;0 for underlay */
    WX_GL_DOUBLEBUFFER,    /* use doublebuffer */
    WX_GL_STEREO,          /* use stereoscopic display */
    WX_GL_AUX_BUFFERS,     /* number of auxiliary buffers */
    WX_GL_MIN_RED,         /* use red buffer with most bits (&gt; MIN_RED bits) */
    WX_GL_MIN_GREEN,       /* use green buffer with most bits (&gt; MIN_GREEN bits) */
    WX_GL_MIN_BLUE,        /* use blue buffer with most bits (&gt; MIN_BLUE bits) */
    WX_GL_MIN_ALPHA,       /* use alpha buffer with most bits (&gt; MIN_ALPHA bits) */
    WX_GL_DEPTH_SIZE,      /* bits for Z-buffer (0,16,32) */
    WX_GL_STENCIL_SIZE,    /* bits for stencil buffer */
    WX_GL_MIN_ACCUM_RED,   /* use red accum buffer with most bits (&gt; MIN_ACCUM_RED bits) */
    WX_GL_MIN_ACCUM_GREEN, /* use green buffer with most bits (&gt; MIN_ACCUM_GREEN bits) */
    WX_GL_MIN_ACCUM_BLUE,  /* use blue buffer with most bits (&gt; MIN_ACCUM_BLUE bits) */
    WX_GL_MIN_ACCUM_ALPHA  /* use alpha buffer with most bits (&gt; MIN_ACCUM_ALPHA bits) */
};

#define wxGLCanvasName _T(&quot;GLCanvas&quot;)

#if defined(__WXMSW__)
#include &quot;wx/msw/glcanvas.h&quot;
#elif defined(__WXMOTIF__)
#include &quot;wx/x11/glcanvas.h&quot;
#elif defined(__WXGTK20__)
#include &quot;wx/gtk/glcanvas.h&quot;
#elif defined(__WXGTK__)
#include &quot;wx/gtk1/glcanvas.h&quot;
#elif defined(__WXX11__)
#include &quot;wx/x11/glcanvas.h&quot;
#elif defined(__WXMAC__)
#include &quot;wx/mac/glcanvas.h&quot;
#elif defined(__WXCOCOA__)
#include &quot;wx/cocoa/glcanvas.h&quot;
#else
#error &quot;wxGLCanvas not supported in this wxWidgets port&quot;
#endif

#include &quot;wx/app.h&quot;
class WXDLLIMPEXP_GL wxGLApp : public wxApp
{
public:
    wxGLApp() : wxApp() { }
    virtual ~wxGLApp();

    // use this in the constructor of the user-derived wxGLApp class to
    // determine if an OpenGL rendering context with these attributes
    // is available - returns true if so, false if not.
    bool InitGLVisual(int *attribList);

private:
    DECLARE_DYNAMIC_CLASS(wxGLApp)
};

#endif
    // wxUSE_GLCANVAS
#endif
    // _WX_GLCANVAS_H_BASE_
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1781477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781477</guid><dc:creator><![CDATA[New_c++_User]]></dc:creator><pubDate>Sat, 19 Sep 2009 16:14:03 GMT</pubDate></item><item><title><![CDATA[Reply to expected class name before &#x27;{&#x27; token on Sat, 19 Sep 2009 16:22:00 GMT]]></title><description><![CDATA[<p>Okay, hat sich erledigt, ich hatte wxWidgets ohne OpenGL ausgeführt.<br />
Sorry, wenn ich irgend jemanden hier gestört habe...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1781481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1781481</guid><dc:creator><![CDATA[New_c++_User]]></dc:creator><pubDate>Sat, 19 Sep 2009 16:22:00 GMT</pubDate></item></channel></rss>