static library cross compilation
What will happen if i compile my static library in gcc 4.1 and if the application using the library is in gcc 2.9 will that give some error or it will work?
|
I guess it is likely that it will not work, if your code is moderately large and/or complicated. The C++ std libraries have changed over that length of time, so what compiles without complaint in gcc 4 may not compile at all in gcc 2.9, so that means the interfaces and typedefs might be different.
On the other hand, if your code is very simple, and very clean, and not using many c++ standard libs, and you compile your library with the same architecture, and no optimization, then it MIGHT work... Good luck. - Dave |
can you please suggest me the link from where i can get the change notice of gcc from version to version?
|
Hi,
You can start with the documentation here: http://gcc.gnu.org/onlinedocs/ You may also notice strange dependencies on different versions of glibc. I don't think you can change the libraries without changing kernels though I am not an expert. You might also find useful docs here: http://www.gnu.org/manual/manual.html |
All times are GMT -5. The time now is 02:26 AM. |