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.
[OT] socket communications
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: [OT] socket communications
This should be enoughHJarausch wrote:This, using WinSock2.h
Can u post the complete build log?HJarausch wrote:but gives a run time error
when started (some missing WinMain@16).
Do you have main function?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Expert
- Posts: 176
- Joined: Sun Aug 17, 2008 2:45 pm
- Contact:
Re: [OT] socket communications
Hi Helmut,
with wxWidgets (what CodeLite is using) it is quiet easy to use sockets. Take a look here:
http://docs.wxwidgets.org/2.8/wx_wxsocketserver.html
http://docs.wxwidgets.org/2.8/wx_wxsock ... cketclient
http://docs.wxwidgets.org/2.8/wx_wxsock ... ocketevent
http://docs.wxwidgets.org/2.8/wx_sample ... plesockets
Frank
with wxWidgets (what CodeLite is using) it is quiet easy to use sockets. Take a look here:
http://docs.wxwidgets.org/2.8/wx_wxsocketserver.html
http://docs.wxwidgets.org/2.8/wx_wxsock ... cketclient
http://docs.wxwidgets.org/2.8/wx_wxsock ... ocketevent
http://docs.wxwidgets.org/2.8/wx_sample ... plesockets
Frank
-
- CodeLite Veteran
- Posts: 98
- Joined: Thu Feb 18, 2010 10:54 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: [OT] socket communications
Thanks, I discovered I have to link to libws2_32. Now it works.
Helmut.
Helmut.