lib hell

Started by
11 comments, last by kunos 9 years, 11 months ago


In practice it isn't a big deal.
Assuming you've got the source to everything cool.png

If you're using closed-source C++ libraries, you need to be sure that the vendor has compiled it using the exact same compiler (and compiler options) to what you need...

It would probably be better to just ask the vendor to give you a C version of their library instead laugh.png

well maybe i do not wrote it clearry but I was asking about c interface libs? you talking about c++?

As i said It seem to me that this c (c interface) libs are also incompatible (has incompatible interfaces?) but also I suspect that this incompatibility is not major - isnt this just a metter of symbols?

specifically i wold be most curious what is a reason between incompatibility of c - like static libs made with VS against those of GCC/mingw

Advertisement

In practice it isn't a big deal.

Assuming you've got the source to everything cool.png
In two decades, with teams as small as 5 people, I have not seen it as an actual problem. Maybe it is a problem for other people.

This big is relative ;/ I understand what you say , but still maybe it is not very big deal but still some deal ;\ Really static libs are done to work, as i said if they could work it is bad that they do not work ;\

Also it is really so easy to complie sources?, i am using mingw (presently i dont even know how to use make) Is there easy to compile sources made with VS, they probably use different build systems or something.. I got not a practice in it

(also some sources (for quite interestin things) are made with some old compilers, i remember vaguelly i was trying to get some lib for c-interpreter (so I could use c scripts, it was fun idea, big advantages) wasnt it cint or something? but it was old and I get no skills to compile it, if this would be just lib (even old) i could use it, but old (and messy as big sources are always not redeable and undertstandable to me) sources

seemed unusable to me

what with that ? ;/

i am using mingw (presently i dont even know how to use make) Is there easy to compile sources made with VS, they probably use different build systems or something.. I got not a practice in it

these problems are easy to predict. Choosing a minor and unused platform (mingw in this case) also means being ready to fight.

You choose a minor platform and here you are complaining about it.. it's all in your doing. If you were using what everybody else is using on Windows, you wouldn't even notice the problem.

I don't know which particular lib are you trying to move over to MinGW, some are compatible with it (for example I use glfw and glew with MinGW because I need to link with Go programs... it's hacky to be gentle), some are not designed to be build with anything but VS.

Anyway.. none of this would be a problem if you were using the standard for Windows development, which is Visual Studio.. so, at the end of the day, it's all self inflicted pain you are complaining about.

Stefano Casillo
TWITTER: [twitter]KunosStefano[/twitter]
AssettoCorsa - netKar PRO - Kunos Simulazioni

This topic is closed to new replies.

Advertisement