Say that I have two files main.o compiled from gcc and another file function.o compiled from MSVC; is it possible to generate an executable (by linking) from these files? Is this what BFS (binary file descriptor) library designed for? I mean can I use BFS to do this? If not, is there any way to do this?
Generate an executable from object files in different formats
188 views Asked by kai At
1
There are 1 answers
Related Questions in COMPILER-CONSTRUCTION
- Reference: Crafting Interpreters. Print statement is not able to evaluate expression. Help me fix this (details below)
- Load function written in amd64 assembly into memory and call it
- I have implemented till Statements and State in Tree Walk Interpreter. I am pissed with an error
- Resolve shift/reduction conflict in grammar for expressions in PLY for calls to embedded functions
- Grammar for access to properties and calls to embedded functions
- LLVM code generation causes problems with pointer arithmetic
- what does react compiler mean actually?
- Errors on Recursive Descent Parsing Java
- Java CUP produces Shift-Reduce conflict when parsing a grammar for a C++ type language
- Three-Address-Code (TAC) and Conjunction/Disjunction
- How do I write an implicit cast for my strongly typed interpreter? (C++)
- Yacc parser not reducing specific production rules as intended
- Why is the function version tag consistently "Base" in HDF5 library?
- Sly parser, how are recursively defined types implemented?
- Does a non terminal token need an explicit definition?
Related Questions in LINKER
- #include Header files in C with definition too
- Why veneer code generated by gcc for cortex-m0 seems 8-byte aligned?
- link.exe unresolved external symbol _mainCRTStartup
- C++. Ability to run executable file with external libraries on another pc
- LLD: How to Use –dll and –add-stdcall-alias Swiches
- Compiling C++ program with Opengl and Glut in windows
- Link shared library through makefile
- How to compile GLFW with GCC
- How do I link to GLFW using gcc on windows?
- Diff in `-Bsymbolic` behavior between gcc and clang?
- Trouble Including ImGui in C++ Project with CMake
- running the ld command through rust only works 50% of the time
- Visual Studio C++ (Express) 2022, LNK1105 and LNK1104
- How do I link files in an Xcode Build for C++
- "undefined reference to 'main'" : main.o created but main function not compiled
Related Questions in EXECUTABLE
- Issue with making python executable with local db, sqlite3, tkinter
- Cmake is not building an executable
- How can i debug a python exe which is created by using pyinstaller?
- With Node SEA, how to pack node_modules into executable?
- Executable generated from Pyinstaller not closing properly
- Having problems with cx_Freeze and making an executable
- Why can't I read my executable's output in Python?
- Corect Maven project execution plugin configuration when using multimodule application
- How to convert editable python file to executable?
- Streamlit with Pyinstaller issue
- Trouble building UACME executable
- Why can't I run my python executables in busybox?
- How do I produce multiple executables using Nuitka for Python?
- Letting user modify the program through a "config" folder
- PyInstaller + Tkinter within Virtual Environment -- failed to built an executable in python 3.8
Related Questions in BFD
- BFD: Dwarf Error: found dwarf version '5', this reader only handles version 2, 3 and 4 information
- Where in GDB source is the transition from GDB to BFD which will interact with the memory to "apply" a breakpoint?
- How to link with libbfd on MacOS?
- Problem when compiling program using libbfd (bfd library)
- libbfd: Write COFF object with AMD64 machine type
- Adding bfd peers using python
- getting virtual memory address(vma) of linker symbols
- Segmentation fault when calling std::make_unique
- Why does armv7l-unknown-linux-gnueabihf-objdump give "invalid bfd target" when run?
- Is there some equivalent of GNU Binary File Descriptor (BFD) for Windows .lib files?
- What's the difference between `-rpath-link` and `-L`?
- Why can't I pipe assembler output to stdout?
- Store and retrieve version information in ELF file
- GNU BFD on binary results to "No such file or directory" (binary not executed)
- variable name, function arguments at run time in C
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?
Popular Tags
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)
Perhaps.
C++code produced by different compilers is not link compatible, butCcode usually is (at least on UNIX). On Windows, it may or may not be possible. At a minimum, you should tell us which versions ofMSVCandgccyou used to build the objects.You probably mean the
BFDlibrary. No, that's not what it is for.