Methodology to resolve the problem
1) Add an Import to the library your linking to
Code: Select all
ImportC "libbar.a" : EndImport
Code: Select all
ImportC "libbar.a" : EndImport
ImportC "-lstdc++" : EndImport ;<------
Code: Select all
ImportC "libbar.a" : EndImport
ImportC "-libfoo" : EndImport ; <------
ImportC "-lstdc++" : EndImport
4) Add the functions to the library your linking to
Code: Select all
ImportC "libbar.a" : EndImport
ImportC "-libfoo" : EndImport
ImportC "-lstdc++" : EndImport
ImportC "libbar.a" ;<------
foo()
bar()
EndImport
Add these to the top
Code: Select all
ImportC "-Wl,--allow-multiple-definition" : EndImport
ImportC "-Wl,--unresolved-symbols=ignore-in-object-files" : EndImport ;use as a last resort
ImportC "-libfoo" : EndImport
ImportC "-lstdc++" : EndImport
ImportC "libbar.a"
foo()
bar()
EndImport