[OT] socket communications

General questions regarding the usage of CodeLite

[OT] socket communications

Postby HJarausch on Wed Mar 10, 2010 8:29 am

Hi,
I had a hard time googling for how to use sockets under MinGW.
I have code which works under Linux but gives missing header files under MinGW.
Furthermore I have code which works under Windows-native/Visual C++.
This, using WinSock2.h, compiles under CodeLite but gives a run time error
when started (some missing WinMain@16).

Since CodeLite is able to access its homepage and in addition there is a Subversion
plugin, it must be possible to use sockets when using CodeLite under MinGW.

Many thanks for a hint or pointer,
Helmut.
HJarausch
 
Posts: 27
Joined: Thu Feb 18, 2010 8:54 pm

Re: [OT] socket communications

Postby eranif on Wed Mar 10, 2010 8:59 am

HJarausch wrote:This, using WinSock2.h

This should be enough
HJarausch wrote:but gives a run time error
when started (some missing WinMain@16).

Can u post the complete build log?

Do you have main function?
Eran
User avatar
eranif
Site Admin
 
Posts: 1888
Joined: Wed Feb 06, 2008 7:29 pm


Re: [OT] socket communications

Postby HJarausch on Wed Mar 10, 2010 1:31 pm

Thanks, I discovered I have to link to libws2_32. Now it works.

Helmut.
HJarausch
 
Posts: 27
Joined: Thu Feb 18, 2010 8:54 pm


Return to Using CodeLite

Who is online

Users browsing this forum: sharth and 2 guests