You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is the same problem but i've had this happen a few times. The issue is that if you use the ".bat" file that sets up the paths for msvc it's missing the framework setting e.g. default: %comspec% /k ""D:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86
where as if you want to use "rc", "fxc" or other tools you need to use e.g: %comspec% /k ""D:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86 8.1
Activity
lethosor commentedon Jan 25, 2019
Is clsocket-CMAKE a folder you added? I don't recognize the name, and I'm pretty sure the repo path wouldn't show up in at least the first line.
UHSL-Marcus commentedon Jan 28, 2019
I renamed the project but nothing more. I managed to make it work by exporting the classes. I made this definition
#ifdef _SHARED
#define EXPORT __declspec(dllexport)
#else
#define EXPORT __declspec(dllimport)
#endif
And the exported the classes I needed. e.g.
class EXPORT CSimpleSocket {
As a side request, could you give UDP example? I can't get any packets to send in UDP mode.
warmist commentedon Jan 28, 2019
I'm not sure if this is the same problem but i've had this happen a few times. The issue is that if you use the ".bat" file that sets up the paths for msvc it's missing the framework setting e.g. default:
%comspec% /k ""D:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86where as if you want to use "rc", "fxc" or other tools you need to use e.g:
%comspec% /k ""D:\Program Files\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"" x86 8.1