Jump to content

error: unknown type name 'TPacketShopName'


Recommended Posts

Spoiler

gmake: Warning: File 'stdafx.h' has modification time 210458 s in the future
       [ COMPILING ] Config.cpp
       [ COMPILING ] NetBase.cpp
       [ COMPILING ] Peer.cpp
       [ COMPILING ] PeerBase.cpp
       [ COMPILING ] Main.cpp
In file included from NetBase.cpp:4:
./ClientManager.h       [ COMPILING ] Lock.cpp
:314:31: error: unknown type name 'TPacketShopName'In file included from
Main.cpp        void            ShopName(CPeer * peer, TPacketShopName* p);:
5:
                                               ^
./ClientManager.h:314:       [ COMPILING ] DBManager.cpp
./ClientManager.h31::315 :32:error : errorunknown type name 'TPacketShopName':
        void            ShopName(CPeer * peer, TPacketShopName* p);unknown type name 'TPacketShopClose'

                                               ^        void            ShopClose(CPeer * peer, TPacketShopClose* p);

                                                ^./ClientManager.h
:315:./ClientManager.h32::316 :37:error : errorunknown type name 'TPacketShopClose':
        void            ShopClose(CPeer * peer, TPacketShopClose* p);unknown type name 'TPacketShopUpdateItem'

                                                ^        void            ShopUpdateItem(CPeer * peer, TPacketShopUpdateItem* p);

                                                     ^./ClientManager.h
:316:37:In file included from  3 errorserror generated: .
gmake: *** [Makefile:96: OBJDIR/NetBase.o] Error 1
gmake: *** Waiting for unfinished jobs....
DBManager.cppunknown type name 'TPacketShopUpdateItem'
        void            ShopUpdateItem(CPeer * peer, TPacketShopUpdateItem* p);
                                                     ^
:3:
./ClientManager.h:314:313: error s generated.
errorgmake: *** [Makefile:96: OBJDIR/Main.o] Error 1
: unknown type name 'TPacketShopName'
        void            ShopName(CPeer * peer, TPacketShopName* p);
                                               ^
./ClientManager.h:315:32: error: unknown type name 'TPacketShopClose'
        void            ShopClose(CPeer * peer, TPacketShopClose* p);
                                                ^
./ClientManager.h:316:37: error: unknown type name 'TPacketShopUpdateItem'
        void            ShopUpdateItem(CPeer * peer, TPacketShopUpdateItem* p);
                                                     ^
3 errors generated.
gmake: *** [Makefile:96: OBJDIR/DBManager.o] Error 1
       [ DB ] [ DB REQUEST FAILED ]
 

I am trying to implement great offline shop and I have this error while trying to compile db

Anyone knows why?

  • Love 1
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

I tried something and somehow worked but now I get this at the end of compiling

Spoiler


ld: error: undefined symbol: do_hair(CHARACTER*, char const*, int, int)
>>> referenced by cmd.cpp
>>>               OBJDIR/cmd.o:(cmd_info)

ld: error: undefined symbol: do_inventory(CHARACTER*, char const*, int, int)
>>> referenced by cmd.cpp
>>>               OBJDIR/cmd.o:(cmd_info)

ld: error: undefined symbol: CShop::BuyFromGlass(CHARACTER*, CHARACTER*, unsigne       d char)
>>> referenced by shop.cpp
>>>               OBJDIR/shop.o:(vtable for CShop)
>>> referenced by shopEx.cpp
>>>               OBJDIR/shopEx.o:(vtable for CShopEx)
clang++: error: linker command failed with exit code 1 (use -v to see invocation       )
gmake: *** [Makefile:263: ../../../output/game_stripped] Error 1
gmake: *** Waiting for unfinished jobs....
ld: error: undefined symbol: do_hair(CHARACTER*, char const*, int, int)
>>> referenced by cmd.cpp
>>>               OBJDIR/cmd.o:(cmd_info)

ld: error: undefined symbol: do_inventory(CHARACTER*, char const*, int, int)
>>> referenced by cmd.cpp
>>>               OBJDIR/cmd.o:(cmd_info)

ld: error: undefined symbol: CShop::BuyFromGlass(CHARACTER*, CHARACTER*, unsigne       d char)
>>> referenced by shop.cpp
>>>               OBJDIR/shop.o:(vtable for CShop)
>>> referenced by shopEx.cpp
>>>               OBJDIR/shopEx.o:(vtable for CShopEx)
clang++: error: linker command failed with exit code 1 (use -v to see invocation       )
gmake: *** [Makefile:259: ../../../output/game_debug] Error 1
       [ GAME ] [ GAME REQUEST FAILED ]
 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.