This is an automated email from the ASF dual-hosted git repository.
xyz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new c34894525ac Update C++ client 4.0.0 docs for 4.0 and 4.1 branches
(#1065)
c34894525ac is described below
commit c34894525ac4f5c99e3a3b46e49379c133635c6e
Author: Yunze Xu <[email protected]>
AuthorDate: Mon Dec 15 11:38:49 2025 +0800
Update C++ client 4.0.0 docs for 4.0 and 4.1 branches (#1065)
---
versioned_docs/version-4.0.x/client-libraries-cpp.md | 12 ++++++++----
versioned_docs/version-4.1.x/client-libraries-cpp.md | 12 ++++++++----
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/versioned_docs/version-4.0.x/client-libraries-cpp.md
b/versioned_docs/version-4.0.x/client-libraries-cpp.md
index 65a0705e6ad..9128a045d9c 100644
--- a/versioned_docs/version-4.0.x/client-libraries-cpp.md
+++ b/versioned_docs/version-4.0.x/client-libraries-cpp.md
@@ -31,6 +31,10 @@ You can use a Pulsar C++ client to create Pulsar
[producers](concepts-clients.md
- [Supported schema
types](https://github.com/apache/pulsar-client-cpp/blob/main/include/pulsar/Schema.h)
- [Client feature matrix](/client-feature-matrix/)
+## Changes for 4.0.0 and later versions
+
+C++17 is now required for 4.0.0 and later versions.
+
## Changes for 3.0.0 and later versions
The new version of the Pulsar C++ client starts from 3.0.0 and has been no
longer consistent with Pulsar since 2.10.x. For the latest releases, see the
[Download](/download/) page.
@@ -52,11 +56,11 @@ Here is an example to link these libraries for a C++ source
file named `main.cc`
```bash
# Link to libpulsar.so
-g++ -std=c++11 main.cc -lpulsar
+g++ -std=c++17 main.cc -lpulsar
# Link to libpulsarwithdeps.a
-g++ -std=c++11 main.cc /usr/lib/libpulsarwithdeps.a -lpthread -ldl
+g++ -std=c++17 main.cc /usr/lib/libpulsarwithdeps.a -lpthread -ldl
# Link to libpulsar.a
-g++ -std=c++11 main.cc /usr/lib/libpulsar.a \
+g++ -std=c++17 main.cc /usr/lib/libpulsar.a \
-lprotobuf -lcurl -lssl -lcrypto -lz -lzstd -lsnappy -lpthread -ldl
```
@@ -70,4 +74,4 @@ Linking to `libpulsar.a` can be difficult for beginners
because the 3rd party de
Before 3.0.0, there was a `libpulsarnossl.so`, which is removed now.
-:::
\ No newline at end of file
+:::
diff --git a/versioned_docs/version-4.1.x/client-libraries-cpp.md
b/versioned_docs/version-4.1.x/client-libraries-cpp.md
index 65a0705e6ad..9128a045d9c 100644
--- a/versioned_docs/version-4.1.x/client-libraries-cpp.md
+++ b/versioned_docs/version-4.1.x/client-libraries-cpp.md
@@ -31,6 +31,10 @@ You can use a Pulsar C++ client to create Pulsar
[producers](concepts-clients.md
- [Supported schema
types](https://github.com/apache/pulsar-client-cpp/blob/main/include/pulsar/Schema.h)
- [Client feature matrix](/client-feature-matrix/)
+## Changes for 4.0.0 and later versions
+
+C++17 is now required for 4.0.0 and later versions.
+
## Changes for 3.0.0 and later versions
The new version of the Pulsar C++ client starts from 3.0.0 and has been no
longer consistent with Pulsar since 2.10.x. For the latest releases, see the
[Download](/download/) page.
@@ -52,11 +56,11 @@ Here is an example to link these libraries for a C++ source
file named `main.cc`
```bash
# Link to libpulsar.so
-g++ -std=c++11 main.cc -lpulsar
+g++ -std=c++17 main.cc -lpulsar
# Link to libpulsarwithdeps.a
-g++ -std=c++11 main.cc /usr/lib/libpulsarwithdeps.a -lpthread -ldl
+g++ -std=c++17 main.cc /usr/lib/libpulsarwithdeps.a -lpthread -ldl
# Link to libpulsar.a
-g++ -std=c++11 main.cc /usr/lib/libpulsar.a \
+g++ -std=c++17 main.cc /usr/lib/libpulsar.a \
-lprotobuf -lcurl -lssl -lcrypto -lz -lzstd -lsnappy -lpthread -ldl
```
@@ -70,4 +74,4 @@ Linking to `libpulsar.a` can be difficult for beginners
because the 3rd party de
Before 3.0.0, there was a `libpulsarnossl.so`, which is removed now.
-:::
\ No newline at end of file
+:::