apache / apache/rocketmq-client-cpp

[Bug] Unit test compilation fails

Offen
#496 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
393
Forks
167
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**BUG REPORT**

1. Please describe the issue you observed:

- What did you do (The steps to reproduce)?

1.1 set build.sh declare test=1

![Image](https://github.com/user-attachments/assets/d6399137-4c0f-484a-818b-cc6748ae50e5)

1.2 Execute `sh build.sh` in the root directory

1.3 find a problem:error: no matching constructor for initialization of 'SendResult'
![Image](https://github.com/user-attachments/assets/22d0f6f9-7a95-437d-b16a-3109520454ba)
1.4 when i fix this problem,another problem appear. error: reference to type 'const SendMessageRequestHeader' could not bind to an lvalue of type 'SendMessageRequestHeader *'
![Image](https://github.com/user-attachments/assets/82f9aec9-a358-4f7f-bea6-a475dda2f504)

2. Please tell us about your environment:

- What is your OS?
macos/arm

- What is your client version?
latest

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start with build.sh in the repository root, set test=1, and run it on macOS/ARM to reproduce the compilation errors. Trace the SendResult constructor error and the SendMessageRequestHeader binding error; done means the unit-test build completes successfully.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp
Bereich
build-system, testing
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.