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 ?
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in COMPATIBILITY
- Which Rstudio, R and R Graphics Engine combinations are compatible?
- Migration From Vue2 to Vue Compact: Build is stuck in the loop
- Change an exe file's compatibility settings with C#
- GNU libc on windows and MINGW
- SVN dump file compatibility with higher version (eg. 1.14.x)
- How to turn off "Use Legacy display ICC color management"?
- Why does the Haskell PVP describe new functions as non-breaking?
- The Microsoft.Adapters.Sql.BizTalk.WcfBtsSqlReceiver assembly (version 3.5.0.0) compatibility issue with 64-bit Office 365
- Airflow PostgreSQL sqlalchemy
- Angular 17.2.0 does not support ConnectionServiceModule?
- Which php version is codeigniter 3.1.11 compatible with?
- Fill PDF fields using iTex -:compatibilities of the versions phone's Android OS, Android Studio, Adobe Acrobat
- .NET Framework 4.5.2-based Console application compatibility problems with .NET 6-based Class Library project
- xcode mac designed for iphone app run in wrong window size
- Unable to Connect Logitech MX Keys Mini to Ubuntu 22.04. Works in Try Ubuntu but Not in Installed Version
Related Questions in GCC4
- How can I compile and install multiple copies of gcc into /usr/local and have the binaries in /usr/local/bin reflect their version?
- How is the address of the .rodata section determined in ELF files compiled using GCC and ld?
- Assembler error in MIPS build of Boost.Test program
- undefined reference to `__gnu_cxx::__exchange_and_add(int*, int)'
- Declaring and initializing a completely `const` `char *argv[]`
- Why does a virtual destructor write to memory?
- C++ implicit conversion and universal forwarding on gcc 7.5
- how to hide local symbol for linux static library
- Check wheter atomic ptr is not initialized in gcc 4.4.7 (without nullptr)
- Clarification required on gcc option -mcmodel=medium
- is there any way to use google test tool on gcc 4.5.2 compiler?
- How to control or optimize or remove or deallocate unused memory in UNION's
- Translate Inline Assembler of Codewarrior to GCC Inline Assembler
- problem compiling with different gcc versions
- Puzzling introduction of temporary in `* const&` on older C++ compilers
Related Questions in GCC3
- Which section of the modern compiled code controls the exit of a c program?
- Trying to validate the complete loading of a page in selenium python through a VM
- Enabling long long in C89 at GCC 3.2, 4.4 and 5.4
- How to fix "Section .vectors overlaps section .data " | Adding ATmega1281 Support to Compiler
- Found some old code using __single_client_alloc - how can I revive it?
- "undefined reference to _spill" : What is _spill and why does gcc want to access it?
- Error when assembling for AT91SAM9261EK
- Having static const variables with GCC 3.3 similar to GCC 3.4
- Strange behavior when casting an int to float in C
- How does hash_set in C++ work?
- Error compiling GCC 3.4.6 in Ubuntu 14.04
- Should gcc builtins always be resolved during the compilation step, or the linker step?
- gcc-3.4 compilation error
- Compiling qemu neo with gcc3.4
- gcc reports "will never be executed" about the line: while(fgets(line, MAX_LINE, stdin) != NULL)
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?
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)
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.