cant add socket to plugin.... warning C4005: 'AF_IPX': macro redefinition
Hey
I've gone over it for 8h now. Whatever I try, however, I try to import my sockets, they always break. It's like there is some kind of black magic path to import the socket library on windows..
I tried all here > https://www.zachburlingame.com/2011/05/resolving-redefinition-errors-betwen-ws2def-h-and-winsock-h/
Predeclaring, above, below after etc. I'm on 10th class/file away from main, I want to import socket there and I keep getting these damn errors.
my mainPlugin import stuff >
#include "SocketLib/SocketIncludes/socket.h"
#include "PluginLib/Utilities/PIUASZString.h"
#include "iostream"
#include "PluginLib/Helpers/DocumentHierarchy.h"
#include "PluginLib/BaseSystems/CommandHandler.h"
#include <PIDefines.h>
#include <SPBasic.h>
#include <SPInterf.h>
#include <PIActionsPlugin.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <assert.h>
#include <PIUSuites.cpp>
#include <PITerminology.h>
This is nuts, what do I do to just "Import a socket" here? Importing it like above "works" until I import it somewhere else in a header and it breaks. It's like I can't import it in a header at all. Only in CPP files.
Same goes with
<PIUSuites.cpp>
Unless I import cpp in main, the plugin will not compile at all ;[
Regards
Dariusz
