StackOverflow Questions for Tag: extern-c

dublev
dublev

Reputation: 4385

Combining C++ and C - how does #ifdef __cplusplus work?

Score: 404

Views: 318743

Answers: 5

Read More
Aravind A
Aravind A

Reputation: 466

Can I write a library to preload in C++? Is there anything I need to do other than prepend `extern "C"` to the functions to intercept?

Score: -2

Views: 81

Answers: 1

Read More
John Carter
John Carter

Reputation: 1

Can I detect (at compile time) whether I'm in an extern "C" {} block?

Score: 0

Views: 199

Answers: 3

Read More
Litherum
Litherum

Reputation: 23334

What is the effect of extern "C" in C++?

Score: 2172

Views: 1295442

Answers: 18

Read More
Reflection
Reflection

Reputation: 2106

C++'s extern-"C" functionality to languages other than C

Score: 9

Views: 883

Answers: 2

Read More
Sherwood Wang
Sherwood Wang

Reputation: 715

How do you call a templated C++ free function from C?

Score: 7

Views: 258

Answers: 2

Read More
Tucker
Tucker

Reputation: 101

C++ using extern C library, unexpected memory leak

Score: 0

Views: 151

Answers: 2

Read More
claws
claws

Reputation: 54100

How to call C++ function from C?

Score: 120

Views: 169096

Answers: 6

Read More
Tohrwarneth
Tohrwarneth

Reputation: 11

C++ Shared Library does not export "extern C" functions

Score: -1

Views: 434

Answers: 1

Read More
MattTT
MattTT

Reputation: 537

extern "C": Why does Visual C++ behave different on conflicting linkage specs for variables vs. for functions?

Score: 1

Views: 134

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 131385

If I declare a function with extern "C", should I also define it that way?

Score: 2

Views: 113

Answers: 2

Read More
Himanshu
Himanshu

Reputation: 21

Calling a C file in C++ is giving errors

Score: -1

Views: 79

Answers: 1

Read More
Roman
Roman

Reputation: 1466

Including extern c header results in broken preprocessor output

Score: 0

Views: 83

Answers: 1

Read More
Gleb
Gleb

Reputation: 43

extern c template instantiation

Score: 2

Views: 209

Answers: 1

Read More
einpoklum
einpoklum

Reputation: 131385

One-liner extern "C" for a variable - legit?

Score: 3

Views: 237

Answers: 2

Read More
einpoklum
einpoklum

Reputation: 131385

How can I check whether a function is extern-C?

Score: 0

Views: 162

Answers: 0

Read More
ludw
ludw

Reputation: 123

Using a enum class from a c++ header in a c header

Score: 2

Views: 1214

Answers: 3

Read More
Landon
Landon

Reputation: 15676

Why do we need extern "C"{ #include <foo.h> } in C++?

Score: 152

Views: 101264

Answers: 11

Read More
einpoklum
einpoklum

Reputation: 131385

extern "C" - before or after library header includes?

Score: 6

Views: 2296

Answers: 3

Read More
Anzo Sasuke
Anzo Sasuke

Reputation: 31

How common is it to mix C with C++?

Score: 0

Views: 157

Answers: 1

Read More
PreviousPage 1Next