lsalzman / enet

ENet reliable UDP networking library
MIT License
2.71k stars 669 forks source link

unresolved external symbol even if i include winsock #207

Open ektorthebigbro opened 2 years ago

ektorthebigbro commented 2 years ago

image image image image i have included everything needed but i am getting these errors image

playingoDEERUX commented 2 years ago

I think you shouldn't have enet.lib and enet64.lib as an additional dependency at the same time, make sure it only differs between x64 and Win32 builds... It may cause conflicts.

ektorthebigbro commented 2 years ago

if i remove enet64 it doesnt even recognise any functions if i just remove enet.lib and keep enet64.lib i get the exact same errors as before

ektorthebigbro commented 2 years ago

and winsock32.lib also has everything needed for 64 bit and also the timeapi which these errors have to do with are located in this file here image

playingoDEERUX commented 2 years ago

For me, it was fine compiling 32 bit enet.lib only when you select Win32 Project Type, which is how it should be...

I'm not too sure but I feel like linking to both enet.lib and enet64.lib simultaneously isn't the way it's intended to be...

You seem to have a linker error somewhere!