m-byte918 / AgarOSS

An Agar.io open source server implementation written in C++
31 stars 6 forks source link

Error compiling #10

Closed VSS-Vintorez closed 5 years ago

VSS-Vintorez commented 6 years ago

image this is annoying and it's while compiling

BorysDev commented 6 years ago

What command are you using to compile may i know?

VSS-Vintorez commented 6 years ago

Well I am using compile.bat

On Sun, Aug 26, 2018, 5:44 PM Borys notifications@github.com wrote:

What command are you using to compile may i know?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Megabyte918/OgarCpp/issues/10#issuecomment-416085661, or mute the thread https://github.com/notifications/unsubscribe-auth/AXZjR1DtF93T71OMYac_4FPWQqex0LT_ks5uU0D9gaJpZM4WM8q6 .

BorysDev commented 6 years ago

Give this command a try please:

g++ -std=c++17 -o OgarCpp -I ./*.cpp Connection/*.cpp Entities/*.cpp Game/*.cpp Modules/*.cpp Packets/*.cpp -luWS -lz -lssl -pthread
VSS-Vintorez commented 6 years ago

same error

m-byte918 commented 6 years ago

@ZmanGamer It works fine for me. Have you moved compile.bat or the Game folder? Try re-downloading and running it in the same folder that it comes in.

freaky767 commented 6 years ago

getting same error and didnt move anything

VSS-Vintorez commented 5 years ago

i have not moved anything

VSS-Vintorez commented 5 years ago

i am also on win7 so...

m-byte918 commented 5 years ago

Use this instead: g++ -std=c++17 -o OgarCpp -I /*.cpp Connection/*.cpp Entities/*.cpp Game/*.cpp Modules/*.cpp Player/*.cpp Protocol/*.cpp -luWS -lz -lssl -pthread I forgot that on windows you don't use ./ to get the current directory, lol

m-byte918 commented 5 years ago

Fixed in https://github.com/Megabyte918/OgarCpp/commit/2fc0ac282cd7b1b8175b7d85a120f3dc990160fb