problem z Arguments.h ( ISO C++ forbids declaration of ... with no type )

Bug #755622 reported by Jacek Modrakowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SMshare
Fix Committed
Critical
Unassigned

Bug Description

Podczas kompilacji nagle wywaliło mi:

In file included from ../src/Server/Server.h:8,
                 from ../src/server.cpp:7:
../src/Server/../DataStructures/Arguments.h: At global scope:
../src/Server/../DataStructures/Arguments.h:14: error: ISO C++ forbids declaration of ‘SSProtocol’ with no type
../src/Server/../DataStructures/Arguments.h:14: error: expected ‘;’ before ‘*’ token
make: *** [src/server.o] Błąd 1

proszę kogoś o pomoc.

Changed in smshare:
importance: Undecided → Critical
Revision history for this message
Mateusz Burnicki (wlochu) wrote :

1) Nie masz średnika po definicji konstruktora;
2) wykorzystujesz typ SSProtocol, a nie załączyłeś odpowiedniego pliku w preprocesorze.

Pozdrawiam

Revision history for this message
Jacek Modrakowski (jacek-beny) wrote : Re: [Bug 755622] Re: problem z Arguments.h ( ISO C++ forbids declaration of ... with no type )

W dniu 09.04.2011 21:15, Mateusz Burnicki pisze:
> 1) Nie masz średnika po definicji konstruktora;
> 2) wykorzystujesz typ SSProtocol, a nie załączyłeś odpowiedniego pliku w preprocesorze.
>
> Pozdrawiam
>
Rozumiem że plik nagłówkowy SSProtocol mam wpisać w Arguments.h tak ?
Co do średnika co chodzi o konstruktor SSProtocol czy Arguments ?

--
Pozdrawiam,
Jacek Modrakowski
http://modrako.nstrefa.pl/
<email address hidden> lub <email address hidden>

Revision history for this message
Mateusz Burnicki (wlochu) wrote :

Z tym średnikiem to sorry, nie przeczytałem linii niżej (before '*' token).

Widzę że include już jest, a nadal się pluje. Po prostu Arguments.h nie wie, czym jest SSProtocol - myśli, że chcesz deklarować zmienną bez typu. Przyjrzę się temu bliżej.

Changed in smshare:
status: New → In Progress
Changed in smshare:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.