Browse Source

fix #1364 (#1366)

* fix #1364

* fix #1364
StalderT 7 years ago
parent
commit
d7adcf8550
2 changed files with 12 additions and 0 deletions
  1. 6 0
      examples/tutorial_client_firststeps.c
  2. 6 0
      examples/tutorial_server_firststeps.c

+ 6 - 0
examples/tutorial_client_firststeps.c

@@ -50,6 +50,12 @@ int main(void) {
  *
  *     $ gcc -std=c99 open6251.c myClient.c -o myClient
  *
+ * In a MinGW environment, the Winsock library must be added.
+ *
+ * .. code-block:: bash
+ *
+ *    $ gcc -std=c99 open6251.c myClient.c -lws2_32 -o myClient.exe
+ *
  * Further tasks
  * ^^^^^^^^^^^^^
  *

+ 6 - 0
examples/tutorial_server_firststeps.c

@@ -50,6 +50,12 @@ int main(void) {
  *
  *    $ gcc -std=c99 open62541.c myServer.c -o myServer
  *
+ * In a MinGW environment, the Winsock library must be added.
+ *
+ * .. code-block:: bash
+ *
+ *    $ gcc -std=c99 open62541.c myServer.c -lws2_32 -o myServer.exe
+ *
  * Now start the server (stop with ctrl-c):
  *
  * .. code-block:: bash