The following warnings occurred:
Warning [2] Trying to access array offset on null - Line: 198 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 198 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Undefined property: DB_MySQLi::$google_seo_query_limit - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once
Warning [2] Decrement on type null has no effect, this will change in the next major version of PHP - Line: 232 - File: inc/plugins/google_seo.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/inc/plugins/google_seo.php 232 errorHandler->error_callback
/inc/plugins/google_seo/redirect.php 131 google_seo_tid
/inc/class_plugins.php 142 google_seo_redirect_hook
/global.php 100 pluginSystem->run_hooks
/showthread.php 28 require_once




[FIXED] Error while compiling on a Mac
#1
So I've started the Component Rewrite, finally have the time, and I get this error when I try to compile my code:

Quote:In file included from /Volumes/Storage/dev/MCServer/src/Mobs/AIAgresssiveComponent.cpp:1:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/AIAgressiveComponent.h:2:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/AIComponent.h:2:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/Monster.h:4:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/../Entities/Pawn.h:4:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/../Entities/Entity.h:4:
In file included from /Volumes/Storage/dev/MCServer/src/Mobs/../Entities/../Item.h:12:
In file included from /Volumes/Storage/dev/MCServer/src/./Defines.h:4:
/Volumes/Storage/dev/MCServer/src/./ChatColor.h:12:15: error: use of undeclared identifier 'std'
static const std::string Color;

I'm sure I am missing something really simple that I need to be doing. What am I missing?
Reply
Thanks given by:
#2
Might be related to precompiled headers. Make sure to #include "Globals.h" at the top of each cpp file.
Reply
Thanks given by:
#3
Thanks. That fixed it.
Its been so long since I've written anything for MCServer I've forgotten the small things that need to happen.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)