Page 1 of 1

Compiler issues

Posted: 29 Aug 2007, 10:58
by Adam_C
Hello, im new to the BCI2000 software, im also new to Borland development software.

After downloading the source files i have tried to compile each of the modules only to throw up errors such as:

RandomNumber-

[BCC32 Error] SourceFilter.h(32): E2247 'IIRFilter::real_type' is not accessible
[BCC32 Error] SourceFilter.h(33): E2247 'IIRFilter::complex_vector' is not accessible
[BCC32 Error] SourceFilter.h(34): E2247 'IIRFilter::complex_vector' is not accessible
[BCC32 Error] SourceFilter.cpp(43): E2247 'IIRFilter::complex_vector' is not accessible
[BCC32 Error] SourceFilter.cpp(58): E2285 Could not find a match for 'EnvironmentBase::Parameter(const char *)'
[BCC32 Error] SourceFilter.cpp(59): E2247 'IIRFilter::real_type' is not accessible
[BCC32 Error] SourceFilter.cpp(83): E2285 Could not find a match for 'EnvironmentBase::Parameter(const char *)'


and similar errors with p3signalprocessing for example-


[BCC32 Error] Normalfilter.cpp(95): E2285 Could not find a match for 'EnvironmentBase::Parameter(const char *)'

The Borland IDE and comiler im using is the new C++ Builder 2007 enterprize edition.

As im new to Borland, i am unsure as to whether the errors are due to errors in the actual code or due to the fact the new IDE is having trouble compiling old code. An issue i came across using Visual Studio.

Many thanks, Adam

Compiler ...

Posted: 29 Aug 2007, 11:50
by gschalk
Adam,

BCI2000 currently supports Borland C++ Builder 6. Coincidently, we are currently fixing the compilation issues with C++ Builder 2007. This should be done shortly (i.e., by the end of the week).

Gerv

Posted: 29 Aug 2007, 12:07
by Adam_C
Excellent, could you please update me when they are completed?
Thanks, Adam

Compilation ...

Posted: 29 Aug 2007, 13:14
by gschalk
Adam,

You can check out the progress on source.bci2000.org under Timeline.

Gerv

Posted: 30 Aug 2007, 14:23
by mellinger
Adam,

unfortunately, BCB2007 support is broken for the BCI2000 version 1 (trunk version).
We are currently busy finishing version 2, and thus do not have the resources to fix these issues.

You might consider switching to version 2 which compiles under BCB2007.
Alternatively, you might have a look at the errors. Basically, they are due to stricter language rules (accessibility/visibility of symbols) in more recent C++ compilers.
E.g., the error messages you report will likely go away when you make the typedefs in IIRFilter's declaration public, and add a line

Code: Select all

using EnvironmentBase::Parameter;
to the Environment class declaration.

Regards,
Juergen

Posted: 05 Sep 2007, 05:44
by Adam_C
Can i just ask, when i, for example, download say the trunk file or the branches file, do those files contain all the updates (found in the Timeline section) up to the date of download or does one need to back track and include all of the updates manually?

Thanks, Adam

compilation ...

Posted: 05 Sep 2007, 22:57
by gschalk
Hi,

Whenever you download a version, either from the trunk or a branch, it always contains the most recent version of the code. In TortoiseSVN you can specify a particular earlier version if you want to, but the current one is default.

Gerv