I've made a plugin that I ran and tested on Windows (HLDS - GoldSrc version). Now I also want to port it to Linux. So I got a new linux machine, got ubuntu, GCC installed on it, and decided to use Code::blocks for compilation.
After somewhat efforts I am now able to compile my plugin under linux hood. After installing metamod 1.18 binaries at required places etc., I updated plugins.ini file, as well as copied my plugin's .so file to the correct place.
Now when i run hlds using
sudo ./hlds_run -game cstrike -dev -autoupdate +maxplayers 20 -port 27017
command, my plugin does not load.
Running 'meta info 1' gives me:
source: ini file
last loaded: Thu Jan 1 05:00:00 1970
No DLLAPI functions.
No DLLAPI-Post functions.
No NEWAPI functions.
No NEWAPI-Post functions.
No Engine functions.
No Engine-Post functions.
Registered cvars: float value string value
No child plugins.
and running 'meta list' gives me:
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] t1 badf load t1.so v - ini - -
Now I'm very stumped. Compiler does not complain. I've mentioned the right path otherwise it wouldnt be detected by metamod in first place....
What could I be doing wrong? Can someone please guide me in this regards?