Skip to content

platipodium/multisymbol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Issue make first

make

  1. Recompile with different order of libraries

gfortran -o main main.F90 -Lf1 -lf m2.o -Lf2 -lf m1.o && ./main I am first I am first

  1. Another order

gfortran -o main main.F90 -Lf2 -lf m2.o -Lf1 -lf m1.o && ./main I am second I am second

How can I make sure (without manipulating anything in the source of either libf) that m1 links to ./f1/libf.a and m2 links to ./f2/libf.a ?

Desired outcome

I am first I am second

If you find a solution, please respond on stackoverflow https://stackoverflow.com/questions/50626651/gcc-ld-combine-libraries-wich-use-different-versions-of-the-same-linked-sub-libr

About

Test minimal example for multi-symbol inclusion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published