Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

std::locale [con/de]structor undefined

Open
#145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
arduino, cpp
Domain
embedded-iot

Research direction

Reproduce the minimal Arduino sketch that includes and constructs std::locale, using the Functional example and the linker output as the starting points. Trace the Arduino SAM build and linking behavior for std::locale; done means the example no longer reports undefined constructor and destructor references, or the supported limitation is clearly established.

Written by the indexing model from the issue text.

Description

#include <locale>
void setup() {
std::locale L;
}

void loop() {
}
C:\Users\vhtmf\AppData\Local\Temp\arduino\sketches\52F23F0CFDD118EC78D3909BB8E326BF\sketch\Functional.ino.cpp.o: In function `setup':
C:\Users\vhtmf\Documents\Arduino\libraries\Cpp_Standard_Library\examples\Functional/Functional.ino:3: undefined reference to `std::locale::locale()'
C:\Users\vhtmf\Documents\Arduino\libraries\Cpp_Standard_Library\examples\Functional/Functional.ino:3: undefined reference to `std::locale::~locale()'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1
Dominant language
HTML
Stars
91
Forks
112
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from arduino/ArduinoCore-sam

All issues in arduino/ArduinoCore-sam

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.