Hey, I have gotten this to _kinda_ compile on Visual Studio. Only problem is I'm getting these errors:
1>------ Build started: Project: main, Configuration: Debug Win32 ------
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__bind@12 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__connect@12 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__htons@4 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__inet_addr@4 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__gethostbyname@4 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__closesocket@4 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__socket@12 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__WSACleanup@0 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__WSAStartup@8 referenced in function "public: int __thiscall CInsim::init(char *,unsigned short,char *,char *,struct IS_VER *,unsigned char,unsigned short,unsigned short,unsigned short)" (?init@CInsim@@QAEHPADG00PAUIS_VER@@EGGG@Z)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__recv@16 referenced in function "public: int __thiscall CInsim::next_packet(void)" (?next_packet@CInsim@@QAEHXZ)
1>CInsim.obj : error LNK2019: unresolved external symbol ___WSAFDIsSet@8 referenced in function "public: int __thiscall CInsim::next_packet(void)" (?next_packet@CInsim@@QAEHXZ)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__select@20 referenced in function "public: int __thiscall CInsim::next_packet(void)" (?next_packet@CInsim@@QAEHXZ)
1>CInsim.obj : error LNK2019: unresolved external symbol __imp__send@16 referenced in function "public: int __thiscall CInsim::send_packet(void *)" (?send_packet@CInsim@@QAEHPAX@Z)
1>G:\Users\Povilas\Documents\Visual Studio 2010\Projects\main\Debug\main.exe : fatal error LNK1120: 13 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
These errors require you to supply additional LIBS to the project in Visual Studio. I was getting more errors than this, but I solved it by adding the "libpthreadGC2.a" to the additional libs.
Seems like there is more missing. Any ideas? Is there any lib file or such for CInSim?
Thanks, Povo.