Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Call To Power II > CtP2-Source Code Project > Missing header files
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
noteventime is offline noteventime
Settler

Aug 2005
time: 05:37
  Old Post 14-08-2005 22:21
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Missing header files Put an end to popups!

Hello,
Im using Visual Studio .Net 2003 and im trying to get the CTP2 source compiled. Iv read the threads about compiling the code and most things work fine, except when im trying to compile the ctp2 project. It gives me loads of missing header file errors. I'v tried to search for them but i cant find them.
All the missing header files are named *Record.h.

For example:
AdvanceRecord.h
OrderRecord.h
StrategyRecord.h
GoalRecord.h

Excuse my english.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:37
Post  Old Post 14-08-2005 23:43 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

These files are generated by dbgen automaticly. Maybe for some reason the compiler didn't generated dbgen.

Try to compile the *.cdb files manually. They can be found in the gs/newdb folder of ctp2 files in the project.

-Martin

noteventime is offline noteventime
Settler

Aug 2005
time: 05:37
  Old Post 02-09-2005 16:59
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Lose 30 kilos (of popups)

Before i get those errors i get lots of these (I dont know what i means):

Performing Custom Build Step
Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile
Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:37
Post  Old Post 02-09-2005 21:42 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by noteventime
Before i get those errors i get lots of these (I dont know what i means):

Performing Custom Build Step
Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile
Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile


It means that dbgen isn't able to create new files, actual you get only this bit of info if you look at the code and these asserts also conatain line numbers and not just xxx, so that you can find the problem in the code. But as it works on my computer, it must be a problem on your side. For instance are all the access rights set properly on your machine for your source code directory, actual you should have write access for the whole project, otherwise it wouldn't work of course. But in the momemt I don't know something else. Well it could be also a wrong path but looking into the project I don't see any problems with that.

-Martin

noteventime is offline noteventime
Settler

Aug 2005
time: 05:37
  Old Post 03-09-2005 03:04
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase the size of your Attachments

I compile as Administrator on a Windows 2000 machine, so as far as i know i should have full rights to the directory. Could it be because the directory is managed by tortoise svn.
Everything else compiles fine without errors.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:37
Post  Old Post 03-09-2005 21:51 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by noteventime
I compile as Administrator on a Windows 2000 machine, so as far as i know i should have full rights to the directory. Could it be because the directory is managed by tortoise svn.
Everything else compiles fine without errors.


That isn't a tortoise svn issure, with toirtoise you just have a buch of extra subdirectories that's all.

Another thing is that your soource code is on drive G instead of C, but actual this shouldn't do any difference. And I doubt that dbgen needs a tmp directory in the root directory of the drive. So a G:\tmp\ folder for you, that should be the bison component.

The final alternative is to modify the assert, so that it can print the path in question.

-Martin

noteventime is offline noteventime
Settler

Aug 2005
time: 05:37
  Old Post 04-09-2005 21:08
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Got spare money?

I have a tmp folder in both C:\ and G:\
quote:
Originally posted by Martin Gühmann
The final alternative is to modify the assert, so that it can print the path in question.

How do i do that :S. What are those asserts anyway.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:37
Post  Old Post 04-09-2005 22:21 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Full PM-box? Change here!

The Assert, also known as assertion falure, serves to indicate whether something happemd in the program that should not happen. Its argument is a boolean statement and if it is wrong an assertion falure occured.

The CTP2 assertion falure messages give you the assertion that was false even it should be true and it gives you the source file of the assertion and its line. CTP2 asserts are only in debug mode active and give you in addition the stack trace of the functions.

The asserts of dbgen just give you line, file and assertion. My idea was it to add the file that failed to be open put as it is just an fprintf to stderr, you could an fprintf explicitly at the places in question.

-Martin

noteventime is offline noteventime
Settler

Aug 2005
time: 05:37
  Old Post 05-09-2005 20:48
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Got spare money?

Thanks for the explanation.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:37.
Apolyton Time is 00:37.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0409 seconds (90.11% PHP - 9.89% MySQL) with 36 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net