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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -