Trying to build an Outdated Module, having problems with class declarations

So I don't know ANY C++. It's very frightening to me. I know a few other languages, so I can try and guess the basics, but C and C++ are mysteries to me. I'm currently trying to build TranscriberAG for my Ubuntu 11.10 computer, and the make files seem to be woefully outdated.

I managed to find a forum post (http://www.das-werkstatt.com/forum/werkstatt/viewtopic.php?f=24&t=1895) by someone else who had tried the same thing, but at a certain point they stopped posting (perhaps the errors became too much for them?). With the current error I'm getting, there seems to be a problem with the way that a make file declares a class, and that seems to me to be a very basic problem, and I wish that I only knew C++ so that I could fix it, however I don't, and I am afraid that I won't have time to learn it because I need TranscriberAG in the next couple of weeks for my class.

TranscriberAG (http://transag.sourceforge.net/) has not been updated since 07/2011, so if there are any changes in the ways that classes have been defined since then, I would imagine that might be related to the problem.

As I said before, I don't know any C, but from a couple hours of trying to understand it, the problem seems to be related to how PortAudioStream is typedef'ed as void in portaudio.h and then declared as a class in PortAudioStream.h

If anyone can help me with this, it would be DEEPLY appreciated


Important files:

PortAudioStream.cpp:
https://gitorious.org/transcriberag-aapo/transcriberag-aapo/blobs/master/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp

PortAudioStream.h:
https://gitorious.org/transcriberag-aapo/transcriberag-aapo/blobs/master/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.h

portaudio.h:
http://portaudio.com/docs/v19-doxydocs/portaudio_8h_source.html
The error message I get is:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
In file included from ~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:9:0:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.h:31:7: error: using typedef-name ‘PortAudioStream’ after ‘class’
/usr/include/portaudio.h:247:14: error: ‘PortAudioStream’ has a previous declaration here
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:12:34: error: explicit qualification in declaration of ‘PortAudioStream PortAudioStream()’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘PortAudioStream PortAudioStream()’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:12:34: error: ‘PortAudioStream PortAudioStream()’ redeclared as different kind of symbol
/usr/include/portaudio.h:247:14: error: previous declaration of ‘typedef void PortAudioStream’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:13:4: error: only constructors take member initializers
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: At global scope:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:18:79: error: explicit qualification in declaration of ‘PortAudioStream PortAudioStream(int, int, int)’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘PortAudioStream PortAudioStream(int, int, int)’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:18:79: error: ‘PortAudioStream PortAudioStream(int, int, int)’ redeclared as different kind of symbol
/usr/include/portaudio.h:247:14: error: previous declaration of ‘typedef void PortAudioStream’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:19:4: error: only constructors take member initializers
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:21:40: error: ‘init’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: At global scope:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:26:18: error: expected id-expression before ‘~’ token
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:31:6: error: ‘PortAudioStream’ is not a class or namespace
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘bool isInitialized()’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:33:9: error: ‘initialized’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: At global scope:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:38:6: error: ‘PortAudioStream’ is not a class or namespace
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘bool init(int, int)’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:40:42: error: too many arguments to function ‘bool init(int, int)’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:38:6: note: declared here
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: At global scope:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:45:6: error: ‘PortAudioStream’ is not a class or namespace
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘bool init(int, int, int)’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:47:2: error: ‘pa_frame_size’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:51:31: error: ‘initialized’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:60:3: error: ‘pa_error’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:73:3: error: ‘pa_info’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:73:56: error: ‘Pa_GetDefaultOutputDevice’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:85:3: error: ‘PaStreamParameters’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:85:23: error: ‘params’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:85:36: error: expected type-specifier before ‘PaStreamParameters’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:85:36: error: expected ‘;’ before ‘PaStreamParameters’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:93:36: error: ‘pa_stream’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:93:90: error: ‘paFramesPerBufferUnspecified’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:99:14: error: ‘terminate’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:99:14: note: suggested alternative:
/usr/include/c++/4.6/exception:98:8: note:   ‘std::terminate’
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:118:6: error: ‘initialized’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:120:9: error: ‘initialized’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: At global scope:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:125:9: error: ‘PortAudioStream’ is not a class or namespace
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘PaError write(int16_t*, int)’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:127:6: error: ‘initialized’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:129:18: error: ‘pa_stream’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:129:38: error: ‘pa_frame_size’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:129:51: error: ‘Pa_WriteStream’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:134:9: error: ‘paNotInitialized’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: At global scope:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:139:6: error: ‘PortAudioStream’ is not a class or namespace
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘bool isActive()’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:141:28: error: ‘pa_stream’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:141:37: error: ‘Pa_IsStreamActive’ was not declared in this scope
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: At global scope:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:146:6: error: ‘PortAudioStream’ is not a class or namespace
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp: In function ‘bool terminate()’:
~/v2.0.0-b1/source/src/MediaComponent/io/PortAudioStream.cpp:149:17: error: ‘pa_stream’ was not declared in this scope
make[2]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/io/PortAudioStream.cpp.o] Error 1
make[1]: *** [src/MediaComponent/CMakeFiles/MediaComponent.dir/all] Error 2
make: *** [all] Error 2
Topic archived. No new replies allowed.