StackOverflow Questions for Tag: translation-unit

DarkoNaito_09
DarkoNaito_09

Reputation: 101

Best Way to Deal With Headers and Source Files

Score: 0

Views: 464

Answers: 2

Read More
Enlico
Enlico

Reputation: 28510

Where is the binary code for executing `std::vector<T>::operator[]`, when a TU calling that function is compiled with -O0?

Score: 2

Views: 73

Answers: 1

Read More
Grinlex
Grinlex

Reputation: 23

C++ 20 modules. duplicate of vtable

Score: 1

Views: 97

Answers: 0

Read More
heretoinfinity
heretoinfinity

Reputation: 1746

Does every translation unit need to have a main function?

Score: -1

Views: 102

Answers: 1

Read More
Leon
Leon

Reputation: 2077

Prevent C++ template codes from being compiled for many times

Score: 0

Views: 141

Answers: 3

Read More
MJTech
MJTech

Reputation: 121

Is a Translation Unit always a file?

Score: 2

Views: 546

Answers: 2

Read More
Enlico
Enlico

Reputation: 28510

Is there any reason I should include a header in the associated cpp file if the former only provides declarations the latter defines?

Score: 1

Views: 901

Answers: 3

Read More
Dmitry Kuzminov
Dmitry Kuzminov

Reputation: 6600

How to avoid deferring the initialization of static storage duration variables?

Score: 4

Views: 296

Answers: 1

Read More
YoonSeok OH
YoonSeok OH

Reputation: 745

How can static local variable shared along different translation unit?

Score: 5

Views: 1077

Answers: 3

Read More
Matt Eding
Matt Eding

Reputation: 1012

ODR and C++ Versioning for Shared Library Wrapper

Score: 0

Views: 71

Answers: 0

Read More
Enlico
Enlico

Reputation: 28510

Is a translation unit valid C++? And is a translation unit (for GCC) the output of g++ -E?

Score: 1

Views: 217

Answers: 1

Read More
eepp
eepp

Reputation: 7585

How to have TU-specific function template instantiation?

Score: 0

Views: 116

Answers: 1

Read More
MiCo
MiCo

Reputation: 401

constexpr function which is shared in multiple modules

Score: 3

Views: 908

Answers: 2

Read More
Physician
Physician

Reputation: 483

How a multiple times #included guarded header file will be inside different translation units?

Score: 0

Views: 579

Answers: 1

Read More
Physician
Physician

Reputation: 483

How many translation units in one module?

Score: 1

Views: 301

Answers: 1

Read More
Physician
Physician

Reputation: 483

Translation unit when including a source file?

Score: 0

Views: 155

Answers: 1

Read More
smwikipedia
smwikipedia

Reputation: 64443

Why the weak symbol defined in the same .a file but different .o file is not used as fall back?

Score: 4

Views: 2351

Answers: 1

Read More
João Pires
João Pires

Reputation: 1017

Including multiple .c files in a single translation unit

Score: 1

Views: 1104

Answers: 2

Read More
Galaxy
Galaxy

Reputation: 2491

Does `#pragma GCC system_header` in a header file extend into another source or header file that includes it?

Score: 0

Views: 1926

Answers: 1

Read More
Jes
Jes

Reputation: 2694

c++17 inline + thread_local vs thread_local

Score: 8

Views: 1686

Answers: 1

Read More
PreviousPage 1Next