luccanunes / luccanunes/discord.cpp
undefined reference to dpp::run
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 17
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Hi I got this error after runing the example on linux:
```
in function `main': discordmain.cpp:(.text+0x74): undefined reference to `dpp::Client::run(std::__ndk1::basic_string, std::__ndk1::allocator > const&)' clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
```
that's the command I used:
```
g++ -std=c++2a discordmain.cpp -ldiscord_cpp -lixwebsocket --stdlib=libc++ -lz
```
I copied the usr libs & includes to the default usr lib & includes `/usr/lib/` & `/usr/include/` and still same error
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Linux example with the reported g++ command and inspect the complete linker output, including the library and standard-library settings. Compare the command with the repository's example build requirements; done means the example links and runs without the undefined-reference error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100