Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm unable to compile/build it #33

Closed
ghost opened this issue Feb 23, 2018 · 4 comments
Closed

I'm unable to compile/build it #33

ghost opened this issue Feb 23, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 23, 2018

Hello @Demion ,

I'm having some trouble to compile the source code for some reason... Below you will find attached some screenshot of what type of errors I'm getting.

Thanks for your time and your work!
capture
dll
exe

@Demion
Copy link
Owner

Demion commented Feb 23, 2018

  1. Size can vary depending on Release or Debug build also depending on static or dynamic linking. ( I use Release build and static linking).
  2. Most likely you are using Debug build which is not configured, you can try build as Release or change settings:
    a. Project -> Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions -> add
    _CRT_SECURE_NO_WARNINGS
    b. Project -> Properties -> Linker -> Input -> Additional Dependecies -> add
    ws2_32.lib

To change linking type:
Project -> Properties -> C/C++ -> Code Generation -> Runtime Library -> set
static: /MT or /MTd (for debug)
dynamic: /MD or /MDd (for debug)

@ghost
Copy link
Author

ghost commented Feb 25, 2018

Thanks for your answer. However, I'm still getting a few errors... I attached another screenshot for your review. Thanks for your support!
capture

@Demion
Copy link
Owner

Demion commented Feb 25, 2018

  1. Project -> Properties -> General -> Platform Toolset change to toolset you have available (same version your Visual Studio is).
  2. If that does not help google / ask at stackoverflow. Seems like you have some problems with Visual Studio installation. Maybe this helps https://stackoverflow.com/questions/21029654/error-c1083-cannot-open-include-file-winsock2-h-no-such-file-or-directory

@ghost
Copy link
Author

ghost commented Feb 26, 2018

That fixed it! I had an old SDK lol. Thanks again man!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant