Xcode 4 plain C static library linking


hi!

build plain c console app in xcode. have 5 source files added project , library, libmylib.a. c source files use library. can't work, linker produces errors of type "undefined symbols architecture x86_64..." have checked lipo static library supports architecture. tried various options suggested on forums: setting paths headers (absolute, using $(source_root)), setting build phases -> link binary libraries, using workspaces. same source code compiles fine when using command line gcc. have tried setting additional linker flags in xcode use make. nothing works. missing?

in advance!
 

post complete text of linker error message. copy , paste it; don't paraphrase or retype it.

post exact command-line used in terminal. again: copy , paste.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Rogue - the old text based game. I can't find it!

RAID in Early 2009 Mac Pro

NBC Releases Summer Olympics iOS Apps, Offering Livestreaming of All 302 Events