Bots-United / metamod-p

Metamod is a plugin/DLL manager that sits between the Half-Life Engine and an HL Game mod, allowing the dynamic loading/unloading of mod-like DLL plugins to add functionality to the HL server or game mod. Metamod-P is enhanced version of Metamod. It has dynamic link-entities and automatic detection of Mod DLL and other improvement to allow it work with future Half-Life Engine updates and new Mods and updates.
http://metamod-p.sourceforge.net/
102 stars 33 forks source link

Error when compile with gcc 4.9 #13

Closed frisasky1 closed 5 years ago

frisasky1 commented 5 years ago

Compile with latest git i got following errors

game_support.cpp: In function ‘const game_modinfo_t lookup_game(const char)’: game_support.cpp:90:63: error: a function-definition is not allowed here before ‘{’ token mBOOL DLLINTERNAL install_gamedll(char from, const char to) { ^ game_support.cpp:343:15: error: expected ‘}’ at end of input return(mTRUE); ^ game_support.cpp:343:15: warning: control reaches end of non-void function [-Wreturn-type] return(mTRUE); ^ Makefile:267: recipe for target 'opt.linux_i386/game_support.o' failed make: *** [opt.linux_i386/game_support.o] Error 1