Hello everybody.
I would like to build FlightGear with Microsoft Visual C++ 6.0 under Windows
2000 SP4
to verify (during my free time) with BoundsChecker (from Compuware)
if I am not able to find some memory leak or access violation.
Let me know if it's not the right place to talk about that.
[sure you know now that english is not my native language...]
Sorry if my problem was many times asked,
but I didn't find an option to browse all archives.
Let me explain what I did before having this compilation error.
1.) Download following files by ftp :
fgfs-base-0.9.4.tar.gz
FlightGear-0.9.4.tar.gz
SimGear-0.3.5.tar.gz
plib-1.8.3.tar.gz
glut-3.7.6-bin.zip
2.) Open workspace plib.dsw and build all projects
(found in plib-1.8.3.tar.gz)
Result : 13 libraries without any error
3.a) Extract files from zlib-1.1.4.tar.gz
(found under src-libs in SimGear-0.3.5.tar.gz)
3.b) Open workspace zlib.dsw and build zlib project
Result : 1 library without any error
4.) Open workspace FlightGear.dsw and build FlightGear project
4.a) Compiling...
aircraft.cxx
c:\project\flightgear\flightgear-0.9.4\src\aircraft\aircraft.cxx(27) :
fatal error C1083: Cannot open include file: 'plib/ul.h':
No such file or directory
Rename directory c:\project\flightgear\plib-1.8.3
to c:\project\flightgear\flightgear-0.9.4\src\plib
4.b) Compiling again...
aircraft.cxx
c:\project\flightgear\flightgear-0.9.4\src\aircraft\aircraft.cxx(30) :
fatal error C1083: Cannot open include file: 'simgear/constants.h':
No such file or directory
Rename directory c:\project\flightgear\SimGear-0.3.5\simgear
to c:\project\flightgear\flightgear-0.9.4\src\simgear
4.c) Compiling again...
aircraft.cxx
c:\project\flightgear\flightgear-0.9.4\src\gui\gui.h(36) :
fatal error C1083: Cannot open include file: 'GL/glut.h':
No such file or directory
Rename c:\project\flightgear\glut-3.7.6-bin
to c:\project\flightgear\flightgear-0.9.4\src\GL
4.d) Compiling again...
runways.cxx
c:\project\flightgear\flightgear-0.9.4\src\simgear\misc\zfstream.hxx(33) :
fatal error C1083: Cannot open include file: 'zlib.h':
No such file or directory
Rename directory c:\project\flightgear\SimGear-0.3.5\src-libs\zlib-1.1.4
to c:\project\flightgear\flightgear-0.9.4\src\zlib
and change line 33: #include <zlib.h> to #include <zlib/zlib.h>
(because I don't want to modify include path during first compilation
attempt)
4.e) Compiling again...
AIMgr.cxx
c:\project\flightgear\flightgear-0.9.4\src\atc\aimgr.cxx(601) :
error C2374: 'i' : redefinition; multiple initialization
c:\project\flightgear\flightgear-0.9.4\src\atc\aimgr.cxx(596) :
see declaration of 'i'
string FGAIMgr::GenerateCallsign() {
..
596: for(int i=0; i<j; ++i) {
..
}
601: for(int i=j; i<5; ++i) {
..
}
variable i should be valid only inside the for statement.
Don't understand why compiler say it is a redefinition.
Bypass: Move local declaration of int i to the function scope
string FGAIMgr::GenerateCallsign() {
int i;
..
for(i=0; i<j; ++i) {
..
}
for(i=j; i<5; ++i) {
..
}
4.f) Compiling again...
tower.cxx
c:\project\flightgear\flightgear-0.9.4\src\atc\tower.cxx(613) :
error C2086: 'twrItr' : redefinition
void FGTower::ProcessDownwindReport(TowerPlaneRec* t) {
..
for(tower_plane_rec_list_iterator twrItr = circuitList.begin(); twrItr !=
circuitList.end(); twrItr++) {
..
}
613: for(tower_plane_rec_list_iterator twrItr = appList.begin(); twrItr !=
appList.end(); twrItr++) {
..
}
same as 4.e
void FGTower::ProcessDownwindReport(TowerPlaneRec* t) {
tower_plane_rec_list_iterator twrItr;
..
for(twrItr = circuitList.begin(); twrItr != circuitList.end(); twrItr++) {
..
}
for(twrItr = appList.begin(); twrItr != appList.end(); twrItr++) {
..
}
4.g) Compiling again...
xmlauto.cxx
c:\project\flightgear\flightgear-0.9.4\src\autopilot\xmlauto.cxx(625) :
warning C4101: 'exc' : unreferenced local variable
625: } catch (const sg_exception& exc) {
no change
4.h) Who can help me to solve this problem ?
environment_ctrl.cxx
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
596) :
error C2653: 'vector<class SGMetarCloud,class std::allocator<class
SGMetarCloud> >' :
is not a class or namespace name
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
596) :
error C2065: 'iterator' : undeclared identifier
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
596) :
error C2146: syntax error : missing ';' before identifier 'cloud'
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
596) :
error C2065: 'cloud' : undeclared identifier
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
599) :
error C2440: '=' : cannot convert from 'class SGMetarCloud *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
599) :
error C2446: '!=' : no conversion from 'class SGMetarCloud *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
599) :
error C2040: '!=' : 'int' differs in levels of indirection from 'class
SGMetarCloud *'
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
607) :
error C2227: left of '->getCoverage' must point to class/struct/union
c:\project\flightgear\flightgear-0.9.4\src\environment\environment_ctrl.cxx(
613) :
error C2227: left of '->getAltitude_ft' must point to class/struct/union
I wish you all a good day.
Many thanks
Yves
_______________________________________________
Flightgear-users mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-users