Re: [DM-dev] reward: what the Hell is wrong with this code?
Brought to you by:
acdalton,
henningsen
From: Henningsen <al...@gl...> - 2001-05-23 22:38:34
|
>1) NEVER use -k. That kills some of the variables which the makefiles >needs. >2) You must ALWAYS run 'make' one time (more neither hurts nor >helps) from the top-most level, and any time you add a .h >file to libdm/*. That recreates the .h files in include/dm (symlinks on >a Unix machine, copies under Windows). > >Give that a try... Ok I did, and it did compile alright. But the thing in main_hierarchy baffles me as much as you. I simplified the line in question, and the same mistake occurs, if you just declare in the first line of the function in question: Room* pRoom; It complains that pRoom is undeclared. I also moved the #include for the Room-file around to the very start of the list of includes, but to no avail. But I think it's pretty certain that for one reason or another, Room.h is not really included. Next thing I'd try is to put everything from Room.h into Wall.h and see whether that removes the mistake. Forgot to do that while I was still in Linux, but then you'd not want your code to have that structure, right? Some Makefile where Room is last or treated in some special way that might result in this? Peter |