Raised This Month: $51 Target: $400
 12% 

Hook on CBaseCombatCharcter-Functions


Post New Thread Reply   
 
Thread Tools Display Modes
Roger Devil
Senior Member
Join Date: Dec 2004
Location: Germany
Old 03-16-2005 , 10:51  
Reply With Quote #11

Quote:
Originally Posted by PM
If you are compiling on GCC:

Quote:
-fdump-class-hierarchy (C++ only)
-fdump-class-hierarchy-options (C++ only)
Dump a representation of each class's hierarchy and virtual function table layout to a file. The file name is made by appending .class to the source file name. If the -options form is used, options controls the details of the dump as described for the -fdump-tree options.
(http://gcc.gnu.org/onlinedocs/gcc-3....ugging-Options)

Under MSVC, breakpoint/disassembly, as lance said.

I prefer this method over counting, because the compiler may do weird things if it is a derived class ;o
High PM, have tried this option with the gcc 3.4.3 compiler, got unknown command line option
-g -gccdb is o.k., anything else i have to do ???
Roger Devil is offline
Send a message via ICQ to Roger Devil
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-16-2005 , 11:07  
Reply With Quote #12

Hmm, what command line did you use? It seemed to work for me... GCC 3.4.something I guess.
__________________
hello, i am pm
PM is offline
Roger Devil
Senior Member
Join Date: Dec 2004
Location: Germany
Old 03-18-2005 , 04:32  
Reply With Quote #13

Got the following error :
/fat-g/gcc-3.4.3/usr/bin/g++-gcc-3.4.3 -I../dlls -I../game_shared -I../public/tier0 -I../public/tier1 -I../public/dlls -I../public/game_shared -I../public -Iinclude -w -fpermissive -fdump-class-hierachy -D_LINUX -DNDEBUG -Dstricmp=strcasecmp -D_stricmp=strcasecmp -D_strnicmp=strncasecmp -Dstrnicmp=strncasecmp -D_snprintf=snprintf -D_vsnprintf=vsnprintf -D_alloca=alloca -Dstrcmpi=strcasecmp -fPIC -mtune=i686 -march=pentium -mmmx -O3 -Usprintf=use_Q_snprintf_instead_of_sprintf -Ustrncpy=use_Q_strncpy_instead -UPROTECTED_THINGS_ENABLE -DARCH=i486 -o obj/plugin/statsmeminimum_convar.o -c ../utils/statsmeminimum_s/statsmeminimum_convar.cpp
cc1plus: error: unrecognized command line option "-fdump-class-hierachy"
make: *** [obj/plugin/statsmeminimum_convar.o] Error 1
Roger Devil is offline
Send a message via ICQ to Roger Devil
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode