I have a static library that has been compiled with gcc 3.4.3 .I would like to use this in code that will now be compiled with gcc-4. I've read vaguely that gcc-3 and gcc-4 binaries are not compatible and that the library will need to be recompiled , but just want confirmation on this. Isn't there anyway a gcc-3 library can be used with gcc-4 ?
are gcc-3 binaries compatible with gcc-4
1.3k Views Asked by Abhijith At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in C
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in COMPATIBILITY
- Browser compatibility of Polymer
- LiveCycle dynamic PDF - how to enforce Acrobat version?
- Why does Microsoft Edge (formerly Project Spartan) prompt to open this website in Internet Explorer?
- ios Swift: looking for a cross compatible method to Java's Random() PRNG that has identical output
- Points to be looked into while upgrading from redis-2.8.19 to redis-3.0.2
- Is there a definitive way to port a Cordova App to Windows 8? (Unsafe code)
- for...of - JavaScript keyword Internet Explorer work-around
- How to check if console/font supports Unicode?
- Appropriate way to use Android Support Library
- Cxx11 ABI for a single function call?
- SVG foreignObject doesn,t transform in Chrome
- how to make web service changes backward compatible
- Running on MARS but not running on Qtspim
- Clang or GCC compiler for c++ 11 compatibility programming on Windows?
- Wordpress Jupiter Chrome CSS issue
Related Questions in GCC4
- gcc-4.8.2 doesn't link pthread
- Switching the default Xcode compiler to "apple-gcc42"? (especially for perl Javascript::V8)
- gcc-4.4.0-1aix5.3 missing dependency libgmp, libmpfr
- GCC -O2 with -march / -ftree-vectorize
- tuning performance of a program by using different combinations of gcc options
- g++ -- missing array header
- Tools and methods to identify/prevent static buffer overruns
- gcc4 template bug or more likely id10t error
- why does it cause termination if I try to throw something inside a catch block in C++
- gcc 4.6.2 installation with cloog and ppl
- How to access local variables in GCC inline assembly while changing sp?
- install gcc 4.9 under suse10, "checking whether to enable maintainer-specific portions of Makefiles... no"
- GCC4 - ARMv5 register allocations
- How to generate location independent code using GNU ARM toolchain?
- Installing pyObjC 2.2 on Mac OS X 10.6 returns GCC-4.2 failure
Related Questions in GCC3
- How does hash_set in C++ work?
- Strange behavior when casting an int to float in C
- dynamic_cast failed when hiding symbol
- C: Utility to analyze .obj files, to measure size of some of the functions in exact bytes?
- GCC 3.4 vs 4.4 for C++ based MEX files?
- Is this a gcc optimization bug?
- Enabling long long in C89 at GCC 3.2, 4.4 and 5.4
- Should gcc builtins always be resolved during the compilation step, or the linker step?
- are gcc-3 binaries compatible with gcc-4
- "undefined reference to _spill" : What is _spill and why does gcc want to access it?
- Examples showing how switching to a modern C compiler can help discover bugs?
- Cannot link streams code with gcc
- gcc 3.4 internal compiler error with std::map.find
- Space determine for a C program
- Question about ubuntu gcc compiler
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Getting someone else in the organization, or at a vendor, to update their library to gcc 4 is not always an option, especially if they've abandoned it.
If C++: assuming that are able to link, at runtime you can blow up in C++ standard library template code that uses streams, as symbols generated by g++ 4 are resolved against definitions generated by g++ 3.
You might see this warning when linking:
/usr/bin/ld: warning: libstdc++.so.5, needed by (legacy static lib), may conflict with libstdc++.so.6
Here's an example you can get into: base class destructor ~basic_stringbuf() (actually a template) can be defined in your module compiled under g++ 3, which mistakenly gets called by the destructor ~basic_ostringstream() in libstdc++so.6, which is invoked by the g++ 4 compiled module. Ka-Boom.
I tried compat-libstdc++-33 but had no luck with that.
That said, I still link 32-bit gcc 3 era C libraries into my gcc 4.1.2 C++ programs.