Anyone who's used dark GDK will probably know what multisync (http://forum.thegamecreators.com/?m=forum_view&t=99188&b=5) is, but otherwise nobody really uses it. It's a really simple network library so it's all I really need for now, but I'm having issues getting it to work in code blocks. It'll compile, just won't link. Basically it's just a header file with declarations of all the functions, and a .lib/.exp and a .dll to put it all together. No c or c++ files. My problem is, when I include the header file and try to use the functions I get this
obj\MainS.o:MainS.cpp:(.text+0xd)||undefined reference to `NetPutString(char*)'|
(using gcc compiler that comes packaged with code blocks)
for every function I've used from the header.
I think it may have something to do with this part of the header
#ifndef _MULTISYNC_H_
#define _MULTISYNC_H_
#pragma comment(lib, "MultisyncDLL.lib") << here. pragmas are ignored by compiler?
// Core prototypes
bool NetHost(int playerAmount);
[[more definitions, nothing else to see really]]
But I'm not sure what would be suitable replacement, because nothing I've tried works. If anyone could try to help me with this or set it up themselves and tell me how they did it I'd really appreciate it - it'd probably only take an experienced user a few minutes. For anyone wondering why it looks like it's in basic, there's also a version for C++ packaged with it in the 'other languages' folder inside the download.
Thanks in advance to anyone who tries to help me :)