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:
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?is true or false can not link linux/gnu sysv elf?
is there option force compiler create elf format?
i'm working cray g++ (gcc) 5.3.0 20151204.
Comments
Post a Comment