static-linking

How to call a lib written in C++ from C ?

It seems to me like a no-brainer, but I cannot find any information against or for it. From the point of view of demangling etc, I don't suppose this to be a big problem, but I can't figure out, how I can write a little tiny C program which calls a function from a little tiny C++ library. I am on linux right now, trying with static bin...

How do I statically link SDL on Windows with MinGW?

See title. I'm using Code::Blocks. Googling results in info involving the sdl-config sh script, which I obviously can't use on Windows. ...

Failed to create a custom TCL interpreter with TclPro1.4: undefined reference to `__ctype_b'

I am trying to create a custom TCL interpreter with TclPro according instructions at TclPro User's Guide Chapter 7, but it fails with linking error undefined reference to __ctype_b. I have downloaded and installed TclPro 1.4 at /opt/ajuba/TclPro1.4/, and here is the custom interpreter I want to build: // file simple.cpp #include <proWr...