Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 1

error: unknown type name 'TPacketShopName'


JorJe3

Question

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?

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

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

!-->

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 993

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    2. 1

      Looking for a good designer

    3. 0

      Cross channel friend request

    4. 2

      Where are those maps/dungeons coming from?

    5. 3

      Press F10 to close the client immediately

    6. 2

      Where are those maps/dungeons coming from?

    7. 2

      Where are those maps/dungeons coming from?

    8. 4

      Visual studio 2022 compiling issue

    9. 1

      Count players function

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.