kine100
Warlord
- Joined
- May 8, 2010
- Messages
- 153
Hello, everyone..
I'm new for SDK and modding for my own based on 'Dale's combat mod',
and I in trouble to compile the codes.
The settings wouldn't have a problem.
for the test, I tried to compile a dll with original BTS codes only, and it was succeed.
and what I am doing is compile with the codes from the DCM only
and keep getting error messages below.. for 2 days already..
1>------ Build started: Project: CvGameCoreDLL, Configuration: Release Win32 ------
1>Performing Makefile project actions
1> "C:\Program Files (x86)\Microsoft Visual C++ Toolkit 2003\bin\cl.exe" /nologo /MD /O2 /Oy /Oi /G7 /DNDEBUG /DFINAL_RELEASE /Fp"Release\CvGameCoreDLL.pch" /GR /Gy /W3 /EHsc /Gd /Gm- /DWIN32 /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /Yu"CvGameCoreDLL.h" /IBoost-1.32.0/include /IPython24/include /I"C:\Program Files (x86)\Microsoft Visual C++ Toolkit 2003/include" /I"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A/Include" /I"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A/Include/mfc" /I"C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\CvGameCoreDLL\Boost-1.32.0/include" /I"C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\CvGameCoreDLL\Python24/include" /FoRelease\CvUnit.obj /c CvUnit.cpp
1>CvUnit.cpp
1>CvUnit.cpp(4549) : error C2065: 'iCount' : undeclared identifier
1>CvUnit.cpp(4550) : error C2065: 'pUnit' : undeclared identifier
1>CvUnit.cpp(4551) : error C2065: 'pUnitNode' : undeclared identifier
1>CvUnit.cpp(4552) : error C3861: 'pUnitNode': identifier not found, even with argument-dependent lookup
1>CvUnit.cpp(4552) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>NMAKE : warning U4010: 'Release\CvUnit.obj' : build failed; /K specified, continuing ...
1>NMAKE : warning U4011: 'Release\CvGameCoreDLL.dll' : not all dependents available; target not built
1>NMAKE : warning U4011: 'Release' : not all dependents available; target not built
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://d:\CIV\CIV4\01_Final_progress\01_TEST_RevDCM\CvGameCoreDLL\Release\BuildLog.htm"
1>CvGameCoreDLL - 6 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and the part causes error messages, It is not the original but I never modified at all from the mod.
Can any one help me to solve this problem or navigate me to what I should do to solve it myself..
Thank you~
I'm new for SDK and modding for my own based on 'Dale's combat mod',
and I in trouble to compile the codes.
The settings wouldn't have a problem.
for the test, I tried to compile a dll with original BTS codes only, and it was succeed.
and what I am doing is compile with the codes from the DCM only
and keep getting error messages below.. for 2 days already..
1>------ Build started: Project: CvGameCoreDLL, Configuration: Release Win32 ------
1>Performing Makefile project actions
1> "C:\Program Files (x86)\Microsoft Visual C++ Toolkit 2003\bin\cl.exe" /nologo /MD /O2 /Oy /Oi /G7 /DNDEBUG /DFINAL_RELEASE /Fp"Release\CvGameCoreDLL.pch" /GR /Gy /W3 /EHsc /Gd /Gm- /DWIN32 /D_WINDOWS /D_USRDLL /DCVGAMECOREDLL_EXPORTS /Yu"CvGameCoreDLL.h" /IBoost-1.32.0/include /IPython24/include /I"C:\Program Files (x86)\Microsoft Visual C++ Toolkit 2003/include" /I"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A/Include" /I"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A/Include/mfc" /I"C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\CvGameCoreDLL\Boost-1.32.0/include" /I"C:\Program Files (x86)\2K Games\Firaxis Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\CvGameCoreDLL\Python24/include" /FoRelease\CvUnit.obj /c CvUnit.cpp
1>CvUnit.cpp
1>CvUnit.cpp(4549) : error C2065: 'iCount' : undeclared identifier
1>CvUnit.cpp(4550) : error C2065: 'pUnit' : undeclared identifier
1>CvUnit.cpp(4551) : error C2065: 'pUnitNode' : undeclared identifier
1>CvUnit.cpp(4552) : error C3861: 'pUnitNode': identifier not found, even with argument-dependent lookup
1>CvUnit.cpp(4552) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>NMAKE : warning U4010: 'Release\CvUnit.obj' : build failed; /K specified, continuing ...
1>NMAKE : warning U4011: 'Release\CvGameCoreDLL.dll' : not all dependents available; target not built
1>NMAKE : warning U4011: 'Release' : not all dependents available; target not built
1>Project : error PRJ0019: A tool returned an error code from "Performing Makefile project actions"
1>Build log was saved at "file://d:\CIV\CIV4\01_Final_progress\01_TEST_RevDCM\CvGameCoreDLL\Release\BuildLog.htm"
1>CvGameCoreDLL - 6 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and the part causes error messages, It is not the original but I never modified at all from the mod.
Code:
// Dale - AB: AI Bombing START
//Hangar Airbomb START//
if (GC.getImprovementInfo(pPlot->getImprovementType()).isActsAsCity() && pCity == NULL)
{
if (GC.getUnitInfo(getUnitType()).getDCMAirBomb4())
{
iCount = 0;
pUnit = NULL;
pUnitNode = pPlot->headUnitNode();
while (pUnitNode != NULL)
{
pLoopUnit = ::getUnit(pUnitNode->m_data);
pUnitNode = pPlot->nextUnitNode(pUnitNode);
if (pLoopUnit->getDomainType() == DOMAIN_SEA)
{
iCount++;
}
}
if (iCount > 0)
{
airBomb4(iX, iY);
}
}
Can any one help me to solve this problem or navigate me to what I should do to solve it myself..
Thank you~