• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Linker undefined reference

jestem pro

That is the question
Joined
Apr 20, 2013
Messages
650
Solutions
14
Reaction score
87
Hello. I tried to compile my source but I get errors.
In tile.h I changed:
Code:
virtual ReturnValue __queryAdd(int32_t index, const Thing* thing, uint32_t count,
           uint32_t flags) const;
to:
Code:
    virtual ReturnValue __queryAdd(int32_t index, const Thing* thing, uint32_t count,
           uint32_t flags, Creature* actor = NULL) const;
(added Creature* actor = NULL)
I made the same with queryRemove.
And I get these errors:
[Linker error] undefined reference to `Tile::__queryAdd(int, Thing const*, unsigned int, unsigned int) const'
[Linker error] undefined reference to `Tile::__queryRemove(Thing const*, unsigned int, unsigned int) const'

In tile.cpp I added Creature* actor too. I don't exactly know what it means.
Thanks
 
Back
Top