Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Barnski's winsock

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Oct 2008 00:52
Hi,
I think there is a problem with Barnski's winsock. I just downloaded it and set it up but this code wont work.



Here's the errors:


If anyone could help it would be appreicated,
Thanks,
Alex

Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 19th Oct 2008 02:54
Do you have the associated libraries linked to your project?

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Oct 2008 03:00 Edited at: 19th Oct 2008 03:01
I have them in the same folder and then included

#include "winsock_plugin.h"

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 19th Oct 2008 03:08
But you haven't linked the lib.

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Oct 2008 03:39
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Oct 2008 18:32
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 19th Oct 2008 18:40
Go into the project settings, and in the linker->input section you'll see an "Additional Dependencies" field. Just add the lib name to there, and assuming the lib is located in the same folder as the project file it should compile fine.

SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 19th Oct 2008 19:01


Add that under your includes, make sure the lib is in the same directory as "winsock_plugin.h"

www.Helios-Online.net
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Oct 2008 23:05 Edited at: 19th Oct 2008 23:06
Thanks I tired both your suggestions but it still failes

Hers the project:


Here's the errors:


If you could help it would be really appreciated,
Thanks,
Alex

Attachments

Login to view attachments
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 19th Oct 2008 23:12
I believe you have to compile in release mode.

AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Oct 2008 23:16
I get the following errors in release mode:



AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 19th Oct 2008 23:20 Edited at: 20th Oct 2008 02:44
Can someone see if they can get it to work, you can download the libraries here: http://forum.thegamecreators.com/?m=forum_view&t=109593&b=22
Thanks,
Alex

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 20th Oct 2008 21:53
Release mode settings are separate from Debug mode settings. You have to set the additional dependencies for Release.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 20th Oct 2008 21:56
Works just fine. Make sure you set the runtime thing under code generation to "MT - MultiThreaded".

Go to Project Properties. Then Linker. Under "Command Line" type /NODEFAULTLIB

I think that will fix some of your conflicting lib errors. Let me know how that works for you.

www.Helios-Online.net
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 20th Oct 2008 22:05 Edited at: 20th Oct 2008 22:34
Hi SushiBox could you put upload a project that works using the library?


Quote: "Go to Project Properties. Then Linker. Under "Command Line" type /NODEFAULTLIB"


No luck just more errors but with the GDK too now:


EDIT:


I am using a different network library now and it works so don't worry.

SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 20th Oct 2008 22:50
Which network library are you using? I have tried to contact Benjamin to get the Release version, but no luck yet.

www.Helios-Online.net

Login to post a reply

Server time is: 2024-09-30 09:23:00
Your offset time is: 2024-09-30 09:23:00