Difference between revisions of "Talk:Cataclysm"

From RogueBasin
Jump to navigation Jump to search
m
Line 22: Line 22:


ChairmanPoo, it seems you're just missing morale.h and moraledata.h, which weren't on my github for a while (sorry!).  They're there now; just sync/download them and it should compile fine.
ChairmanPoo, it seems you're just missing morale.h and moraledata.h, which weren't on my github for a while (sorry!).  They're there now; just sync/download them and it should compile fine.
HunterZ, odd, I'll look into my devblog's comment issue.  My point class does have a copy constructor, so that can't be it... also, I am extremely noobish at C++, and as such didn't even know about iterators until a couple weeks ago.  One day I'll do a major code refactor and use them inside of index numbers!  I'm also not familiar with <algorithm> but I'll look intoo it, thank you.
HunterZ, odd, I'll look into my devblog's comment issue.  My point class does have a copy constructor, so that can't be it... also, I am extremely noobish at C++, and as such didn't even know about iterators until a couple weeks ago.  One day I'll do a major code refactor and use them inside of index numbers!  I'm also not familiar with <algorithm> but I'll look intoo it, thank you.
[[User:Whales|Whales]] 19:11, 18 November 2010 (UTC)
[[User:Whales|Whales]] 19:11, 18 November 2010 (UTC)

Revision as of 19:12, 18 November 2010

I get this error while trying to compile: /Whales-Cataclysm-76839bf$ make g++ -g -c bionics.cpp -o obj/bionics.o In file included from bionics.cpp:1: player.h:10:20: error: morale.h: No existe el archivo o directorio In file included from bionics.cpp:1: player.h:123: error: ????morale_type’ has not been declared player.h:178: error: ????morale_point’ was not declared in this scope player.h:178: error: template argument 1 is invalid player.h:178: error: template argument 2 is invalid make: *** [obj/bionics.o] Error 1

Any ideas? ChairmanPoo 07:30, 17 November 2010 (UTC)

Whales: Your dev blog doesn't seem to allow me to post comments (the box is there but my comment vanishes when I hit preview or post comment). I was going to reply to your vector copying post with the following:

It could be that you need to implement a copy constructor for your point class so that std::vector can do a deep copy.
Also, using the std::copy() method from <algorithm> or at least using an iterator instead of an index number to access the vector elements would likely result in much faster copying.

--HunterZ 17:38, 17 November 2010 (UTC)


ChairmanPoo, it seems you're just missing morale.h and moraledata.h, which weren't on my github for a while (sorry!). They're there now; just sync/download them and it should compile fine.

HunterZ, odd, I'll look into my devblog's comment issue. My point class does have a copy constructor, so that can't be it... also, I am extremely noobish at C++, and as such didn't even know about iterators until a couple weeks ago. One day I'll do a major code refactor and use them inside of index numbers! I'm also not familiar with <algorithm> but I'll look intoo it, thank you.

Whales 19:11, 18 November 2010 (UTC)