Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
bec533f7
Commit
bec533f7
authored
May 16, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #127 from debio264/windows-fix
fix Windows MinGW64 build
parents
66d554bc
f203aa7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
examples/CMakeLists.txt
examples/CMakeLists.txt
+5
-1
examples/remote_actors/simple_broker.cpp
examples/remote_actors/simple_broker.cpp
+4
-0
No files found.
examples/CMakeLists.txt
View file @
bec533f7
...
...
@@ -5,7 +5,11 @@ add_custom_target(all_examples)
macro
(
add name folder
)
add_executable
(
${
name
}
${
folder
}
/
${
name
}
.cpp
${
ARGN
}
)
target_link_libraries
(
${
name
}
${
CMAKE_DL_LIBS
}
${
CPPA_LIBRARY
}
${
PTHREAD_LIBRARIES
}
)
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Window"
)
target_link_libraries
(
${
name
}
${
CMAKE_DL_LIBS
}
${
CPPA_LIBRARY
}
${
PTHREAD_LIBRARIES
}
-lws2_32
)
else
()
target_link_libraries
(
${
name
}
${
CMAKE_DL_LIBS
}
${
CPPA_LIBRARY
}
${
PTHREAD_LIBRARIES
}
)
endif
()
add_dependencies
(
${
name
}
all_examples
)
endmacro
()
...
...
examples/remote_actors/simple_broker.cpp
View file @
bec533f7
...
...
@@ -15,7 +15,11 @@
#include <cassert>
#include <iostream>
#ifdef WIN32
#include <Winsock2.h>
#else
#include <arpa/inet.h> // htonl
#endif
#include "cppa/cppa.hpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment