c++ - SYSV vs. Linux/GNU ELF formats -


the question in context of following question: why libraries not found, though on -l path? . seems libraries , object file have different elf format, might cause linker not "find" libraries.

now, leads couple of questions:

  1. it seems compiler generates sysv elf files. (checked file). however, particular c++ source, generates linux/gnu elf object file. wonder why, reduced source empty main method - , sysv object file. what inside c++ source file can cause compiler switch elf format?

  2. is true or false can not link linux/gnu sysv elf?

  3. is there option force compiler create elf format?

i'm working cray g++ (gcc) 5.3.0 20151204.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -